Forums

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

Tracking stories from epics that have a component

Raga Ranjani Challapilla
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!
January 24, 2020

Hi,

In my group, we use components at the epic level for reporting purposes. However, our epics usually run into multiple releases. We can only get an idea of work completed during a period or work in progress at a given point in time from stories, not epics. I want to know whether based on components applied at the epic level we are able to get a breakdown of story status for that component. If so, what would be the JIRA filter?

2 answers

1 vote
Laura Bier
Contributor
July 15, 2020

I have this question too.  I am trying to create a query that returns all issues where the Component on the Epic = a certain value, so I can avoid having to add the component to every issue in that epic...   

Ste Wright
Community Champion
July 15, 2020

Hi @Laura Bier 

Does the above answer not cover this need?

Ste

Laura Bier
Contributor
July 16, 2020

Thanks Stephen. I don't have access to any add ons.  Was hoping to be able to do it natively.  

Ste Wright
Community Champion
July 23, 2020

Hi @Laura Bier 

There isn't a native method without an app at this stage to search with dynamic sub-queries.

Your alternative would be to:

  1. Locate all the Epics with the specified component
  2. Search for all issues which are children of those Epics - i.e "Epic Link" in (XYZ-1, XYZ-2, XYZ-3)

It would require a manual update when a new Epic receives or has the component removed - but it's a possible method without extra functionality :)

Ste

Like Laura Bier likes this
Laura Bier
Contributor
July 24, 2020

Thanks Steve for all your support.  We ended up creating some automation rules that effectively allow us to perform our goal.

Rule 1: when a component on an epic changes, copy that component to the issues in that epic

Rule 2: when a new issue is created, if the epic has a component, copy that component to the new issue

These rules are not foolproof.  For example, you could create an issue and change the issue components after the fact. Or you could create an issue without an epic and add the epic after the fact.  Having said that, they capture the vast majority of issues, and it improves our reporting ability without having to rely on users creating issues to remember all the appropriate components.

Like Ste Wright likes this
0 votes
Ste Wright
Community Champion
January 24, 2020

Hi @Raga Ranjani Challapilla

You'll need enhanced JQL functions to do this through an app. There's a few options on the Marketplace, but we use ScriptRunner. Or just their search app, Enhanced Search.

Enhanced JQL functions allow you to search for the children of epics based on a sub-query which limits the epics being considered in the search.

For example, see the function issuesInEpics on their wiki. This function allows you to find issues related to epics found by the subquery e.g. find all stories for open Epics in a project.

So for your query you could do:

issueFunction in issuesInEpics("component in (XYZ, 123, 4F6)")

 Ste

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events