It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I am looking for a JQL to list all stories and subtasks similar to parent and child relationship.

I have a JIRA project that has a lot of stories and subtasks. I am looking for a way to report all stories and subtasks created between certain dates. I want the subtasks listed right below the parent story.

2 answers

0 votes
Mohammed Amine Community Leader Nov 13, 2019

I think that the easiest way is to display subtasks in columns in the search issues view (see image below). 

So in you JQL you will search only tasks and for each task you can display all needed information + subtasks. 

Capture d’écran 2019-11-13 à 21.58.57.png

I am using this JQL but subtasks are not displayed below the parent stories.

project = xxx AND issuetype in (Story, Sub-task, "Functional Bug") AND created >= 2018-12-18 

0 votes
Marianne Miller Community Leader Nov 13, 2019

This specific functionality requires a plug in - there are a few that do this.  However, You can use a JQL Query to display the sub-tasks, and order them by Summary, which will aggregate them by Issue and show you those relationships.  You can export this data set and manipulate it in excel as needed.

project = XXX AND issuetype in (Sub-task, Story) and createddate > 2019-01-01 and createdDate < 2019-12-31 ORDER BY summary ASC

Where XXX = your Project ID

update your created date after/before numbers as appropriate

Order by Summary will just sort by summary and subtasks wont be listed under Story.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you