isCustomFieldInContext
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 !
Availability
This routine is available starting with SIL Engine™ 2.5.10/2.6.2.
Syntax
isCustomFieldInContext(customFieldAsString, projectKey, issueTypeName)
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
customFieldAsString | String | Yes | Name, id (as "customfield_xxxxx") or alias of the custom field. |
projectKey | String | Yes | Project key to check. |
issuetypeName | String | Yes | Name of the issue type. |
Description
Checks if a custom field is in the context of a specified issue type for a project.Return type
boolean
Returns "true" if the custom field is in context and "false" otherwise.
Example
if(isCustomFieldInContext("My Custom Field", "PRJ", "Bug")){ #{My Custom Field} = "I'm here"; } if(isCustomFieldInContext("customfield_10000", "PRJ", "Improvement")){ customfield_10000 = "I'm here"; } if(isCustomFieldInContext("aliasOfMyCustomField", "PRJ", "Bug")){ aliasOfMyCustomField = "I'm here"; }
See also