Hey
Im using Script runner to run a Groovy Script as a Post Function.
But I cant figure out how to get data regarding the user preforming the transition.
Anyone know the property to get for the user (Like "issue" gets the current issue.)
You can use componentManager.jiraAuthenticationContext.getLoggedInUser() to get the current user.
Found that this works:
User currentUser = UserUtils.getUser(((WorkflowContext) transientVars.get("context")).getCaller())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried:
String currentUser = ((WorkflowContext) transientVars.get("context")).getCaller();
But this "only" gets me the user name. I need the user Object (com.atlassian.crowd.embedded.api.User)
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.