I have a Confluence Automation that can successfully create a Jira Epic with 6 Tasks, but I have 2 issues:
Any help would be gratefully received. Please note I am not technical, in the sense that I don't know code, so answers for a layman please :-)
Hi @Sean Perry
As others have described, to create the Tasks as children of the new Epic, you may use a Created Variable to capture the Epic's key, and then use that as the Parent for the Task creation.
The more challenging part is creating the Tasks in sequential order for an unknown number of items...
For some workarounds, I can think of three, in increasing order of effort and risk:
Kind regards,
Bill
Hi @Sean Perry ,
For the first part, try creating a variable with a smart value immediately after create Epic action:
{{createdIssue.key}}
This should store Epic item key that you can use later in the branch when creating tasks.
As for the #2 thing: ordering. If you're on the Premium plan, you could use Delay actions within the branch. It may take some time to create all items and execute all actions within the rule, but this should result in items being created in the correct order.
There's this feature request, which has a related problem, and some workarounds you could also use: AUTO-32: Rule orchestration - allow switch between parallel and sequential execution of Automation Rules, e.g. via wait/delay step
Hope this helps.
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sean Perry , thanks for your post.
I would suggest you could create another automation rule in Jira, like this.
First of all, it is important to check this box to have the rule be triggered by another automation:
Then, the trigger would be the creation of the Epic, so you can configure the trigger to be, when an Epic is created, in the destination project.
Then, you can have a series of actions to create the Tasks, indicating the Parent as the trigger work item, like this
Please can you give this a go and see if it works? Let us know if you need more help or have other problems.
Best wishes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
 
 
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.