Versions Compared

Key

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


Page properties
hiddentrue


Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Automated action
Use case description

Calculate field values from all sub-tasks and writes the sum into a corresponding field in the parent issue.  

Complexity

Status
colourYellow
titleintermediate



Panel

On this page

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



UI Text Box
sizemedium
typeinfo

Use case

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.


UI Text Box
typetip

Don't want to use an automation rule? Just take a look at our example using calculated number fields and give it a try!




UI Steps

Field changed event

UI Step

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


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)*

Choose Parent Issue

 Update field action

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 the mode to Advanced and enter the following Parser Expression

Code Block
languagebash
linenumberstrue
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


Note
typenote

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





UI Step

Excerpt Include
DECADIS:Automation Use Case - Enable Rule
DECADIS:Automation Use Case - Enable Rule
nopaneltrue




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

UI Text Box
typetip

You can get the same result by configuring a Calculated Number Field.


Related use cases

Page properties report
firstcolumnUse case
headingsAutomated action, Use case description, Complexity
cqllabel = "use-case-auto" and label = "update-field" and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue

...