How to create a search that returns every task in an epic and every subtask of every task of that epic.
I want to see
-epic
--task linked to epic
---subtask of task linked to epic
---subtask of task linked to epic
---subtask of task linked to epic
--task linked to epic
---subtask of task linked to epic
--task linked to epic
---subtask of task linked to epic
---subtask of task linked to epic
--Epic subtask
--Epic subtask
For Linked Issues:
issue in linkedIssues(issueKey,linkType)
For Task linked to Epic:
project = "projectKey" AND "Epic Link" = issueKey AND issuetype = Task
Subtask of Task linked to Epic
Since Sub-Tasks follow the Syntax parent = issueKey or parent in ("issueKey-1, issueKey2 ")
I guess it's not possible to retrieve the Subtask of Task linked to Epic from JQL
You can't have Sub-Task for Epic
Thanks,
Pramodh
FYI
The Subtask of Task linked to Epic is possible with add-ons and please follow the link for more info..
https://community.atlassian.com/t5/Jira-questions/How-do-I-get-subtask-to-return-with-parent-issue-in-issue-search/qaq-p/1011160
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FYI,
For subtasks of all tasks under a Epic
project = "projectKey" AND ("Epic Link" = issueKey or parentEpic= issueKey)
Will return all subtasks and tasks under a epic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For the example you give, you just need:
parentEPIC = <your epic>
This will return the EPIC and ALL its contents.
The same results will be returned by
linkedIssue = <your epic>
(As noted above. EPICs don't have sub-tasks; tasks have sub-tasks)
Using "EPIC Link" = <your epic> will return the contents of the epic excluding sub-tasks.
Finding 'linked' issues i.e. those not part of the parent -> child hierarchy (EPIC -> Task -> Sub-task) but linked via 'blocks', 'duplicates' etc requires the use of:
issue in linkedIssues("<issue key>")
See: https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-functions/ for details
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Austin Green
project = "<you_project_here>" AND ("Epic Link" = <your_epic_here> OR parentEpic in (<your_epic_here>) )ORDER BY Rank ASC
"Epic Link" gives you stories or tasks in the Epic, while "parentEpic" gives you the subtasks linked to a story or task for that specific Epic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
parent epic is not an option for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.