Hello,
Is there a specific way how to extract information about the last transition made (to status) and who was responsible for that action? I would like to create a restriction type of condition for next transition (from status) that would be based only on people that did not transition the issue previously.
Hello,
You would need to store this info in a custom user field and then analyze this custom user field in a workflow condition. But you would need a scripting add-on to acomplish this logic.
You could use, for example, the Power Scripts add-on:
You could create a post function :
#{mulit user field} = arrayAddElement(#{mulit user field} , currentUser());
This post function would add the current user, who executes this transition, to the custom user field.
Then you could write a workflow condition like this:
if (arrayElementExists(#{mulit user field} , currentUser())) {
return false;
}
return true;
this condition would hide the transtion button on the issue view, if the current user exists in the custom user field.
You coud read more info about post functions and conditions here:
https://confluence.cprime.io/display/JJUPIN/Customizing+workflows
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.