The static type checker seems to have lots of trouble resolving classes that come from plugins or external JARs that are in WEB-INF/lib.
To reproduce in JIRA:
- Install Tempo
- Setup scripted field from the documentation as an inline script: https://scriptrunner.adaptavist.com/latest/jira/plugins/working-with-tempo.html#_summing_worklogs_with_an_attribute
- The static type checker can not resolve the tempo classes
Running the scripted field in the example is successful though.
This seems to happen when importing some other classes as well:
- com.atlassian.applinks.api.application.jira.JiraApplicationType <--in ScriptRunner for Confluence
Seems like this issue has existed for a while; by some reports it was working in SR 18.104.22.168.
The following screenshot shows the error you get: