I have two automations that work independently. When they are both turned on, they don't work. My ultimate goal is to combine them, but I can't wrap my head around how.
My first automation is as follows: When an issue is created and issue type equals story then create 3 subtasks (and I name them). I have tested this several times. When I create an issue (story) 3 subtasks are created.
My second automation is as follows: When an issue is created and issue is a subtask, defect, etc, then edit issue field (custom field) I have also tested this and it works. When I change the custom field in the parent issue, the custom field in the subtasks also change.
How do I combine these two? So to recap. I want subtasks to automatically be created when I create an issue (story) and when the custom field drop down is manually changed/added to the story, I need the same field in the subtasks to also be added.
Any help is appreciated.
Thanks!
Hi @Holly Hammond -- Welcome to the Atlassian Community!
Short answer: although it might be possible to merge those rules, I recommend against some of what you describe.
What problem you are are to solve by merging the rules? That is, "why do this?" Knowing that may help the community to offer other suggestions. Until we know that...
You describe two scenarios, which could be combined using an if / else condition block:
WHEN an issue is created
AND the issue type equals Story
THEN create three Sub-tasks within the Story
WHEN an issue is created
AND the issue type is one of Sub-task, Defect, etc.
THEN edit "my custom field" to "some value"
Yet your second paragraph seems to indicate another rule:
GIVEN a Story
AND the Story has one or more child Sub-tasks
WHEN "my custom field" changes in the Story
THEN update the Sub-tasks' "my custom field" to match the parent Story
This one has a different triggering event than the first two rules. Although it could be merged using the Multiple Issue Events trigger (recently renamed to Multiple Work Item Events), that would lead to problems:
Kind regards,
Bill
Adding your comments from the duplicate question created:
The problem I am trying to solve by merging the rules is they don't seem to work when the two separate rules are turned on at the same time. They work individually. So i thought that combining them would be best, turns out that isn't so great either.
Basically our custom field has to (a policy) be filled out and using automation to copy the subtasks once the parent is manually selected is the easiest way to avoid forgetfulness. (2nd automation)
In addition those subtasks need to be automatically generated upon creation of the issue type story. (1st automation)
So what I am gathering here is combining them, not so great and I should avoid. But then why don't they work when they are both turned on?
In response to those...
Please post images of each of the complete rules, clearly indicating their names and steps. Those will add some context to learn which ones can (or cannot) be combined.
Thanks!
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.