Hey,
I wrote simply Script and tested it in Script Console (Scriptrunner).
After run I got my result. One thing which is worring me is that I get many type checking errors. Any ides why it happens like that? Is my script not so good or its just how Scriptrunner console works?
Scriptrunner version: 5.4.7
Hello,
It would much simpler if you attached the source code, not screenshots. It should be
def getUserByName(String userName) {
return ComponentAccessor.userManager.getUserbyName(userName);
}
def tech = getUserByName("tech");
return tech
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.