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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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