You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 25 Next »

On this page

MAYBE WE SHOULD ALSO CREATE AN EXAMPLE WITH A CALCULATED NUMBER FIELD AND LINK THEM

When a custom "Number field" is changed in a sub-task, a corresponding field in the parent issue, representing the sum of those field values, will be automatically updated.

The rule executes every time the field is being updated on a sub-task.


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 SelectorIssue Selector

Target Issue(s)*

Choose Parent Issue

 Update Field

Next to the Issue Selector click on Add → ActionUpdate Field

Field*

Choose your custom Number Field

Update to* 

Choose Value returned by parsed expression

Parser Expression*

Set the mode to Advanced and enter the following Parser Expression

sum(fieldValue({issue.cf11502}, subtasks())) #Replace field code with the field code of your custom field. Use the field dropdown to automatically insert the field code

cf11502 is the field code for the custom number field to be summed up. The field code will differ in your instance.

Enable the rule by clicking on the Enable button → 


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.