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

Include the components of the epic to the existing ones in an issue after adding an epic link to any issue.


Configuration


UI Steps


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.


Field changed event


UI Step

Add a Trigger → Field changed event

UI Steps


UI Step

Fields

Choose the field Epic Link


UI Step

Changed to

Choose Any value



 Update field action


UI Step

Next to the Issue Selector click on Add → ActionUpdate field

UI Steps


UI Step

Field

Choose your custom Components


UI Step

Update to

Choose Value returned by parsed expression


UI Step

Parser Expression

Set the mode to Advanced text and enter the following Parser Expression

Code Block
languagebash
linenumberstrue
toString(append(toStringList(%{trigger.issue.components}), fieldValue(%{issue.components}, epic())))


UI Text Box
typeinfo

This expression will not overwrite the previous values of the field. It will add the new components to the existing ones.





UI Step

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




Image AddedImport the example

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": "Add components of the epic to the current issue",
"description": "Include the components of the epic to the existing ones in an issue after adding an epic link to any issue.",
"creator": "admin",
"status": false,
"triggerData": "",
"triggerType": "FIELD_CHANGED_EVENT",
"configuration": {
"refs": [
"issue",
"system",
"trigger.issue",
"trigger.parent"
],
"fieldId": "10008",
"option": "any",
"triggerType": ""
},
"children": [
{
"sequence": 0,
"type": "UPDATE_FIELD",
"ruleEntityType": "ACTION",
"configuration": {
"refs": [
"issue",
"project",
"system",
"trigger",
"trigger.issue",
"trigger.parent"
],
"fieldId": "00094",
"mode": "parser",
"value": "toString(append(toStringList(%{trigger.issue.components}), fieldValue(%{issue.components}, epic())))",
"valueParsingMode": "textAdvanced",
"actingUser": "field_00020"
},
"children": null,
"hasChildren": false
}
],
"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

Automated action
Parser functions
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