I am trying to have a template of Epics, tasks and custom subtasks (Sub Test-Case), that I can clone by manually triggering an automation. I have the Epics being cloned and all child stories/tasks in one rule. But I am stumped with the second rule of creating the subtasks into the new created epic/issues. Please help! This is driving me mad. I've seen lots of posts on this but no real solution, at least not one that I'm following.
@Stephen Wrathall Thank you for this. I am so close but still don't have it working properly. I copied both Rule 1 and 2. My only change is I have a custom subtask issue type, called Sub-Test Case. I finally am getting the sub-test cases cloned but in the original Tasks, not the newly cloned tasks. Can you please take a look? Where am I going wrong?
@Stephen Wrathall Please help! I'm not sure what is wrong with this and why issues are still being created in original tasks, not cloned tasks.
That's the same challenge faced here:
I would be trying the same as what they've done there.
My best guess as to why it's not working in your example is the Branch that you're using is "For JQL: IssueType = 'Sub-Test Case'". And so {{lookupIssues}} isn't resolving to the right issue inside your branch.
As in that other post, try using the "For Sub-tasks" branch.
If that's not possible, then that might be related to your custom sub-task type. I wouldn't be surprised if "For JQL" doesn't set the same smart values as "For Sub-tasks", in which case it might not be possible.
Regards,
Stephen
Have you managed to set up your automation? This can be quite tricky. If you are still facing problems I want to suggest, as @Stephen Wrathall was already so nice to mention, our Deep Clone for Jira app. With it, you can also clone your template hierarchy across instances or clone a whole project.