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

Sometimes it might be helpful to have customized test issues at hand for several scenarios; testing new feature implementations, new project setups or simply new JWT automation rules.

The following rule will take care of Creating customized issues for testing anything that needs to be tested.




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

JQL Query

Use the following Expression:

Code Block
languagebash
linenumberstrue
key = nnnnn


UI Text Box
typenote

nnnnn has to be an issue key. In this case we are going to create test issues as sub-tasks under a predefined issue.

But you can also adapt the configuration to create tasks in a specific project/ under an epic/ etc.


 Create issue action

UI Step

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

UI Tabs


UI Tab
titleIssue Details


UI Steps


UI Step

Issues to be created

Choose Multiple issues


UI Step

Parser Expression

Enter the following expression with mode set to date/ mathematical:

Code Block
languagebash
linenumberstrue
3



UI Step

Issue type

Choose one of the available sub-task issue types


UI Step

Issue type

Choose Selected issue




UI Tab
titleFields


UI Steps


UI Step

Summary

Enter the following Expression with mode set to Advanced text:

Code Block
languagebash
linenumberstrue
"+++TESTING+++ Sub-task " + ^



UI Step

Description

Enter the following Expression with mode set to Basic text:

Code Block
languagebash
linenumberstrue
Sub-task for testing purposes



UI Step

Fields

Set the fields according to your needs.








Screencast

This is how the configuration above should look on your screen

Multimedia
namecreate-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
linenumberstrue
{
    "name": "# Create 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": "key = EO-57",
                "jqlParsingMode": "jql",
                "actingUser": "field_00020"
            },
            "children": [
                {
                    "sequence": 0,
                    "type": "CREATE_ISSUE",
                    "ruleEntityType": "ACTION",
                    "configuration": {
                        "refs": [
                            "issue",
                            "issues",
                            "selector.issue",
                            "selector.parent",
                            "system",
                            "remote.math"
                        ],
                        "issueSelectionParserValue": "3",
                        "issueSelectionParserValueParsingMode": "math",
                        "issuetype": "5",
                        "parentSelection": "selectorIssue",
                        "parentIssueKeyParsingMode": "textBasic",
                        "projectKeyParsingMode": "textBasic",
                        "actingUser": "field_00020",
                        "summary": "\"+++ TESTING +++ Sub-task \" + ^",
                        "summaryParsingMode": "textAdvanced",
                        "description": "Sub-task for testing purposes",
                        "descriptionParsingMode": "textBasic",
                        "inheritFieldsFrom": "none",
                        "inheritFieldsIssueKeyParsingMode": "textBasic",
                        "inheritIssueLinks": "none",
                        "inheritIssueLinksIssueKeyParsingMode": "textBasic",
                        "fields": [
                            {
                                "field": {
                                    "label": "Priority",
                                    "value": "00017",
                                    "meta": {
                                        "isStringEphemeral": false,
                                        "isCustomField": false,
                                        "isIndexable": false,
                                        "isCalculated": false,
                                        "isMultiValued": false,
                                        "type": "Issue priority",
                                        "isNumericEphemeral": false,
                                        "isSystemField": true,
                                        "hasStandardConfig": true,
                                        "isSubtaskOnlyField": false,
                                        "isMultiWritable": false,
                                        "isNumericField": true,
                                        "isVirtualField": true,
                                        "id": "17",
                                        "key": "priority",
                                        "isClearable": true
                                    }
                                },
                                "valueType": {
                                    "label": "Selected value",
                                    "value": "fix"
                                },
                                "value": {
                                    "label": "High",
                                    "value": "10001"
                                },
                                "parsingMode": {
                                    "label": "",
                                    "value": ""
                                }
                            }
                        ],
                        "issueLinks": [],
                        "issueSelection": "math",
                        "inheritFields": []
                    },
                    "children": null,
                    "hasChildren": false
                }
            ],
            "hasChildren": true
        }
    ],
    "hasChildren": true
}




 Related use cases

Page properties report
headingsAutomated action, JWT feature, Label
cqllabel = "use-case-auto" and label = "create-issue" and space = "JWTSDC"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue



Page properties
hiddentrue


JWT feature

Automated actionCreate issue action
Label




Page properties
hiddentrue



Status
Tech review

Status
titleto do

Style guide

Status
colourGreen
titledone

Status
titleto do
Status
colourGreen
titledone
Status
colourYellow
titleneeds review
Status
colourRed
titleflagged