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

Excerpt Include
DECADIS:Automation Use Case - Create Rule Step
DECADIS:Automation Use Case - Create Rule Step
nopaneltrue
<snippet>


UI Step

Add a Trigger → Field Changed Event

UI Steps


UI Step

Fields*

Choose your custom Number Field


UI Step

Changed to*

Choose Any value




 Issue Selector

UI Step

Add SelectorIssue Selector


UI Step

Target Issue(s)*

 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 enter the following Parser Expression

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


UI Text Box
typenote

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





UI Step

Excerpt Include
DECADIS:Automation Use Case - Activate Rule Step
DECADIS:Automation Use Case - Activate Rule Step
nopaneltrue

<snippet>




 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 examples

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

Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue

...