Forums

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

Update parent field based on an operation of 2 fields from child

Hugo Loza
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 17, 2022

I have the following structure

Story (Field: Progress)

- Subtask 1 (Field: SP, Field: Progress)

- Subtask 2 (Field: SP, Field: Progress)

I want to know if it is possible with Jira Automation to update Story Progress based on its subtask but doing an operation with both fields of the subtasks.. something like this:

Story.Progress = sum((subtask.sp/totalStoryPoints)*subtask.progress)

 

 

1 answer

0 votes
Pramodh M
Community Champion
January 17, 2022

Hi @Hugo Loza 

Yes, it is possible with Automation.

If you clearly give the formula for the Progress field in Story Issue type that would be helpful.

Here you have given an example for two sub-tasks, we can consider this automation to work for any number of sub-tasks.

Let me know the exact formula. What is subtask.sp and totalStoryPoints represent?

Thanks,
Pramodh

Hugo Loza
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 17, 2022

Thanks for the response:

- totalStoryPoints should be the sum of all the subtasks storypoints 

then the formula (in pseudo code notation)

 

Story.Progress = sum((subtask.storypoints/totalStoryPoints)*subtask.progress)

 

As you can see what I'm trying to do is calculate the Progress of the Story based on the weighted progress of each subtask (weight represented by the subtask story point) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events