You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have an automation that prevents a status change from Backlog to Open unless a certain group of people perform the change. The transition works ok the first time it is performed on an issue, but when the status is rolled back from Open to Backlog, the status can be moved to Open without the control. It appears to bypass the rule. Here is the rule:
The error states:
Hi Jim,
Welcome to the Atlassian Community!
As already noted, a workflow validator may be better for a scenario like this, and I see you describe why that was not used.
Your rule is using a JQL condition on status and the user performing the change, at any point in time found in the changelog. That means if anyone who was "authorized" ever performed the transition, the condition will pass as true.
To detect the status transition for this specific rule triggering, please try using a condition on the {{initiator}} smart value instead. That smart value is the person / user who performed the transition which triggered the rule.
Kind regards,
Bill
Bill, Can you expand on this solution please? I dont have access to edit the workflow transition and really need to find a way to prevent the status from being moved outside a select set of people. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could replace your JQL condition on status changes to instead check with a User Condition for the person who triggered the rule, compared to your list.
I cannot tell which version of Jira you have (Cloud, Server, Data Center), and so if you do not have the User Condition, you could instead use an Advanced Compare Condition and compare the {{initiator.accountId}} to a list of known user's account id values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Helmbrecht_ Jim _Synchrony_ the issue is with your JQL function. To get from Backlog to Open the status was changed by the specific group. Since that group made a status change to "Ticket-4255", the ticket will always show when you search status changed by the group. Even if the status has been changed 50 times by 50 different people, it will always have been changed by that group at one point.
I would recommend setting this requirement on the workflow rather than the automation if at all possible because you're not really preventing the issue from being transitioned, you're just transitioning it back after the transition was complete.
If not, you should be able to use the User Condition, "User who triggered the event".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Helmbrecht_ Jim _Synchrony_
The issue is that there is no transition to get back to Backlog.
Because the automation is trigered after the action is performed the automation have to set it back to Backlog.
Why are you not using a workflow validator or condition instead ?
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think our company has the ability to edit transitions locked down. I am not able to make changes to the workflow transition properties. I do have a transition back to Backlog.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you try to add the "Re-fetch issue data" action before the transition in the else ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am struggling to understand the error. It says the following:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you add the log action, and display {{issue.status.name}} to make sure the issue is in teh expected sttaus.
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.