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 a Keeping parent issues and sub-tasks in sync, as described in this use case, is a lot of manual work. This automation rule will update the status of all sub-tasks based on the parent status: When the parent issue is rejected, all sub-tasks are transitioned to

Status
colourRed
titleReject
accordingly.

Page properties
hiddentrue
Function

<link to function being used>

Use case descriptionWhen an issue is transitioned to 'Draft' status, the issue will be assigned to the last assignee from the project role 'Developers'
Complexity

Status
colourGreen
titleBeginner

also being rejected.


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


UI Text Box
typetip

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

This use case is very useful, if there are several software projects with different workflows where all related issues have to be closed on releasing a new version. Configuring just one automation rule might then be the easier way to go. But if this scenario is only necessary for one workflow, the Transition Issues post function would make more sense. In this case you might want to check out our corresponding post function use case.





UI Steps

Image ModifiedIssue

Transitioned Event

transitioned event

UI Step

Excerpt Include

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.

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


UI Step

Add a trigger and choose the Issue Transitioned Event. Trigger → Issue transitioned event

UI Text Box
typeinfo

No further configuration needed. The automation rule is triggered every time an issue is being transitioned.



Image ModifiedBoolean

Condition

condition

UI Step

Add a ConditionBoolean Condition


UI Step

Expression

*

Use the following parser expression Parser Expression:

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


ui-expand
titlemore info...


Infoui-text-box
iconfalse
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
colourRedGreen
titleRejectRejected
.




Image ModifiedIssue

Selector

selector

UI Step

Next to the Boolean Condition click on Add →  Selector → Issue Selector


UI Step

Target Issue(s)

*

:

Choose 

Sub-tasks


Image ModifiedTransition

Issue

issue action

UI Step

Next to the Issue Selector click on Add → Action → Transition Issueissue

UI Steps


UI Step

Mode

Transition to status*: Execute transition


UI Step

Status

Choose your project Rejected




UI Step

Choose Close issue

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

UI Step

Activate the rule by clicking on the Activate rule button Image RemovedImage Removed




Image ModifiedScreencast

This is how the configuration above should look on your screen

Multimedia
nametransition_sub-tasks_when_parent_issue_is_rejected.mp4
width700


Image ModifiedImport 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": "Keep the status of parents and sub-tasks in sync",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "ISSUE_TRANSITIONED_EVENT",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 1,
            "type": "BOOLEAN_CONDITION",
            "ruleEntityType": "CONDITION",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ],
                "expression": "%{trigger.issue.status} = \"Rejected\"",
                "expressionParsingMode": "logical",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "ISSUE_SELECTOR",
                    "ruleEntityType": "SELECTOR",
                    "configuration": {
                        "refs": [
                            "issue",
                            "project",
                            "system",
                            "trigger",
                            "trigger.issue",
                            "trigger.parent"
                        ],
                        "option": "subtasks",
                        "issueListExpressionParsingMode": "issues",
                        "actingUser": "field_00020"
                    },
                    "children": [
                        {
                            "sequence": 0,
                            "type": "TRANSITION_ISSUE",
                            "ruleEntityType": "ACTION",
                            "configuration": {
                                "refs": [
                                    "issue",
                                    "issues",
                                    "project",
                                    "selector.issue",
                                    "selector.parent",
                                    "system",
                                    "trigger",
                                    "trigger.issue",
                                    "trigger.parent"
                                ],
                                "option": "status",
                                "status": "10002",
                                "actingUser": "field_00020"
                            },
                            "children": null,
                            "hasChildren": false
                        }
                    ],
                    "hasChildren": true
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




Image AddedRelated use cases

Page properties report
headingsAutomated action, JWT feature, Label

Related examples

Page properties report
firstcolumnUse case
headingsType,Function, Use case description, Complexity
sortByTitle
cqllabel = "use-case-auto" and label = "transition-issue" and space = "JWTSDC"
If you still have questions regarding this example or others, feel free to refer to our support team.


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Image Added

Automated actionTransition issue action
Label

Status
colourRed
titlestaff pick




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