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

When an issue has been closed or done and a new comment is added to it, you can add this rule to automatically re-open this issue.




UI Steps

Image ModifiedIssue 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 event

Image ModifiedBoolean condition

UI Step

Add the following expression:

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


Image ModifiedUser condition

UI Step

Under to the Boolean condition click on Add → Condition → User condition

UI Steps


UI Step

Set the user to evaluate to User in field and choose Last commenter.


UI Step

Set the user(s), user is in group(s), or user is in project role(s) to check against.



UI Text Box
typeinfo

This step is optional. Selecting specific users, groups or roles will make sure that this rule is only executed if the comment was added by the selected users.


Image ModifiedTransition issue

UI Step

Finally, under the user condition click on Add → Action → Transition issue

UI Steps


UI Step

Mode

Choose Transition to status 


UI Step

Status

Choose ReopenedSet the mode to Transition to status and choose the status Reopened.




UI Step

Excerpt Include
DECADIS:Automation Use Case - Enable Rule
DECADIS:Automation Use Case - Enable Rule
nopaneltrue




Screencast

No screencast available at the moment.


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": "Re-open issue when a new comment is added",
"description": "",
"creator": "admin",
"status": false,
"triggerData": "6",
"triggerType": "ISSUE_EVENT",
"configuration": {
"refs": [
"issue",
"system",
"trigger.issue",
"trigger.parent"
],
"triggerType": "6"
},
"children": [
{
"sequence": 0,
"type": "BOOLEAN_CONDITION",
"ruleEntityType": "CONDITION",
"configuration": {
"refs": [
"issue",
"project",
"system",
"trigger",
"trigger.issue",
"trigger.parent"
],
"expression": "%{trigger.issue.status} = \"Done\"",
"expressionParsingMode": "logical",
"actingUser": "field_00020"
},
"children": null,
"hasChildren": false
},
{
"sequence": 1,
"type": "USER_CONDITION",
"ruleEntityType": "CONDITION",
"configuration": {
"refs": [
"issue",
"project",
"system",
"trigger",
"trigger.issue",
"trigger.parent"
],
"userOption": "currentUser",
"checkOption": "group",
"group": [
"jira-administrators",
"jira-servicedesk-users",
"jira-software-users"
]
},
"children": null,
"hasChildren": false
},
{
"sequence": 2,
"type": "TRANSITION_ISSUE",
"ruleEntityType": "ACTION",
"configuration": {
"refs": [
"issue",
"project",
"system",
"trigger",
"trigger.issue",
"trigger.parent"
],
"option": "status",
"status": "10000",
"actingUser": "field_00020"
},
"children": null,
"hasChildren": false
}
],
"hasChildren": true
}




Related examples

Page properties report
headingsAutomated action, Use case description, ComplexityJWT 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 actionTransition issue 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