Unable to resolve class - Unable to resolve utility classes within custom scripts

Problem

Customers who have defined there own utility classes and then IMPORT them into a custom script may find that they see the error "unable to resolve class" when using their custom script file within the Jira Web Interface.

Solution

First, make sure that your package names are correct. Remember that Scriptrunner makes a default script roots directory called "scripts" under the Jira Home directory. If you use this default directory, your package names will start from the folders under the script roots (excluding the "scripts" directory itself). The Jira server can see into the scripts folder and any directories within.

If your package names are correct and you still see the "unable to resolve class" error then you are likely on a version of script runner older than 5.4.42 which is impacted by the following bug:

SRJIRA-2987 - Getting issue details... STATUS

The solution to this would be to upgrade scriptrunnerto a version after 5.4.42


Summary Steps
  1. Check Package Names are correct within Utility and script files
  2. Verify if you are on a Scriptrunner version older than 5.4.42 and if so Upgrade