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|When to use).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

According to this use case, often it might be helpful to have a predefined set of issues for testing purposes. But if you've created several issues, wouldn't it be great to delete them as quickly as they were created? Take the following rule and save time!




UI Steps

 Manual trigger

UI Step

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


UI Step

Add a Trigger → Manual

UI Text Box
typenote

No further configuration needed. The rule will only be executed if a user hits the Execute button .



 JQL Selector

UI Step

Add Selector → JQL Selector


UI Step

Use the following Expression:

Code Block
languagebash
linenumberstrue
parent = nnnnn


UI Text Box
typenote

nnnnn has to be an issue key. In this we are going to delete all issues that are sub-tasks under the specified issue.

But you can also adapt the configuration to your needs!



 Delete issue action

UI Step

Next to the JQL Selector click on Add → Action → Delete issue

UI Text Box
typenote

No further configuration needed.





Screencast

This is how the configuration above should look on your screen

Multimedia
namedelete-test-issues.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
{
    "name": "# Delete test issues",
    "description": "",
    "creator": "admin",
    "status": false,
    "triggerData": "",
    "triggerType": "MANUAL",
    "configuration": {
        "refs": [
            "issue",
            "system",
            "trigger.issue",
            "trigger.parent"
        ],
        "actingUser": "field_00020",
        "triggerType": ""
    },
    "children": [
        {
            "sequence": 0,
            "type": "JQL_SELECTOR",
            "ruleEntityType": "SELECTOR",
            "configuration": {
                "refs": [
                    "system"
                ],
                "jql": "parent = EO-57",
                "jqlParsingMode": "jql",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "DELETE_ISSUE",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "issues",
                            "selector.issue",
                            "selector.parent",
                            "system"
                        ],
                        "actingUser": "field_00020"
                    },
                    "children": null,
                    "hasChildren": false
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




 Related use cases

Page properties report
headingsAutomated action, Use case description, Complexity
cqllabel = "use-case-auto" and label = "delete-issue" and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


Beginner
JWT feature

Automated action

Delete issue action

Use case descriptionManually delete specific issues, e.g. issues used for testing purposes.

LabelComplexity
Status
colourGreen
title