How to select issues which are sub-tasks or stories without sub-tasks all together?

tal-yechye December 5, 2021

Hello,

 

I'd like to use =Jira() and JQL to get all my issues.

However, when I get my subtasks, I wouldn't want also to get their parents.

But if I have stories without sub-tasks - I would like to get them as well.

This query brought me all the non stories:

=JIRA("project = aaaa AND assignee = 'myname' AND sprint in (openSprints(), futureSprints()) AND type not in (Story) AND status not in (Done, Duplicate, Obsolete) order by status desc", "parent, issuekey, type, summary, status, sprint, fixVersion, created, updated, component", 0, 100)

 

How do I update it to get also all the stories which have no subtasks?

 

Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Ollie Guan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 5, 2021
tal-yechye December 6, 2021

I appreciate you answer but I need an approval to order the plugin

Meanwhile I used labels to label those "subtaskless" stories and filter with them.

Suggest an answer

Log in or Sign up to answer