I'm running into an issue with an automation rule. What I'm trying to achieve is create an epic in another project (IT) with linked tasks based on values of a multi-select of a newly created epic in a different project (HR).
I've tried two different ways, here's screenshots of the settings right now and below a description of the other method I've tried.
As I'm sure you've noticed, the above only works if the all conditions of IT Hardware are selected. So, if an epic is created in HR and only "Docking Station" is selected, then the IT project will only get an epic without the linked task to provide the docking station.
I have tried putting the IT Hardware field condition within the branch. This resulted in none of the conditions being met since the branch was for "For Most recently created issue". I then changed the branch type to "Current Issue" which allowed the conditions to be met. However, that broke the "Due Date" and "Epic Link" values within the task. I was unable to link the task to the newly created IT epic since I was branching off of the HR epic for that task creation step.
Thank you in advance for any suggestions.
I managed to work around this issue by putting the following automation rule in my IT project.
Try using the "If / else block" condition instead of an "Issue fields condition". That will ensure that execution continues even if the condition is not true.
Also, I'm noticing that your second "For most recently created issue" branch might misfire if the "Desk Phone" conditional causes a Task to be created. At that point, a new "most recently created issue" will be in effect.
To get around this, you'll want to put all your Task creation actions inside just one "For most recently created issue" branch. That should ensure they are created under the Epic created early in your rule.
Using pseudo-code, I envision your solution being more like this:
...
Action: Create Epic
Branch: For Most recently created issue
If/Else Condition: if IT Hardware contains Desk Phone
Then Action: Create Task
If/Else Condition: if IT Hardware contains Docking Station
Then Action: Create Task
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jeff Clay
Yes, and...to what Mykenna suggests:
Are you trying to:
If it is the first one, you are gonna need a longer rule and to save the created epic's key to help. Otherwise only the first selected item in the list will be used (I think). For example:
Please note that this rule will run slower due to all of the branches.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe the if/else condition does allow for checking if a multi-select field contains a value:
Yes, I have a multi-select custom field called MultiSelectTest. We didn't have any multi-select fields, so I had to create one (months ago) to do some testing!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmmm. Perhaps the "Create Issue" action in the If/Else is altering what should be the "current issue" as the Epic specified in the branch. That sounds like a bug to me, but let's try to work around it...
Here is updated pseudocode that might get you going:
...
Action: Create Epic
Branch: For Most recently created issue
Action: Create variable DeskPhone set to 0
Action: Create variable DockingStation set to 0
If/Else Condition: if IT Hardware contains Desk Phone
Then Action: Create variable DeskPhone set to 1
If/Else Condition: if IT Hardware contains Docking Station
Then Action: Create variable DockingStation set to 1
If/Else Condition: if {{DeskPhone}} is 1
Then Action: Create Task
If/Else Condition: if {{DockingStation}} is 1
Then Action: Create Task
This approach postpones the creation of the Tasks.
Important: With all these If/Else conditions, be sure NOT to nest them. You don't want this:
If/Else Condition: if IT Hardware contains Desk Phone
If/Else Condition: if IT Hardware contains Docking Station
If/Else Condition: if {{DeskPhone}} is 1
If/Else Condition: if {{DockingStation}} is 1
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.