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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.