Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

disjunction query for JQL filter

james_warr November 12, 2018

On our project we want to track of cycle time for stories, tasks and sub-tasks. In using the control-chart we need to avoid double-counting where a story or task has sub-tasks (simple stories or tasks don't have sub-tasks in our world).

 

So I'd like to have a filter that would be a disjunction of sorts - include all sub-tasks, and only stories and tasks that have no sub-tasks.

 

looking through the JQL documentation I can't see a way to do this

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 12, 2018

Hello,

You can not do it with the out of the box JQL, but you could use an add-on.

For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

Your JQL query would look like this:

project = test and issuetype in subtaskIssueTypes() or not (key in hasSubtasks("project = test"))
james_warr November 21, 2018

Thanks for the suggestion, but unfortunately Power Scripts for Jira Cloud doesn't support SIL JQL functions

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2018

Ah, you are right. You would need to look for a plugin, which supports JQL functions for Cloud.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events