Reputation: 1
Im trying to create a custom filter on my JIRA board to select all the subtask in the user story when a certain person is assign so basically display all the subtask in the userstory
im trying to use combination of custom filter as well as the default filter in the JIRA board. so i could use the currentSelectedUser in tha board. but im not sure if you can do that in jira.
to create query based on what i discribe above
Upvotes: 0
Views: 38
Reputation: 336
To get all User Story that have an assignee, here is the JQL to run :
issuetype = "User Story" and assignee is not EMPTY
And to get all the subtasks in these user stories, you must use the issueFunction subtasksOf
, with the previous JQL.
But you should have ScriptRunner plugin installed on your instance to use it.
here is the JQL to run : issueFunction in subtasksOf("issuetype = 'User Story' and assignee is not EMPTY")
NB : If you want to add conditions to the stories to select, you can do that by updating the first JQL. And if you want to add conditions to the subtasks, you can do that like (conditions to add) and issueFunction in subtasksOf("...")
Upvotes: 0