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.
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.