Forums

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

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

Sanjay Nanda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2014

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
Answer accepted
Tarun Sapra
Community Champion
March 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

Sanjay Nanda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2014
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>
0 votes
Sakthi Balaji March 31, 2014

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' ")

Sakthi Balaji March 31, 2014

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

and whatever criteria you wanted in the query

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events