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

To not get lost in status changes, it might be sometimes helpful to inform the project lead only on certain priority changes. Therefore the following rule can be used, to notify the project lead by mentioning him in a new comment when the priority changes to "Blocker".




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

Field

Choose Priority 


UI Step

Changed to

Choose Selected value


UI Step

Value

Choose Blocker



Add comment action

UI Step

Add ActionAdd Comment


UI Step

Comment text

Code Block
linenumberstrue
Hi [~%{trigger.issue.project.lead}],
the priority on this issue has changed to Blocker. You may want to take a look at this.

Cheers!


UI Text Box
typenote

"[~" is the notation for mentioning users by their username.



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
namenotify_project_lead_on_priority_change.mp4
width700


Import 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": "Notify project lead on priority change",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "FIELD_CHANGED_EVENT",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "fieldId": "00017",
        "option": "fix",
        "fix": "1"
    },
    "children": [
        {
            "sequence": 0,
            "type": "ADD_COMMENT",
            "ruleEntityType": "ACTION",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ],
                "comment": "Hi [~%{trigger.issue.project.lead}],\r\nthe priority on this issue has changed to Blocker. You may want to take a look at this.\r\n\r\nCheers!\r\n",
                "commentParsingMode": "textBasic",
                "actingUser": "field_00020",
                "commentVisibility": "everybody",
                "sendMail": "true"
            },
            "children": null,
            "hasChildren": false
        }
    ],
    "hasChildren": true
}




Related use cases

Page properties report
headingsAutomated action, JWT feature, Label
cqllabel = "use-case-auto" and label = "add-comment" and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Automated action

Add comment action

Label




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titleto dodone

Style guide

Status
colourGreen
titledone

Status
titleto do
Status
colourGreen
titledone
Status
colourYellow
titleneeds review
Status
colourRed
titleflagged