Versions Compared

Key

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


Panel

On this page

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



UI Text Box
sizemedium
typeinfo

Use case

Inherit the value of a field of a parent issue that belongs to the upper levels of the Advanced Roadmaps hierarchy when an issue is added under it.



Configuration

UI Steps


UI Step
Create a new rule and name it appropriately.

Field changed event


UI Step

Add a Trigger → Field Changed Event

UI Steps


UI Step

Field

Choose Parent Link


UI Step

Changed to

Choose Any value




Boolean condition


UI Step

Add a Condition → Boolean Condition

UI Steps


UI Step

Expression

Introduce a boolean condition as the following one.

Code Block
languagebash
linenumberstrue
%{trigger.issue.project.key} = "PKEY"



UI Text Box
typenote

Although it is not essential, a boolean condition can be useful to restrict the scope of the automation rule






Update field action


UI Step

Next to Issue selector click on Add → Action → Update Field

UI Steps



UI Step

Field

Choose Priority


UI Step

Update to

Choose Value returned by parsed expression


UI Step

Parser Expression

Introduce the following expression in the expression editor in Advanced text mode after replacing the field code with the appropriate one.

Code Block
languagebash
linenumberstrue
first(fieldValue(%{trigger.issue.cf10302}, parent()))







Import rule

Import the JSON file below to get started in no time.

UI Expand
titleJSON


UI Text Box
typewarning

After importing the JSON file, make sure to check the configuration of the rule. Non-existing configuration elements (issue types, fields, values etc.) will be highlighted.


Code Block
languagejs
themeMidnight
linenumberstrue
{
    "name": "Inherit value from parent in Advanced Roadmaps hierarchy",
    "description": "Inherit the value of a field of a parent issue that belongs to the upper levels of the Advanced Roadmaps hierarchy when an issue is added under it.",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "FIELD_CHANGED_EVENT",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "fieldId": "10009",
        "option": "any",
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "BOOLEAN_CONDITION",
            "ruleEntityType": "CONDITION",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ],
                "expression": "%{trigger.issue.project.key} = \"PKEY\"",
                "expressionParsingMode": "logical",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "UPDATE_FIELD",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "project",
                            "system",
                            "trigger",
                            "trigger.issue",
                            "trigger.parent"
                        ],
                        "fieldId": "10302",
                        "mode": "parser",
                        "value": "first(fieldValue(%{trigger.issue.cf10302}, parent()))",
                        "valueParsingMode": "textAdvanced",
                        "sendMail": "true",
                        "actingUser": "field_00020"
                    },
                    "children": null,
                    "hasChildren": false
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-auto" and label = "update-field" and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Image Modified

Automated action
Parser functions

fieldValue()

first()

parent()

Label




Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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