Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This routine is available starting with SIL Engineā„¢ 2.5.10/2.6.2.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

isCustomFieldInContext(customFieldAsString, projectKey, issueTypeName)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Checks if a custom field is in the context of a specified issue type for a project.

Checks if a custom field is in the context of a specified issue type for a project.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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

...

Description

Excerpt
Checks if a custom field is in

the

context of a specified

issue type

for a project

.

Return

...

Type

booleanBoolean

Returns "true" if the custom field is in context and "false" otherwise.

...

Code Block
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

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel in ( "jira_field= "customfield_routine" , "jira_context_routine" and space = currentSpace ( )
labelsjira_field_routine,jira_context_routinearray_routines