Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page properties
hiddentrue
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe

Page properties
hiddentrue
Automated action

Assign issue

Use case descriptionWhen an issue is transitioned to the status

titleDRAFT
 status, the issue will be automatically re-assigned to the last assignee from the project role "Developers".Complexity

Status
colourGreen
titleBeginner



UI Text Box
sizemedium
typeinfo

Use case

When an issue is transitioned to the

Status
titleDRAFT
 status, the issue will be automatically re-assigned to the last assignee from the project role "Developers".


UI Expand
titleShould I use an automation rule or a workflow post function?


UI Text Box
Tip
sizemedium
typetip

When to use this automation rule and when to use a workflow post function?

This use case is very useful if you need to re-assign issues across different projects and issue types.

If you only need to re-assign issues in one dedicated project or issue type context, using the Assign to Project Roleproject role workflow post function might be the better alternative.





UI Steps

Image ModifiedIssue transitioned 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 → Issue transitioned event


Image Modified Boolean condition

UI Step

Add Boolean condition and enter the following Parser Expression*

Code Block
languagebash
linenumberstrue
%{trigger.issue.status} = "Draft"


ui-expand
titlemore info...


UI Text Box
typeinfo

Boolean expressions are logical constructions that return true or false.
In this use case, the expression will only return true if the status of the issue triggering the rule is

Status
subtletrue
titleDRAFT
.




Image Modified Assign issue action

UI Step

Add Action → Assign issue

UI Steps


UI Step

Assignee

*

Choose User in Project Role


UI Step

Project role

Choose Developers


UI Step

User selection mode

Choose Last assignee in selected project role




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
nameassign_issue_to_last_assignee_on_transition.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": "Assign issue to last assignee on transition",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "ISSUE_TRANSITIONED_EVENT",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "BOOLEAN_CONDITION",
            "ruleEntityType": "CONDITION",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ],
                "expression": "%{trigger.issue.status} = \"Draft\"",
                "expressionParsingMode": "logical",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "ASSIGN_ISSUE",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "project",
                            "system",
                            "trigger",
                            "trigger.issue",
                            "trigger.parent"
                        ],
                        "assignMode": "projectRole",
                        "projectRole": "10001",
                        "mode": "projectRoleLast",
                        "sendMail": "true",
                        "actingUser": "field_00020"
                    },
                    "children": null,
                    "hasChildren": false
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




 Related use cases

Page properties report
firstcolumnUse case
headingsAutomated action, Use case description, ComplexityJWT feature, Label
sortByTitle
cqllabel = "use-case-auto" and label = "assign-issue" and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Image Added

Automated action

Assign issue 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