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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.