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.
⚒️ Configuration
Create issue post function
Add the create issue post function to the desired workflow transition.
Issues to be created
Mode
Choose Single issue
Issue type
Choose Selected issue type → Task
Project
Select the project you want to create the issue in from the given options. (Current project by default)
Summary
Enter a summary that fits your needs, e.g.
Internal progress report
Description
To enrich the issue with further information, you might want to add a short description. It is not mandatory, though.
Further configuration
Fields
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.
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.
Issue links
This is an optional parameter where you can define issue links for the issue to be created.
Additional options
If you want to copy issue keys of created issues into the field Temporary Text 3 as a text list, choose this option.
Conditional execution
If you want some conditions that need to be checked before the execution of this post function, add your logical expression.
Uncertain about this part? Check out our documentation!
Run as
Select which user will be used to execute this post function. By default this parameter is set to the current user. You can also use field codes to run the function as a dynamic user (e.g. current assignee).
Make sure that the user running the post function has all the relevant permissions to perform the actions defined in the configuration (e.g. "Update Issues")!
If you want to keep track the actions being performed automatically, we suggest to create a dedicated JWT account, granted all relevant permissions, and use it in the Run as parameter to identify which changes have been made with JWT.
Automation rule
Issue Created event
Create a new rule and name it appropriately.
Providing a description will help you to identify what the rule does but this step is optional.
Add a Trigger → Issue Event → Issue Created
Boolean condition
Add the Boolean condition and enter the following Parser Expression*
%{trigger.issue.project.key} = "key"
Replace key with your project key
The Boolean condition can be updated to meet your conditions on the sub-tasks creation.
Create issue action
Issue Details
Issues to be created
Choose Multiple issues
Parser Expression
3
with parsing mode set to Numeric
This leads to creating 3 sub-tasks, you can change the number to create as many sub-tasks as you need.
Issue type
Choose Sub-task
Parent issue
Choose Trigger issue
Fields
Summary
Use the following Parser Expression:
getMatchingValue(^,[1,2,3],
["Documentation","Marketplace","Report"])
with parsing mode set to Advanced text.
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.
Description
Use the following Parser Expression:
getMatchingValue(^,[1,2,3],
["Description 1","Description 2","Description 3"])
with parsing mode set to Advanced text.
Enable the rule by clicking on the Enable button
📤 Import the example
Import the JSON file below to get started in no time.