Hi,
I have a costume field called "Department involved" (multi select field)
I'm building an automation to link tasks to different epics according to the field value.
For example - if the field is selected with "Finance", the issue should link to the specific epic I have for Finance department.
Additionally, the field is multi select since the issue can be related to several departments.
Therefore, for example if the field is selected with both "Finance" & "Legal" - the issue should link to both Finance and legal specific epics I have for each of the departments.
I'm not able to build the automation correctly because if I'm using "If" - the role stops running once one of the departments is chosen (if I have more than 1 departments the issue will link to the first one only)
I tried using field condition only but the automation changes nothing.
Would love for some advice here :)
Thanks
Hi @Dana.Harel
You do not say how you determine the specific epics to link to for each value in your Department Involved field.
Let's assume it is one of these
project = myProjectName AND issueType = Epic AND myEpicsCustomField IN ( {{#triggerIssue.Department Involved}}"{{value}}"{{^last}}, {{/}}{{/}} )
Kind regards,
Bill
Hi @Bill Sheboy , thanks.
The epics are already created - I opened a specific epic for each department.
I want the automation to link the issue to the correct epic according to the option selected in the field "Department involved"
The problem I'm having with the automation is that once more than 1 option is selected in this field - the automation links the issue only to the relevant epic for the first option. The rule stops from running after the first option is true in the condition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is what I would expect if just using the conditions, and it is why I suggested either using the branch or if/else, as @Vamsi Kandala also suggested.
For example...
This will not handle the case of removing values (and their links), which is a bit more complex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi - This seems to workout for me
Thanks
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.
Hi @Dana.Harel
Did you try using the 'If / else block' instead of 'Issue fields condition'?
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vamsi Kandala I did use a single 'If / else block'. The problem is that once one of the conditions is true, the rule stops running.
This causes a problem in which if I have to options selected under the field, the issue will link only to the epic of the first option
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dana.Harel
The 'if/else' block has additional feature to check if all conditions have to match or at least one condition.
Hope this helps.
Thanks,
Vamsi
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.