Versions Compared

Key

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


Page properties
hiddentrue
Short description

This function returns available options of selectable fields - disabled options will be ignored.

Output
Status
subtletrue
titletext list
Available since

Status
subtletrue
colourBlue
title2.2.7

Page properties
hiddentrue
Status
Tech review

Status
colourYellow
titleReady for review

Style guide

Status
colourYellow
titleReady for review

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

UI Text Box
sizemedium
typeinfo

This function returns a  StatussubtletruecolourGreytitletext list with  with available and enabled options and child 1st-level options of selectable fields.

Disabled options will be ignored.


Code Block
languagebash
titleSyntax
linenumberstrue
availableItems(%{...somefield}field) #Output: Text list


UI Expand
titleExampleExamples


Parser expressionDescription


Code Block
linenumberstrue
 availableItems(%{00103issue.securityLevel})


Returns This example returns a text list with all security levels available for the project and current user.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
%{...somefield}
field

Status
subtletrue
titletext

The parameter must be a valid field code for
a
selectable field.



UI Expand
titleOutput

Returns This function returns a comma-separated 

Status
subtletrue
colourGrey
titletext list
 of all enabled options all enabled options of the specified selectable field.

UI Text Box
typetip
Only enabled options will be returned

.

If you want to include disabled options, please use the related function: allAvailableItems()




UI Text Box
sizemedium
typeinfo

Variant of the function where you can optionally specify a dedicated parent option.

Only child options matching the specified parent will be returned.


Code Block
languagebash
titleSyntax
linenumberstrue
availableItems(%{...somefield}field, optionparentOption) #Output: Text list


UI Expand
titleExamples


linenumbers
Parser expressionDescription


Code Block
linenumberstrue
allAvailableItemsavailableItems(%{issue.cf10100}, "Europe")


This function example returns all child options of the Europe option in a custom cascading select field with the field code issue.cf10100.

Let's assume the custom field hold holds regions and is structured in the following way:

  • Europe
    • North
    • South (disabled)
    • East
    • West
  • US
    • Alabama
    • Alaska
    • ...

In this example the function would return "North, East, West".

Disabled options will be ignored.

Code Block

true
availableItems(%{issue.cf10100}, "Europe, US")
This variant returns all child-options except "South" since both existing parent options were selected.



Parameters used in this function

UI Expand
titleAdditional information

The This function will return a comma-separated list of all enabled  child options of a multi-level cascading select field %{...somefield}. field. Only child options (2nd level option) of the specified parent option will be returned.

If you want to specify multiple parent options, enter a comma-separated list to the function.

UI Text Box
typenote
ParameterInput (data type)Description
field

Status
subtletrue
titletext

The parameter must be a valid field code for a selectable field.
parentOption

Status
subtletrue
titletext

The parameter must be a valid option name
In the case of multilevel cascading fields, a comma separated list of options should be entered. Disabled options are discarded
.



UI Expand
titleOutput

Returns This function returns a

Status
subtletrue
titletext list
with all available child options of a specified cascading select field.


UI Text Box
typetip

Only enabled options will be returned. If you want to include disabled options, please use the related function: allAvailableItems()



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_availableitems" and space = currentSpace()


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
id1


Parser function cloud
Map(error)
Notes

Not possible to access the possible options of a select-able field with Jira expressions.




Page properties
hiddentrue


Short description

Returns available options of selectable fields - disabled options will be ignored.

Output

Status
subtletrue
titletext list

Available since

Status
subtletrue
colourBlue
title2.2.7

Label