I would like the rule actor of the automation to be the assignee of the ticket. It doesn't seem like this is possible.
Here is my scenario and this is in JSM. We use survey monkey for CSAT surveys. When a ticket is closed by the customer (via the portal) the rule actor is the customer, and this the automation error's out when trying to put in the external facing comment.
I have set the rule actor to be me (site admin), but I would rather the person putting the comment on there be the assignee of the ticket
Hi @Jeffrey Bistrong
In Jira, the rule actor is fixed per rule (“Automation for Jira” or a specific user). It can’t be changed dynamically to “the current assignee.”
The rule actor is the user under whose permissions the automation runs and whose name appears as the author of comments/actions performed by the rule.
Jira Automation only allows you to set the rule actor to a specific user (from a dropdown) or the Automation for Jira bot.
There is no built-in option to set the rule actor to "the assignee" or any other issue field value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As others have implied, the actor is assigned to the rule when it was last published.
More specifically, when the rule begins executing, the currently assigned actor configuration is used for the specific instance of execution. And thus, one could not use a workaround to call the automation REST API endpoint to dynamically change the actor while it is running.
A brute-force workaround might be using the REST API instead of rule actions:
I have not tried this for your scenario, although I did a quick test and a smart value may be used as an API token for the header.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.