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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.