Forums

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

How can I prevent the same user executing 2 consecutive workflow transitions

Joe Smith March 13, 2018

Hello community

I have a workflow with transitions for 2 levels of approval.  Some users are able to execute both, but how can I prevent this from being done using a scripted validation or some other way?

 

Let me know if you need more details.

 

Thanks in advance

 

Joe

1 answer

1 vote
Nic Brough -Adaptavist-
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 Leaders.
March 13, 2018

Yes, SR can do this.  A scripted condition could easily check the issue history for "last person to execute a transition" and return "false" (meaning "no, do not allow this user to use this transition") if that user == currentuser()

Joe Smith March 13, 2018

Thanks for your response.

Any chance you could show me some code that would do this as I am not familiar with the API...

Suggest an answer

Log in or Sign up to answer