Details
Description
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.jira.web.action.admin
- com.atlassian.jira.bc.issue.comment.property.CommentPropertyService
- com.atlassian.mail.server.SMTPMailServer
- 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 4.2.0.7.
The following screenshot shows the error you get:
Attachments
Issue Links
- is duplicated by
-
SRJIRA-2080 Import of custom class results in STC errors for scripted fields
-
- Done
-
-
SRJIRA-2088 STC error when importing a class in a file script.
-
- Done
-