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:

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”