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. Therefor Therefore the following rule can be used, to notify the project lead by mentioning him in a new comment when the

Status
titlePriority
changes to
Status
titleblocker
.

Page properties
hiddentrue
Function

<link to function being used>

Use case description

When the

Status
titlePriority
is changed to
Status
titleblocker
, a comment will be added with a user mention alerting the project lead.

Complexity

Status
colourGreen
titleBeginner

priority changes to "Blocker".




UI Steps

Image ModifiedField

Changed Event

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 changed event

UI Steps


UI Step

Field

*

Choose Priority 


UI Step

Changed to

*

Choose Selected value


UI Step

Value

*

Choose Blocker



Image ModifiedAdd

Comment

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 - Activate Enable Rule Step
DECADIS:Automation Use Case - Activate Enable Rule Step
nopaneltrue




Image Modified Screencast

This is how the configuration above should look on your screen

Multimedia
namenotify_project_lead_on_priority_change.mp4
width700


Image ModifiedImport 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
}




Image AddedRelated use cases

Page properties report

Related examples

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

Image Added

Automated action

Add comment action

Label




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

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