Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why I get static type checking errors found while Script seems corect and works.

Rafał Nowakowski August 30, 2018

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

 

image.pngimage.pngimage.pngimage.png

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 30, 2018

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

Suggest an answer

Log in or Sign up to answer