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 → Field Changed Event
Fields*
Choose your custom Number Field
Changed to*
Choose Any value
Issue Selector
Add Selector → Issue Selector
Target Issue(s)*
Parent Issue
Update Field
Next to the Issue Selector click on Add → Action → Update Field
Field*
Choose your custom Number Field
Update to*
Choose Value returned by parsed expression
Parser Expression*
Set it to Advanced and enter the following Parser Expression
sum(fieldValue({issue.cfnnnnn}, subtasks()))
nnnnn is the field code for the custom number field to be summed up.
Screencast
This is how the configuration above should look on your screen
Related examples
If you still have questions, feel free to refer to our support team.