Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

getIssueTypesInCustomFieldContext(customFieldId, context)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Returns the list of issue types names for a certain custom field context. Note that if the routine does not return anything then all the issue types are set. You can use the allProjects and getissueTypesForProject routine to determine the full list of issue types.

Returns the list of issue types for a certain custom field context

Parameters

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

Parameter name

Type

Required

Description

customfieldId

String

Yes

The id of the custom field (format: customfield_xxxxx)

context

String

Yes

The id or the name of the custom field context

Return Type

String []

Examples

Code Block
languagejs
runnerLog(getIssueTypesInCustomFieldContext("customfield_10041", "10169"));

Bug|Task|Epic

Code Block
languagejs
//global, should return []
 return getIssueTypesInCustomFieldContext("customfield_10040", "10167");

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "cf_routine" and space = currentSpace ( )
labelsarray_routines