Using JQL in JMWE
This document presents examples on how to use JQL in JMWE instead of Groovy. This is specifically useful when complex conditions are easier to express in JQL using jqlSearch() function.
On this page:
- 1 Issue type is a Bug
- 2 Priority of the issue
- 3 Reporter is a member of the Administrators group
- 4 Checking the value of a multi-valued field
- 5 Generate a report of all HIGH severity JIRA tickets for a project with key X (or name X) that were created from 9 PM EST to 12 AM EST from the start of the year
- 6 Preventing users from reporting too many issues per day
- 7 Disallowing working on too many issues at the same time
- 8 "issuetype = "Test case" AND "Test Failed against browsers" is EMPTY" - Groovy condition
- 9 The current issue is the only issue that is resolved
- 10 Transition parent issue only when all the subtasks are in status “Done”
Issue type is a Bug
Groovy
issue.issuetype.name == "Bug"
JQL
jqlSearch( "issuetype = 'Bug'" , 1 )
Priority of the issue
Groovy
issue.priority.name == "High"
JQL
Reporter is a member of the Administrators group
Groovy
JQL
Checking the value of a multi-valued field
Groovy
JQL
Generate a report of all HIGH severity JIRA tickets for a project with key X (or name X) that were created from 9 PM EST to 12 AM EST from the start of the year
Preventing users from reporting too many issues per day
Disallowing working on too many issues at the same time
"issuetype = "Test case" AND "Test Failed against browsers" is EMPTY" - Groovy condition
The current issue is the only issue that is resolved
Transition parent issue only when all the subtasks are in status “Done”