Groovy Script failing in 5.2.x or Later
Symptoms
Groovy scripts that were in use before an upgrade to 5.2.x or later no longer work.
The following appears in the atlassian-jira.log
:
groovy.lang.MissingPropertyException: No such property: fullName for class: com.atlassian.jira.crowd.embedded.ofbiz.OfBizUser
Diagnosis
Scripts that refer to the issue.reporter?fullName property will fail.
Cause
This is caused by breaking changes in the API between JIRA 4.x and JIRA 5.x.
Resolution
- Refactor the code in question to use the new property:
- issue.reporter?displayName
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.