This function returns the name of the priority with a given ID.
priority(id) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns a text with the corresponding name of the priority with the ID 1. e.g. Highest |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number |
A valid priority ID. |
Output
This function returns a text .
If there is no priority with the given ID, the function returns null .
Use this function to ensure expressions will continue to work after renaming priorities:
|
Will continue to work after priority name update ✅ |
Will fail after priority 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 | Parser functions |
|---|---|---|
| Set assignee based on priority |