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.
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...
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