Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

On this page

Table of Contents
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe


Status
colourRed
titleMaybe we should also create an example with a calculated number field and link them

UI Text Box
sizemedium
typeinfo

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.


Page properties
hiddentrue


Function

<link to function being used>

Use case description

When the 'Number field' custom field is changed in a sub-task, the corresponding field in the parent, representing the sum of those field values, gets updated with the updated result.

Complexity

Status
colourGreen
titleBeginner





UI Steps

 Field Changed Event

UI Step

Create a new rule and name it appropriately.

UI Text Box
typetip

Providing a description will help you to identify what the rule does but this step is optional.<snippet>


UI Step

Add a trigger and choose the Trigger → Field Changed Event


ui-steps


ui-step

Fields*

Choose your custom Number Field

in Fields* and Any value in Changed to* text-box


ui-
typeinfo

No further configuration needed. The automation rule is triggered every time an issue is being transitioned.

step

Changed to*

Choose Any value




 Issue Selector

UI Step

Add SelectorIssue Selector


UI Step

Target Issue(s)*

: Parent

 Parent Issue


 Update Field

UI Step

Next to the Issue Selector click on Add → ActionUpdate Field

UI Steps


UI Step

Field*:

Choose your custom Number Field


UI Step

Update to* 

Choose: Value returned by parsed expression


UI Step

Parser Expression*

Set it to Advanced and use enter the following expression: Parser Expression

Code Block
sum(fieldValue({issue.cfNNNNNcfnnnnn}, subtasks()))


UI Text Box
typenote

NNNNN nnnnn is the field code for the custom number field to be summed up.





UI Step

Activate the rule by clicking on the Activate rule button Image Removed → Image Removed<snippet>




Image ModifiedScreencast Screencast

This is how the configuration above should look on your screen

Multimedia
nameupdate_summed_up_value_in_parent_issue_on_field_changed_in_sub-task.mp4
width700



Related  Related examples

Page properties report
cqllabel = "use-case-auto" and space = "JWTSDC"

Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue

...