Forums

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

Get count of user stories under each Feature in the Backlog

Prarthana Pratap
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!
November 17, 2021

I'm Following the Epic --> Feature --> Story Hierarchy. I would like to get the count of user stories linked to the feature. How can i get this count?

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 30, 2021

Hello @Prarthana Pratap ,

Thanks for reaching out and welcome to the community.  

Natively in Jira, the hierarchy is set as Epic > Story > Sub-task and cannot be altered unless you are using a third-party tool such as  Links Hierarchy, or Structure.  However, you can rename or create an issue type with a custom naming convention in the story and subtask levels.  So a question I have is are you using a third-party tool to rearrange the hierarchy or are you using custom names for the native hierarchy?

If you are using a third-party tool I would recommend reaching out to the vendor to see if there is anything else required for the changes the tool has made.

For the native layout, if you're trying to get a list of subtasks under a story, you can use the "linkedissue" JQL search function, noting it searches for epics and subtasks. If the issue is not an epic, the search returns all subtasks for the issue.  So searching for "linkedissues = Feature-123" will return a list of all the subtasks of that parent Feature plus the parent giving you a count on the returned issues with the result set in the issue navigator.  and you can filter out the parent with "linkedissue = Feature-123 AND issuetype in subTaskIssueTypes()"

additionally, you could do an API call on the Get issue endpoint GET /rest/api/3/issue/{issueIdOrKey} and add in a expand on fields=subtask like this:

/rest/api/3/issue/FEATURE-123?fields=subtasks

and script out a count on occurrences of the linked subtasks of that issue looking for the text:

"subtask":true

Hope this info helps get you on the right track.

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events