Any assistance here would be appreciated. I am trying to publish a report in Confluence using a Jira filter. The report needs the following format. All the Epics are in one Initiative. I am able to get all the tickets using "Issuekey in childIssuesOf(InitiativeKey) "but not able to order as shown below. If you have a suggestion, please let me know:
Ticket Status Status Notes
Epic 1 In-Dev Multiline text
Story 1 from Epic 1 In-Dev Multiline text
Story 2 from Epic 1 In-Dev Multiline text
Epic 2 In-Dev Multiline text
Story 1 from Epic 2 In-Dev Multiline text
Story 2 from Epic 2 In-Dev Multiline text
Natively, I'm not sure this is possible.
You can order by Epic Link - but this will just order all the story-level issues based on Epic Link, as opposed to each Epic with a list of stories below them.
There is a workaround, if you are using a Classic Project...
-----------------
Option 1 - Epic Issue Key
This workaround utilises a unique identifier common to each Epic and its children. It creates a UID at an Epic-level and then copies it to the Epic's children using Automation Rules.
The unique identifier can be used to order JQL results, and then a field unique to the Epic (Epic Name) is used to sub-order the issues with the Epic at the top.
Field:
Automation - Rule 1:
Automation - Rule 2:
Update:
JQL:
Once the above is complete, use JQL such as this:
issue in portfolioChildIssuesOf("ABC-1") ORDER BY cf[12345] ASC, "Epic Name"
This is how the JQL works:
If you're not using Advanced Roadmaps - and instead linking Epics to an Initiative via Linked Issues, you could make this JQL work - for example:
"Epic Link" in linkedIssues("ABC-1","relates to") OR issue in linkedIssues("ABC-1","relates to") AND issuetype = Epic ORDER BY cf[12345], "Epic Name"
^ If using Linked Issues, I would advise creating a unique link type for relating Epics to Initiatives, eg. Parent Of/Child Of, and replacing "relates to" above. You can have no link type in there - but this limits the use of Linked Issues for other purposes.
-----------------
Option 2 - Custom Order
The above workaround utilises the Epic's Issue Key - this would put the Epics (and their children) in a sequential order - either Newest > Oldest, or Oldest > Newest depending if you use ASC or DESC.
You could have a more custom order by either:
This is how Rank might work...
Field:
Rule 1:
Rule 2:
^ Note: The reason branches are needed in this rule is because unlike Issue Key, Rank will change at an Epic level fluidly (Branch 1) and issues will be added to or moved between different Epics (Branch 2).
Ranking:
JQL:
-----------------
This should fulfil the need - a few notes:
-----------------
There is a lot to digest above - let me know if you have any queries, or if you give one of the two options a go and need help!
Ste
I'm on Jira cloud and in the filters section I got all the issues parented to an initiative with
issue in portfolioChildIssuesOf("XYZ-3322")
I'd tried about 20 others before this one!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.