Forums

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

Hello everyone, I executed a script in the script runner, and the result is correct, but the code ha

haiyaner August 29, 2019

jira3.png

2 answers

1 accepted

0 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
August 30, 2019

Hi Haiyaner,

Thank you for your question.

I can confirm that the red cross which you are seeing is the result of the Static Type Checking feature in the code editor.

I can confirm that you can read more about this feature inside of the ScriptRunner for Jira Server documentation page located here.

As noted in the documentation, unfortunately, there are some limitations with the type checker which means it's possible to write code which displays errors when in fact there are no errors.

This means that if you go ahead and execute the script it should work as expected.

If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.

Regards,

Kristian

haiyaner September 1, 2019

Thank you for your answer. I did not use def to define the variable, but specified the type of the variable, and then ran it successfullyjira4.png

0 votes
haiyaner August 29, 2019

Hello everyone, I executed a script in the script runner, and the result is correct, but the code has red wavy lines. Does anybody know why

Suggest an answer

Log in or Sign up to answer