The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Trying to create a scripted field to numerically calculate status of children in an Epic

Joshua May
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!
April 21, 2023

Hi all,

I am in the process of trying to create a scripted field that I can use to make calculations based on the status of all child issues in an epic. 

So essentially it needs to grab each child issue in an epic and fetch the status of each. 

For example, we want calculations to assign 0% to "Open", 20% to "In Assessment", 50% to "In Progress", 80% to "In Review", and 100% to "Closed" or "Resolved". The final calculation is just taking the average of all of these for the children and making that the final return to the field in the epic. 

Any help is welcome as I am not the strongest with the groovy language but am trying to learn!

Running Scriptrunner and Automation on our Data Center instance

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
santu sharma
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!
April 21, 2023

I am in the process of trying to create a scripted field that I can use to make calculations based on the status of all child issues in an epic. 

So essentially it needs to grab each child issue in an epic and fetch the status of each. 

For example, we want calculations to assign 0% to "Open", 20% to "In Assessment", 50% to "In Progress", 80% to "In Review", and 100% to "Closed" or "Resolved". The final calculation is just taking the average of all of these for the children and making that the final return to the field in the epic. 

Any help is welcome as I am not the strongest with the groovy language but am trying to learn!

Running Scriptrunner and Automation on our Data Center instance