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|When to use).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Jira's assignee field is great for keeping track of which person is working on which issues. But at some point employees might also go on vacation and their issues are not being worked on.

To remedy this situation, simply reassign all those issues and add a short comment informing all involved parties about this change - with a single click.




UI Steps

Image Modified Manual trigger

UI Step

Excerpt Include
DECADIS:Automation Use Case - Create Rule Step
DECADIS:Automation Use Case - Create Rule Step
nopaneltrue


UI Step

Add a Trigger → Manual

UI Text Box
typeinfo

No further configuration needed. The rule will only be executed if a user hits the Execute button .



Image Modified JQL Selector

UI Step

Add Selector → JQL Selector


UI Step

JQL Query

Use the following Expression:

Code Block
languagebash
linenumberstrue
assignee = nnnnn
# Replace nnnnn with the actual user name that is on vacation


UI Text Box
typeinfo

The scope can be further narrowed down by updating the JQL query (e.g. to limit the returned issues to a single project or component)



Image Modified Add comment action

UI Step

Next to the JQL Selector click on Add → Action → Add comment


UI Step

Comment text

Enter the following comment:

Code Block
languagebash
linenumberstrue
Hi everyone, dear wathcers,

since [~%{selector.issue.assignee}] is on vacation, this issue has been re-assigned. Please feel free to contact the new assignee if you have any questions related to this issue.

Keep up the good work!

Cheers!
Your automation rule



Image Modified Assign issue

UI Step

Underneath the Add comment action click on Add → Action → Assign issue

UI Steps


UI Step

Assignee

Choose Selected User


UI Step

User

Select the user that should substitute the user who is on vacation.






Screencast

This is how the configuration above should look on your screen

Multimedia
nameHandle employee vacation.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
{
    "name": "Re-assign issues and leave a comment",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "MANUAL",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "actingUser": "field_00020",
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "JQL_SELECTOR",
            "ruleEntityType": "SELECTOR",
            "configuration": {
                "refs": [
                    "system"
                ],
                "jql": "assignee =%{system.currentUserFullName}",
                "jqlParsingMode": "jql",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "ASSIGN_ISSUE",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "issues",
                            "selector.issue",
                            "selector.parent",
                            "system"
                        ],
                        "assignMode": "user",
                        "user": "admin",
                        "mode": "projectRoleRandom",
                        "sendMail": "true",
                        "actingUser": "field_00020"
                    },
                    "children": null,
                    "hasChildren": false
                },
                {
                    "sequence": 1,
                    "type": "ADD_COMMENT",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "issues",
                            "selector.issue",
                            "selector.parent",
                            "system"
                        ],
                        "comment": "Hi everyone, dear wathcers,\r\n \r\nsince [~%{selector.issue.assignee}] is on vacation, this issue has been re-assigned. Please feel free to contact the new assignee if you have any questions related to this issue.\r\n \r\nKeep up the good work!\r\n \r\nCheers!\r\nYour automation rule",
                        "commentParsingMode": "textBasic",
                        "actingUser": "field_00020",
                        "commentVisibility": "everybody",
                        "sendMail": "true"
                    },
                    "children": null,
                    "hasChildren": false
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




 Related use cases

Page properties report
headingsAutomated action, Use case description, ComplexityJWT feature, Label
cqllabel = "use-case-auto" and label in ("add-comment","assign-issue") and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue



Page properties
hiddentrue


JWT feature

Automated actionAdd comment action
Assign issue action
Label




Page properties
hiddentrue



Status
Tech review

Status
titleto do

Style guide

Status
colourGreen
titledone

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