On this page
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
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
Automation rule
Issue Created event
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"
key
with your project key
The Boolean condition can be updated to meet your conditions on the sub-tasks creation.
Create issue action
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
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.
Import the example
Import the JSON file below to get started in no time.
Related use cases
If you still have questions, feel free to refer to our support team.