how to create a filter that uses issue and sub-tasks fields together in one query

For e.g. I want to write a query that shows all subtasks assigned to me that are status!=committed and that have parent issue (for specific fix version & in committed state)

2 answers

1 accepted

1 vote
Tarun Sapra Community Champion Mar 31, 2014

Are you using ondemand or self-hosted JIRA, as you would need Script Runner plugin for these kind of searches. Script runner plugin is only available on self-hosted.

see here- https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-Subtasks

Thanks Tarun and Sakthi for the reply. I could use Script Runner to achieve this. Below is the query:
issueFunction in subtasksOf("status = Committed") AND status != Committed AND assignee = <loginid>

Hi Sanjay,

can you pls try with this JQL QUery in the advance search issues screen

project = "project_name" and status != "ur required status" and issue in subtaskIssuesFromQuery("project = 'project_name' and status = 'ur required status' ")

You can add assignee ="ur name in the query"

and whatever criteria you wanted in the query

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,334 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot