Skip to end of banner
Go to start of banner

isCustomFieldInContext

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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.

projectKeyStringYesProject key to check.
issuetypeNameStringYesName 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

  • No labels