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

Avoid all the manual work by automatically closing stories when the epic is completed.




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

JQL

Boolean condition

UI Step

Add the following boolean expression:

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


Image ModifiedIssue selector

UI Step

Next to the JQL condition click on Add → Selector → Issue selector.

UI Steps


Add the following expression:

UI Step
Select Issue list expression as the target

Target issue(s)

.
UI Step
Code Block
languagebash
linenumberstrue
issuesUnderEpic()
Expand
titlemore info...

To achieve this, the following function has been used:

Image RemovedJQL

Select Issues under epic/ stories



Image AddedBoolean condition

UI Step

Next to the Issue selector click on Add → Condition → JQL Boolean condition

UI Steps


UI Step

Add the following expression:

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




Image ModifiedTransition issue

UI Step

Next to the JQL condition click on Add → Action → Transition issue

UI Steps


UI Step

Mode

Choose transition to status


UI Step

Status

Choose DoneSet the mode to transition to status and choose done as the status.




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": "Close stories when epic is completeddone",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "ISSUE_TRANSITIONED_EVENT",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "JQLBOOLEAN_CONDITION",
            "ruleEntityType": "CONDITION",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ],
                "jqlexpression": "%{trigger.issue.status} = \"Done\"",
                "jqlParsingModeexpressionParsingMode": "jqllogical",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 1,
                    "type": "ISSUE_SELECTOR",
                    "ruleEntityType": "SELECTOR",
                    "configuration": {
                        "refs": [
                            "issue",
                            "project",
                            "system",
                            "trigger",
                            "trigger.issue",
                            "trigger.parent"
                         ],"trigger.parent"
                        "option": "issueList"],
                        "issueListExpressionoption": "issuesUnderEpic()stories",
                        "issueListExpressionParsingMode": "issues",
                        "actingUser": "field_00020"
                    },
                    "children": [
                        {
                            "sequence": 1,
                            "type": "JQLBOOLEAN_CONDITION",
                            "ruleEntityType": "CONDITION",
                            "configuration": {
                                "refs": [
                                    "issue",
                                    "issues",
                                    "project",
                                    "selector.issue",
                                    "selector.parent",
                                    "system",
                                    "trigger",
                                    "trigger.issue",
                                    "trigger.parent"
                                ],
                                "jqlexpression": "%{selector.issue.status} != \"Done\"",
                                "jqlParsingModeexpressionParsingMode": "jqllogical",
                                "actingUser": "field_00020"
                            },
                            "children": [
                                {
                                    "sequence": 1,
                                    "type": "TRANSITION_ISSUE",
                                    "ruleEntityType": "ACTION",
                                    "configuration": {
                                        "refs": [
                                            "issue",
                                            "issues",
                                            "project",
                                            "selector.issue",
                                            "selector.parent",
                                            "system",
                                            "trigger",
                                            "trigger.issue",
                                            "trigger.parent"
                                        ],
                                        "option": "status",
                                        "status": "1000110012",
                                        "actingUser": "field_00020"
                                    },
                                    "children": null,
                                    "hasChildren": false
                                }
                            ],
                            "hasChildren": true
                        }
                    ],
                    "hasChildren": true
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




Related examples

firstcolumn
Page properties report
Use caseheadingsAutomated 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 Modified

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