Versions Compared

Key

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

This routine is available starting with SIL Engine™ 3.0.

Syntax

getFieldOptions(projectKey, issueType, fieldName)

...

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

Syntax

getFieldOptions(projectKey, issueType, fieldName [, hideDisabledOptions])

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Returns a string array representing the list of options for a custom field.

Starting from SIL Engine™ 4.5.0 it was enhanced with the "hideDisabledOptions" boolean flag which, when set to true, filters the disabled options from the result so only the active options will be returned.

Returns a string array representing the list of options for a custom field. This routine only handles custom fields of the following types: single select, multi select, radio buttons and checkboxes, otherwise throws an exception.

Parameters

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

Parameter name

Type

Required

Description

project key

String

Yes

Key of the selected project.

issue type

String

Yes

Type of the selected issue.

field name

String

Yes

Name of the selected field.

hideDisabledOptions

...

Boolean

No

Flag to be set when searching for just the active options.

Return

...

Type

stringString[]

The returned string array represents the list of options for a custom field.

...

Code Block
getFieldOptions("DEMO", "Bug", "RB - BUG");

Gets the options for a custom field named "RB - BUG ", that exists in the project with the key "DEMO " and has its issue type "BUG ".

...

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "jira_fieldcustomfield_routine" and space = currentSpace ( )
labelsjiraarray_field_routineroutines