Info |
---|
|
This routine is available starting with SIL Engine™ 4.8.0.11. Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | getCustomFieldIdByName(customfieldName); | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns a list of ids for all custom fields with the given name. |
Returns a list of ids for all custom fields with the given name.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
|
...
customfieldName | String | Yes | Name of custom field to retrieve ids for. |
|
Return
...
Type
String []
Returns an array of custom field ids.
Examples
Example 1
Code Block |
---|
return getCustomFieldIdByName("My Custom Field"); |
Returns: "customfield_10101"
Example 2
This example has multiple custom fields for a single name.
Code Block |
---|
string myCustomField;
for(string id in getCustomFieldIdByName("My Custom Field")) {
//check the context for the calling issue to determine which custom field to use
if(isCustomFieldInContext(id, projectKey, issueType) {
myCustomField = id;
}
}
return myCustomField; |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "jiracustomfield_group_routine" and space = currentSpace ( ) |
---|
labels | jiraarray_group_routineroutines |
---|
|