Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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 Jira Automation

New to Jira Automation - goodbye Cron (sort of), hello new project created trigger, new additions to

Hey Everyone! Simeon from the Automation team here. I'm delighted to share some new features and improvements that we are shipping to Jira automation (Cloud only). Firstly, @Sam Harding&nbsp...

2,792 views 10 23
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