Forums

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

Automation rule to calculate time forecast based on storypoints fails

Martijn Hoekstra
November 2, 2023

Hi community,

I am trying to get the following using a Jira Automation rule (company managed Jira):

By triggering an automation rule by logging an hour (using Clockwork for Jira) on story level (or spike, task, bug etc):

1. Find the associated parent epic
2. Fetch the sum of the story points of all child issues of that epic -> create a variable (named: TotalStoryPoints)
3. Fetch the sum of the story points of all child issues of that with status 'Done', create another variable (named: StoryPointsCompleted)
4. Deduct StoryPointsCompleted from TotalStoryPoints and multiply by 5 (which is our long-term average of hours we spend per storypoint) to update a custom field I created on epic level (Time Forecast)

JQL for step 2:
JQL step 2.jpg
Variable for step 2:
Variable step 2.jpg

JQL for step 3:
JQL step 3.jpg

Variable for step 3:

Variable step 3.jpg

Math for step 4:
 Edit issue fields.jpg
Seen a few almost similar cases on the community forum, but don't seem to find the exact solution. Managed to fetch the right input issues, but esp. the calculation at the end doesn't seem to work. Any help is greatly appreciated! Thanks, Martijn

1 answer

0 votes
Thomas Deiler
Community Champion
November 2, 2018

Dear @Imran Virk,

use the REST API, to read from Confluence and create issues in Jira. Works for 100% but  you need some coding skills.

So long

Thomas

Imran Virk
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 5, 2018

Thanks Thomas, I had considered that but was hoping for a solution that didn't require any development by my team. Seems like that's what we will have to do though as I haven't found anything else that would help.

I appreciate your feedback!

Imran

Thomas Deiler
Community Champion
November 6, 2018

Dear @Imran Virk,

I would say this is a piece of cake for your team. Would estimate around 1 or 2 days max to script this.

So long

Thomas

Suggest an answer

Log in or Sign up to answer