Hello,
I'd like to add code to an automation rule in order to detect that the user that will be assigned will Jira Automation and in such a case leave the User Assigned field unmodified.
Thanks!
Just to confirm the need here...
...is this correct?
---
You could add a User Condition to achieve this?
The parameters would be:
This would stop the rule from executing the Action if the user who triggered the Automation Rule is the "Automation for Jira" account.
---
If there's multiple actions, not just Assign Issue happening - you could also consider:
---
If these don't fit into your wider rule, could you provide us some more specifics about what the rule does and how it operates? A screenshot would be very beneficial in this scenario.
Or if it isn't what you need, let us know so we can assist further :)
Ste
Hi Ste,
Thanks for the prompt response.
I did the following and tested it in a test project and it seems to work:
-Added an If/Else block to the rule
---Check if the User who triggered the event IS NOT "Automation for Jira"
-------Then go ahead and Assign
So, if the user that's going to be assigned would be Automation for Jira, then rule stops without assigning it.
Thank you all!
Federico.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not quite clear what you want to accomplish. I mean you want the rule that you will create to see if the assigned user is "Jira Automation"? And if this is the case then leave the assignee field unmodified?
Or you want to change the actor of the rule as Rilwan suggests?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the question Alex.
Above is how I solved it.
To answer your question, I wanted to have the rule assign whomever triggered the event unless the user who triggered the rule is Automation for Jira. :)
Have a great day!
Federico.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Federico Varchavsky ,
Jira/Site admin can add other users as Rule actor. Steps are mentioned in https://support.atlassian.com/cloud-automation/docs/run-jira-rules-as-another-user/
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.