Hello,
I'm a newer user of Jira and cannot find a way to automate the following in bold:
1. When an Issue is Created with a Component = "X"
2. Then: Create a New Task
3. And: Create 6 Sub-Tasks
4. Link the Sub-Tasks to New Task NOT the Epic
Hi @wendt279
Are your sub-tasks on the trigger issue or on the newly created one? If it is the newly created one, your rule probably looks more like this, with a branch, right?
If so, in the add sub-tasks action, you can select linked issues and link them to the most recently created issue also.
Best regards,
Bill
Hi Bill, thank you for your response! I have set up part of my automation as you describe. The issue that I'm having is that I can add Tasks but am having trouble adding Sub-Tasks to those Tasks. In the beginning they were just adding to themselves to the Epic.
Conditions:
Actions:
Branching:
It worked when I just had one branching, but now creates duplicates as a result of adding the other branches. Any thoughts/suggestions?
Thank you in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @wendt279
As soon as you add those extra creates and branches, the rule can no longer do what you note, as the only built-in options for linking are to the trigger issue or the "most recently created issue".
Please consider posting an image of your rule, as that will help confirm this is what is happening.
In that case, you would need to probably use other branching (or try advanced branching) and advanced edit with JSON to add the links to other issues. Here is the documentation for that second part: https://support.atlassian.com/jira-software-cloud/docs/advanced-field-editing-json/#Advancedfieldediting-JSON--Linkingissues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for posting the image of your rule. As I suspected, with this rule layout you would need to:
But before you try that, would you please describe the problem you are trying to solve? It would seem this rule is creating a "web" of linkages between sub-tasks and tasks other than their parents. Perhaps there is another approach that will be clearly if the problem is described. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We perform assessments, and each assessment has the same tasks/sub-tasks. I would like the end user to just create the Epic (Assessment XYZ) and have an automate rule that would create all the necessary tasks/sub-tasks for them. We have an assessment onboarding phase, assessment phase, approval phase and want the sub-tasks to fall under those tasks rather than the overall Epic.
Do you have a better way to do this? Again, newer Jira user over here :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for explaining your use case! You are on the right track, using the trigger to detect the epic create, as you have done, and then create each task and its sub-tasks, one by one. That will ensure they are linked as you expect. There are two ways to do this: one rule or two rules.
One rule: pros are one-rule; and con is more complicated due to created variables and JSON edit
Two rules: pro are simpler, and easier to test, and require no JSON edit; and cons are gotta maintain both rules
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am glad to hear that worked for you!
One more suggestion: you may want to use a different name for the created variable than {{key}} as that is the name of an existing smart value, and there is a risk it could end up resolving to a different issue in the rule.
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.