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).*
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Creating multiple issues can be time consuming and on top of it, if you need to add sub-tasks to those newly created issues could even lead to mistakes, what is expected from redundant work!

In this use case. we will save your time by using our Create issue post function in a collaboration with JWT automation rules. The parent issue will be created by the post function when a status transition has been made, this will trigger the automation rule to create the sub-tasks.


Create issue post function

UI Steps


UI Step

Add the create issue post function to the desired workflow transition.


UI Step

Issues to be created

UI Steps


UI Step

Mode

Choose Single issue


UI Step

Issue type

Choose Selected issue type → Task


UI Step

Project

Select the project you want to create the issue in from the given options. (Current project by default)




UI Step

Summary

Enter a summary that fits your needs, e.g.

Code Block
languagebash
linenumberstrue
Internal progress report



UI Step

Description

To enrich the issue with further information, you might want to add a short description. It is not mandatory, though.


UI Step

Further configuration

UI Expand
titleFields

You have the possibility to set additional fields on the issue to be created.

Maybe you want to predefine the issue Assignee or a time estimation for time logging purposes.

UI Text Box
typetip

Don't want to set the fields? You can also copy existing values from the current issue!

For further information, you might want to take a look at the Create issue documentation.



UI Expand
titleIssue links

This is an optional parameter where you can define issue links for the issue to be created.


UI Expand
titleAdditional options

If you want to copy issue keys of created issues into the field Temporaty Text 3 as a text list, choose this option.


UI Expand
titleConditional execution

If you want some conditions that need to be checked before the execution of this post function, add your logical expression.

UI Text Box
typetip

Uncertain about this part? Check out our documentation!



UI Expand
titleRun as

Include Page
DECADIS:_snip_runAs_Server_postFunction
DECADIS:_snip_runAs_Server_postFunction




Automation rule

UI Steps

Image AddedIssue Created 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 Event Issue Created


Image Added Boolean condition

UI Step

Add the Boolean condition and enter the following Parser Expression*

Code Block
linenumberstrue
%{trigger.issue.project.key} = "key"


UI Text Box
typeinfo
Replace key with your project key


UI Text Box
typetip

The Boolean condition can be updated to meet your conditions on the sub-tasks creation.



Image Added Create issue action

UI Step


UI Tabs


UI Tab
titleIssue Details


UI Steps


UI Step

Issues to be created

Choose Multiple issues


UI Step

Parser Expression

Code Block
linenumberstrue
3  

with parsing mode set to Numeric

UI Text Box
typetip

This leads to creating 3 sub-tasks, you can change the number to create as many sub-tasks as you need.



UI Step

Issue type

Choose Sub-task


UI Step

Parent issue

Choose Trigger issue




UI Tab
titleFields


UI Steps


UI Step

Summary

Use the following Parser Expression:

Code Block
linenumberstrue
getMatchingValue(^,[1,2,3],
["Documentation","Marketplace","Report"])

with parsing mode set to Advanced text.

UI Text Box
typeinfo

This will assign the summaries of the sub-tasks in the respective order as in the expression. e.g. Sub-task 1 would have the summary as Documentation.



UI Step

Description

Use the following Parser Expression:

Code Block
linenumberstrue
getMatchingValue(^,[1,2,3],
["Description 1","Description 2","Description 3"])

with parsing mode set to Advanced text.






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




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": "Add sub-tasks on issue creation",
"description": "",
"creator": "admin",
"status": true,
"triggerData": "1",
"triggerType": "ISSUE_EVENT",
"configuration": {
"refs": [
"issue",
"system",
"trigger.issue",
"trigger.parent"
],
"triggerType": "1"
},
"children": [
{
"sequence": 0,
"type": "BOOLEAN_CONDITION",
"ruleEntityType": "CONDITION",
"configuration": {
"refs": [
"issue",
"project",
"system",
"trigger",
"trigger.issue",
"trigger.parent"
],
"expression": "%{trigger.issue.project.key} = \"key\"",
"expressionParsingMode": "logical",
"actingUser": "field_00020"
},
"children": [
{
"sequence": 0,
"type": "CREATE_ISSUE",
"ruleEntityType": "ACTION",
"configuration": {
"refs": [
"issue",
"project",
"system",
"trigger",
"trigger.issue",
"trigger.parent",
"seed.number"
],
"issueSelectionParserValue": "3",
"issueSelectionParserValueParsingMode": "math",
"issuetype": "10001",
"parentSelection": "eventIssue",
"parentIssueKeyParsingMode": "textBasic",
"projectKeyParsingMode": "textBasic",
"actingUser": "field_00020",
"summary": "getMatchingValue(^,[1,2,3],\r\n[\"Documentation\",\"Marketplace\",\"Report\"])\r\n\r\n",
"summaryParsingMode": "textAdvanced",
"description": "getMatchingValue(^,[1,2,3],\r\n[\"Description 1\",\"Description 2\",\"Description 3\"])",
"descriptionParsingMode": "textAdvanced",
"inheritFieldsFrom": "none",
"inheritFieldsIssueKeyParsingMode": "textBasic",
"inheritIssueLinks": "none",
"inheritIssueLinksIssueKeyParsingMode": "textBasic",
"fields": [],
"issueLinks": [],
"issueSelection": "math",
"inheritFields": []
},
"children": null,
"hasChildren": false
}
],
"hasChildren": true
}
],
"hasChildren": true
}



Related use cases

Page properties report
headingsAutomated action, JWT feature, Label
sortByTitle
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

Image Added Image Added

Workflow function

Create issue

Parser functionsgetMatchingValue()
Automated actionCreate issue action
Label