The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation for JIRA Plug-In - Actor Override

Ivor Allchin
January 17, 2023

When setting the details for an Automation Rule, it seems the only option for the Actor is to define a JIRA User in advance.

We have a use case where the Automation Rule needs to be dynamically executed under the User Account of the JIRA User whose activity triggered the automation event, rather than by a pre-defined user.

Is it possible to configure Rules using a variable, and if so can anybody share an example?

Many thanks.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Jack Brickey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 17, 2023

Hi @Ivor Allchin ,

i’m not sure it’s the same in server, however, in cloud, you can change the actor under the automation rule details. An image of this is provided below. You have the option in the drop down to choose the user who triggered the event.

704DE00B-0681-48ED-9BF2-0B511F0FF88D.jpeg

Ivor Allchin
January 17, 2023

Thanks @Jack Brickey for the quick response!

Yes, you can change the Actor on Server as you say, but only in advance of running the Rule and the value is hard-coded for every execution.

What we're after is to be able to put a variable value in the Actor field that is populated at runtime e.g. the Rule runs under 'CurrentUser()', for example.

We can't see a way of doing that...

Jack Brickey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 17, 2023

Ivor, i guess I misunderstood. I thought that you wanted the actor to be set to whomever triggered the rule. Is this not the case? If not please explain which user would be set is the actor? I have added another screenshot that illustrates that you can select"User who triggered the event".

2023-01-17_08-03-28.jpg

Ivor Allchin
January 17, 2023

Thanks @Jack Brickey - you're correct, that's the use case exactly.

I don't have that option, however - only the option to search for the named user:

Screenshot 2023-01-17 131158.png

Darryl Lee
Community Champion
January 17, 2023

Ugh yeah, this isn't available on Server/Data Center. Bummer. Here's the ticket for it:
https://jira.atlassian.com/browse/JIRAAUTOSERVER-254

Like # people like this
Ivor Allchin
January 18, 2023

Thanks @Darryl Lee

Shame it's not better news but appreciate the update and the link. 

Like Jack Brickey likes this
TAGS
AUG Leaders

Atlassian Community Events