Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi guys
I would like to achieve the following functionality through automation: when creating an epic, automatically create three tasks (task1, task2, task3). I have already implemented this part of the functionality. Next, I would like these three tasks to have link issue added at the time of creation. Their relationships are as follows: task2 depends on task1 and task3 depends on both task1 and task2. Specifically, task2 is blocked by task1 and task3 is blocked by both task1 and task2. How should I write the automation rule to achieve my goal?
There is a certain way to do this, and a "I wonder if this will work..." way.
Certain to work:
"I wonder if this will work...":
I recommend the first approach, as the order of values in a list is undefined...unless it is forced with an ORDER BY. (e.g., in Lookup Issues with JQL)
Kind regards,
Bill
Dear @Bill Sheboy
Thanks for your response. I would like to know how to save and retrieve these variables. Could you provide me with an example, please?
Best Regards,
Moriarty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a rule action to Create Variable, which may be used to temporarily store a value for later use in the rule: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Create-variable
For your scenario, it could be used to save the created issue keys in a known manner, and the referenced later. To edit them, you will need to use JSON to add the links. For example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's looks great, thank you very much for your help. I'll try it when I'm free.
Regards,
Moriarty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again,
In the "ceate anew issue" actions :
"choose fields to set" => Linked issue :
Hope it helps,
Mathieu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I wish to implement a dependency structure where "Task2" is blocked by "Task1," "Task3" is blocked by both "Task2" and "Task1," and "Task4" is blocked by "Task3." It seems that this approach cannot be achieved.
Regards,
Moriarty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, you will only be able to create dependency between task 2 and task 1.
I am not sur if we can make task 3 directly linked to task 1
Maybe someone will have a better solution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your response. However, this issue is particularly urgent for me. Could you please help me get in touch with someone who knows how to resolve this problem?
Best Regards,
Moriarty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.