On this page
Introduction
Time to be creativeA huge number of potential use cases can be addressed by using Jira expressions which is currently a Cloud Only feature provided by Atlassian. Jira expressions can be a powerful tool but they come with limitations.
To master Jira expressions we strongly recommend reading the information we condensed on this single page. Especially when it comes to the difference between Jira expressions and JWT for Jira Cloud parser expressions.
Test your expression
It is highly recommended to test your Jira expression before publishing the workflow.
To test an expression simply select an existing issue ad click on .
As a result you might encounter four different responses:
Response | Output | Explanation |
---|---|---|
Response: The value returned by the expression | Jira expressions usually expect the return of a boolean true or false. If you just enter a field code without any comparison operator you will simply get the value as a response! In this use case "Task" will be returned as the current issue type. | |
Response: true | This response indicates that the expression itself is valid and the test issue (KANBAN-1) is in a status called "ToDo" | |
Response: false | This response indicates that the expression itself is valid but the test issue (KANBAN-1) is NOT in a status called "ToDo" | |
Response: error | There is a syntax error in the specified expression. In this case a missing ' at the end of the expression. |
Use cases and examples using this condition
Use case | Complexity | Type | Function |
---|---|---|---|
Block a transition based on issue links | ADVANCED | ||
Block a transition based on sprint information | BEGINNER | ||
Block a transition based on the day of the week | BEGINNER | ||
Block a transition if a predefined field value has not been changed | BEGINNER | ||
Block a transition if some issues under an epic are not in a certain status | INTERMEDIATE | ||
Check current issue status | BEGINNER | ||
Check for unresolved sub-tasks | INTERMEDIATE | ||
Check if an attachment was added recently | BEGINNER | ||
Check parent issue type | INTERMEDIATE | ||
Check the number of times that a field has changed | INTERMEDIATE | ||
Evaluate the Parent Link field | INTERMEDIATE | ||
Evaluate worklogs in sub-tasks | BEGINNER | ||
Validate an issue only if a comment is written during the transition | BEGINNER | ||
Validate worklogs |