Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

jira3.png

2 answers

1 accepted

0 votes
Answer accepted

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

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

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
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,632 views 22 33
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you