I need some help creating a query, I am trying to create a custom filter to displays the following:
I need to display a set of subtasks based on a certain filter, and I need to filter out some of the subtasks where the parent task is in a certain status.
I want to show, Query 1:
Project = "Operations Projects" AND status not in (Completed, Canceled) AND issuetype = "Project Task"
In addition to that, I need to filter out any Sub-tasks (Project tasks in this case) where the Parent record (Project) is in a certain workflow status. The filter for the parent tasks would be, Query 2:
Project = "Operations Projects" AND status not in ("Not Active", Canceled, Completed) AND issuetype = Project
In short, I want to show all the subtasks in query 1, from parent tasks within query 2.
You totally need the Scriptrunner plugin for that. See all the nifty JQL function it has:
Your query would look something like this:
issuefunction in subtask of ("query2") AND ("query 1")
Edit: The plugin is free.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.