Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

This function returns the name of a custom field option with a given ID. Options can be found in a selectable field.

Code Block
languagebash
titleSyntax
linenumberstrue
option(id) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
option(10000)

This example returns a text with the corresponding name of the option name with the ID 10000.

e.g. IT Department

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
id

Status
subtletrue
titlenumber

A valid option ID.
UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext

If there is no option with the given id, the function returns 

Status
subtletrue
titlenull
.

UI Text Box
typetip

Use this function to ensure expressions will continue to work after renaming a custom field option.

Will continue to work after option name update (tick)(tick)Will fail after option name update (error)(error)
Code Block
languagebash
linenumberstrue
%{issue.cf10250} = option(10000)
Code Block
languagebash
linenumberstrue
%{issue.cf10250} = "IT Department"


Include Page
DECADIS:Identify IDs with Admin Toolbox for Jira
DECADIS:Identify IDs with Admin Toolbox for Jira

Page properties
hiddentrue

Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Page properties
hiddentrue
Short description

Returns the name of a custom field option.

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title2.5.0

Label