Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,670
Community Members
 
Community Events
184
Community Groups

Conditions to execute transition

How to block user role from executing certain issue transition when they are also the assignee of the issue?

2 answers

1 accepted

3 votes
Answer accepted

Hello @Maya 

As it was discussed above, it`s possible to configure such logic using Condition from Power Scripts 
Here is an example of such Condition SIL script: 

if( isUserInRole(currentUser(), project, "Developers") and assignee == currentUser() ) 
return false;

Some helpful documentation about it you can find here  https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15487273/Writing+Conditions+Validators+and+Post+Functions
https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15481301/Conditions

Hope it helps!
Anna 

0 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 09, 2023

You can do this by adding conditions on the transition that the user has to be in a specific role. If the user is not in that role the transition vill not be visible to them. See Configure advanced issue workflows for more information.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 09, 2023

@Mikael Sandberg 

I don't think your suggestion meets the requirement.

As I understand it the user should be blocked from making a particular transitions for a specific issue only if they are the Assignee on that issue. If somebody else is the Assignee, then a user who is not the Assignee should be able to complete the transition. I don't think this scenario can't be covered by using Conditions based only on Role-based Conditions, as there is no Condition (natively) to ensure the users is not the Assignee.

Like # people like this
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 09, 2023

@Trudy Claspill That was not my interpretation of the requirement, but if that is the case you could still use conditions. There is one for separation of duties that you could utilize in that case, something like this:

Screenshot 2023-05-09 at 2.52.12 PM.png

This of course assume that there is a transition that the assignee does before getting to the one that should be restricted. It that is not the case then you would need to look for an app in the Marketplace that extends the conditions and allows you to add a more complicated one like Scriptrunner, Power scripts or any of the other apps that can do that.

Like # people like this

@Trudy Claspill Your interpretation is correct. Thank you for clarifying the requirement.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events