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 edited

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.png image.png image.png image.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
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

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
AUG Leaders

Atlassian Community Events