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
Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!
Help us plant more trees
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.