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).*
stylepipe
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Never miss a last comment from a high priority issue by receiving an email notification displaying the date of the last comment on the issue and its commenter.

The email will be sent once a week for all high priority issues that are not resolved yet.

Image ModifiedScheduled event

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.



UI Step

Add a Trigger → Scheduled

UI Steps


UI Step

Schedule

Choose Days per week


UI Step

Interval

Choose once per day at 1:00 am and check Monday



Image AddedJQL selector

UI Step

Add the following expression:

Code Block
languagebash
linenumberstrue
priority = High and resolution is empty



Image AddedSend email action

UI Step

Next to the JQL selector click on Add → Action → Send email

UI Steps


UI Step

From

Select the user that the email will be sent from.


UI Step

To

Select the recipients.


UI Step

Message

First, enter a subject for your email

Code Block
languagebash
titleSubject
linenumberstrue
%{trigger.issue.key} = "is of high priority"

Then a body

Code Block
languagebash
titleBody
linenumberstrue
Please check the following:  
%{selector.issue.key} got last commented on {{{dateTimeToString(first(allCommentDates()), "MMMM dd, YYYY", USER_LANG)}}} by %{selector.issue.lastComment.author}

Cheers, 
Admin


UI Text Box
typenote

Please make sure that the parsing mode for the body is set to mixed mode.





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": "Notify about date of last comment for high priority issues",
    "description": "",
    "creator": "admin",
    "status": true,
    "triggerData": "",
    "triggerType": "SCHEDULED",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "runAs": "admin",
        "scheduledTriggerCron.dailyWeeklyMonthly": "daysOfWeek",
        "scheduledTriggerCron.daysOfMonthOpt": "dayOfMonth",
        "scheduledTriggerCron.monthDay": "1",
        "scheduledTriggerCron.week": "1",
        "scheduledTriggerCron.day": "1",
        "scheduledTriggerCron.interval": "0",
        "scheduledTriggerCron.runOnceHours": "1",
        "scheduledTriggerCron.runOnceMins": "0",
        "scheduledTriggerCron.runOnceMeridian": "am",
        "scheduledTriggerCron.runFromHours": "1",
        "scheduledTriggerCron.runFromMeridian": "am",
        "scheduledTriggerCron.runToHours": "1",
        "scheduledTriggerCron.runToMeridian": "am",
        "scheduledTriggerCron.weekday": "2",
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "JQL_SELECTOR",
            "ruleEntityType": "SELECTOR",
            "configuration": {
                "refs": [
                    "system"
                ],
                "jql": "priority = High and resolution is empty",
                "jqlParsingMode": "jql",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "SEND_MAIL",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "issues",
                            "selector.issue",
                            "selector.parent",
                            "system"
                        ],
                        "fromOption": "default",
                        "toUsersInField": [
                            "00003"
                        ],
                        "subject": "%{selector.issue.key} = \"is of high priority\"",
                        "subjectParsingMode": "textBasic",
                        "contentType": "text/html",
                        "mailPriority": "3",
                        "sendingMode": "common",
                        "body": "Please check the following:  \r\n%{selector.issue.key} got last commented on {{{dateTimeToString(first(allCommentDates()), \"MMMM dd, YYYY\", USER_LANG)}}} by %{selector.issue.lastComment.author}\r\n\r\nCheers, \r\nAdmin",
                        "bodyParsingMode": "mixed"
                    },
                    "children": null,
                    "hasChildren": false
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




Image AddedRelated use cases

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


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Image Added

Automated actionSend email action
Label





Page properties
hiddentrue



Status
Tech review

Status
colourGrey
titleTo do

Style guide

Status
colourGreen
titledone

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