Groovy Script failing in 5.2.x or Later

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

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:

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

Solution

Resolution

  • Refactor the code in question to use the new property:

    • issue.reporter?displayName

    ℹ️ This is to make way for changes related to JRA-1549

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.