Forums

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

Jira query to display task sub-tasks in the same order displayed in parent ticket

Mark Bentley
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!
October 24, 2024

I have a ticket that shows several sub-tasks. Even though I added some tasks later, I can rearrange them in the list shown in the ticket so that they make sense.

So, for example, I might have a list that shows:

T-001  Do this first

T-004  A task QA added in later

T-002  Also do this

T-005  Oh, and do this too, so I added it in, and moved it to where I want

T-003 Final task

 

My problem is that when I do a JIRA query for the information (i.e. to show in Confluence), I use a query like 

parent = PROJ-1234 order by Rank ASC

Does anyone know what I can order by in order to get the same order as the Jira ticket is currently showing?

1 answer

0 votes
Trudy Claspill
Community Champion
October 24, 2024

Hello @Mark Bentley 

Welcome to the Atlassian community. 

Rank is the field that represents the order of the subtasks within the issue. ORDER BY Rank ASC should show the subtasks in the same order as they appear within the parent issue.

What are the actual results you are getting?

Can you provide a screen image of the issue showing the subtasks, and the output you get when you run the query in Jira directly, and in Confluence?

Suggest an answer

Log in or Sign up to answer