I have the following line of code
String currentUser = ((WorkflowContext) transientVars.get("context")).getCaller();
Then I proceed to call
(comment != "") && commentManager.create(parent, currentUser, comment, true);
My question is, that `CommentManager` now requires the `applicationUser` object instead of a `String`. So how do I get the `currentUser` that would return the `applicationUser`.
For newer JIRA version you can try -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So something like,
ComponentAccessor.UserManager.getUserByName(currentUser) ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ComponentAccessor.getUserManager().getUserByName(currentUser)
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.