On this page
MAYBE WE SHOULD ALSO CREATE AN EXAMPLE WITH A CALCULATED NUMBER FIELD AND LINK THEM
Use case
In the following example we want to display in the parent issue the sum of a number field in sub-tasks. So as soon as the value in a sub-task changes, the parent value will also automatically be updated.
Field Changed Event
Create a new rule and name it appropriately.
Providing a description will help you to identify what the rule does but this step is optional.
Add a trigger and choose the Field Changed Event
Choose Number Field in Fields* and Any value in Changed to*
No further configuration needed. The automation rule is triggered every time an issue is being transitioned.
Issue Selector
Add Selector → Issue Selector
Update Field
Add Action → Update Field
Field*: Number Field
Update to*: Value returned by parsed expression
Parser Expression*
Set it to Advanced and use the following expression:
sum(fieldValue({issue.cfNNNNN}, subtasks()))
NNNNN is the field code for the field to be summed up.
Activate the rule by clicking on the Activate rule button →
Screencast
This is how the configuration above should look on your screen