This function returns the name of a custom field option with a given ID. Options can be found in a selectable field.
option(id) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns a text with the corresponding name of the option name with the ID 10000. e.g. IT Department |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
id |
number |
A valid option ID. |
Output
This function returns a text
If there is no option with the given id, the function returns null .
Use this function to ensure expressions will continue to work after renaming a custom field option.
|
Will continue to work after option name update ✅ |
Will fail after option name update ❌ |
|---|---|
|
Bash
|
Bash
|
You need to quickly look up the IDs of custom fields, statuses, issue types, resolutions, priorities ...?
Try our app Admin Toolbox for Jira which will show the IDs of all relevant elements by default!
📚 Use cases and examples
| Use case | Workflow function | Field type | Automated action | Parser functions |
|---|