Hi folks
I have a simple question: how to convert string value with username into ApplicationUser. I need to use setAssignee method. I get value of username from file and my function return this value as a string ? But setAssignee method requires ApplicationUser value. How to do that?
Hello,
You can use userManager to get application user like this:
def userManager = ComponentAccessor.getUserManager()
def user = userManager.getUserByName("username")
Check out the documentation of usermanager here:
Regards,
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.