Hey there,
i am currently developing some scripted fields on our jira test instance and was wondering why the underlying scripts get not only compiled, but also are executed at jira startup.
Interesting thing is even Issue issue = issue contains, according to the logs, an real issue object.
That results in a flooded atlassian-log, cuz some methods for example "getLoggedInUser.getName" of course throw a NullPointerException.
This is not acceptable for production use.
One more thing to point out is that after deleting all issue index files and restarting, the scripts do not get executed.
What is going on here? Is Jira-/Scriptrunner trying to restore some old sessions? Is this some sort of caching? Is this some sort of default behaviour? And most important how can i turn it off?
Additional Information:
Jira Version: 7.x
Scriptrunner Version: 5.0.14
Scripts are on server in own script root folder
It looks like the script is not executed for all, but only some (random?) Issues