The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Filter by parent, key, and due date

Renata Maciel
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!
September 25, 2023

I am in need of a filter that can sort activities contained in multiple epics by due date, taking into account if they belong to the same epic. However, I am having difficulty because the filter currently sorts everything by due date only, without considering if the activities are from the same epic or not:

e.g. parent in (GQK-XXX, GQK-YYY, GQK-ZZZ) OR key in (GQK-XXX, GQK-YYY, GQK-ZZZ) ORDER BY duedate, parent ASC

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Hannes Obweger - JXL for Jira
Atlassian Partner
September 26, 2023

Hi @Renata Maciel

welcome to the community!

Assuming that you are able to query the correct set of issues, I think you need to turn around the ORDER BY clause, to

ORDER BY parent, duedate ASC

... so it will *first* order by parent, and only within the same parent, order by due date - which I believe is what you want?

(Also note that Atlassian is making a few changes to how issue hierarchies work in Jira, so it may be that you have to ORDER BY "Epic Link" instead of parent... just in case that the above change doesn't work.)

Best,

Hannes

0 votes
LynnG
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 25, 2023

Have you tried issuekey in portfolioChildIssuesOf (ABC-123) where ABC-123 is the epic key?


or edit your query by adding quotes

(parent in (GQK-XXX, GQK-YYY, GQK-ZZZ) OR key in (GQK-XXX, GQK-YYY, GQK-ZZZ)) ORDER BY duedate, parent ASC

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events