On this page



Use case

Avoid the manual work by closing the parent after checking if all sub-tasks are done, let automation do it for you!




Issue transitioned event


Add a Trigger → Issue transitioned event

JQL condition

Add the following expression:

issuetype in subtaskIssueTypes()


Issue selector



Next to the JQL condition click on Add → Issue selector


Choose Parent issue as the target issue.



Boolean condition



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


Add the following expression:

%{trigger.issue.status} = "Done"




Transition issue



Finally, next to the Boolean condition click on Add → Action → Transition issue


Set the mode to Transition to status and choose the status Done.







Screencast

No screencast available at the moment.


Import the example

Import the JSON file below to get started in no time.


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.


{
    "name": "Automatically close parent when all sub-tasks are done",
    "description": "",
    "creator": "admin",
    "status": true,
    "triggerData": "",
    "triggerType": "ISSUE_TRANSITIONED_EVENT",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "JQL_CONDITION",
            "ruleEntityType": "CONDITION",
            "configuration": {
                "refs": [
                    "issue",
                    "project",
                    "system",
                    "trigger",
                    "trigger.issue",
                    "trigger.parent"
                ],
                "jql": "issuetype in subtaskIssueTypes()",
                "jqlParsingMode": "jql",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "ISSUE_SELECTOR",
                    "ruleEntityType": "SELECTOR",
                    "configuration": {
                        "refs": [
                            "issue",
                            "project",
                            "system",
                            "trigger",
                            "trigger.issue",
                            "trigger.parent"
                        ],
                        "option": "parent",
                        "issueListExpressionParsingMode": "issues",
                        "actingUser": "field_00020"
                    },
                    "children": [
                        {
                            "sequence": 0,
                            "type": "BOOLEAN_CONDITION",
                            "ruleEntityType": "CONDITION",
                            "configuration": {
                                "refs": [
                                    "issue",
                                    "issues",
                                    "project",
                                    "selector.issue",
                                    "selector.parent",
                                    "system",
                                    "trigger",
                                    "trigger.issue",
                                    "trigger.parent"
                                ],
                                "expression": "%{trigger.issue.status} = \"Done\"",
                                "expressionParsingMode": "logical",
                                "actingUser": "field_00020"
                            },
                            "children": null,
                            "hasChildren": false
                        },
                        {
                            "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": "10001",
                                "actingUser": "field_00020"
                            },
                            "children": null,
                            "hasChildren": false
                        }
                    ],
                    "hasChildren": true
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




Related examples




JWT feature

Automated actionTransition issue action
Use case descriptionAutomatically set parent issue to "Done" after all sub-tasks are done.
Label
Complexity






Status
Tech review

Style guide