Warning |
---|
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here ! |
Info | ||
---|---|---|
| ||
This routine is available starting with katl-commons SIL Engine™ 4.0.4. |
Syntax
admAddCustomFieldOption(option, fieldName[, projectKey, issueType])
Description
Excerpt |
---|
Add Adds a new custom field option to options list for the specified context. If the context does not exist, it will be created. |
If the project key and issue type are not specified, the option will be added to the global context.
This routine only handles custom fields of the following types: single select, multi select, radio buttons and checkboxes (otherwise throws an exception).
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
option | string | Yes |
Option to add. | ||
fieldName | string | Yes |
Name of |
custom field. | ||
projectKey | string | No |
Project key. | ||
issueType | string | No |
Issue type. |
Return type
boolean (true/false)
Returns 'true' if the option was added successfully , and 'false' otherwise. If returned 'false' check the log for a detailed reason on why it failed.
...