Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,433
Community Members
 
Community Events
165
Community Groups

Calculate number of child issues per status category for an epic

I have added three numeric custom fields to an epic:

  • Derived: ToDo
  • Derived: In Progress
  • Derived: Done

I would like to create automation rules to calculate the total number of issues for each field based on the status category of the derived/child issues. One trigger would be whenever an issue is added/removed to the epic and the other one, when the status of one of the child issues changes.

I played around a bit, but couldn't get it to work. Any ideas?

1 answer

0 votes
nmenere Atlassian Team Sep 13, 2020

Hi,

In Jira Cloud we have recently introduced a "Lookup issues" action that allows you to lookup issues via JQL and then reference them later in the rule as a smart-value.

With this you could have a rule:

  • When issue created
  • Branch on Epic
    • Lookup issues where jql: "Epic link" = "{{issue.key}}" and statusCategory = new
    • Edit issue - set "Derived:ToDo" to {{lookupIssues.size}}

 

Does that work for you?

 

Cheers,
Nick Menere [Atlassian]

That sounds promising, but we are using Jira Server. Will this be available there too?

nmenere Atlassian Team Sep 20, 2020

Unfortunately this is a Cloud only feature with no plan to migrate to the Server.

😞  Server users = 2nd class customers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Atlassian Automation

Jira Automation: Sum Up Story Points Roundup (Initiatives -> Epics -> Story/Tasks -> Subtasks)

Hi Everyone, In this roundup we combine all the jira automation rules to sum up story points across different issue types. We start from the lowest level, summing up story points from sub-tasks t...

1,910 views 2 8
Read article

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