Hello,
I would like to set up automation that only the assignee can change the assignee to someone else.
I have used the Field value changed. When value changes for assignee with the smart values: {{initiator.accountId}} does not equal {{issue.assignee.accountId}}.
Then edit work item, Edit work item fields, Assignee {{issue.assignee.accountId}}
Which should revert the assignee back to the original assignee. But it doesn't seem to work.
Any ideas what I could be doing wrong?
Hi there @Eveline de Peffer, Welcome to the Community! I have a couple of answers for you and a couple of possible solutions too.
1st Issue Inhibiting Your Automation:
Automations cannot designate user-level role permissions. This is better suited to permission schemas (user or group permissions, e.g.)_and workflow conditions/restrictions.
2nd Issue Inhibiting the Automation:
Your automation rule uses Smart Value {{issue.assignee.accountId}} correctly on the first Assignee change. On the reversion though, the Smart Value {{issue.assignee.accountId}} now holds the account ID for the Assignee that is reverting back to the original Assignee.
Since the rule is comparing the Second Assignee's account ID to the original Assignee's account ID, the rule fails.
Potential solution:
Configure the Assign issues permission in the project permission scheme.
If you still need an automation to revert to the original Assignee once the new Assignee finishes something, that'll be a really easy breezy workflow to top it all off. But, I want to make sure that is still what you need before sending more info; this is a lot i know!
Hello @Liz Tanner,
Thank you for the information. Using the project permission scheme might be the best option.
Where can I find the project permission scheme? Could it be I need more admin permissions?
These are the setting options I have access to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Eveline de Peffer, welcome to the Atlassian community!
Instead of using automation, have you tried achieving this using the Jira permission scheme? You could try granting the assign issues permission only to the Current assignee and the automation user (assuming the first assignee is set by an automation).
Hope I was able to help.
Kind regards,
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Ana Livia Rocha Silva
Thank you for the information. Where can I find the Jira permission scheme?
Kind regards, Eveline
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can find it in the project settings, in Project permissions:
Kind regards,
Ana
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.