issue.get("security") now returns a Long instead of a GenericValue


After upgrading JIRA Misc Workflow Extensions to version 3.6.1 or JIRA Misc Custom Fields to version 1.6, scripts (in calculated custom fields or post-function execution conditions) that are using the following code will stop working:


This is due to a change in the JIRA API for accessing the Issue's Security Level. It now returns a Long (the Security Level ID) instead of a GenericValue.


You should modify the scripts that access the issue's security level through a call to issue.get("security"). You can either rely on the Security Level ID (a 5-digit numeric value), or use the IssueSecurityLevelManager to access the name of the Security Level:

if (issue.get("security") == 10000)

or islm = com.atlassian.jira.ComponentManager.getComponent(;
if ("A Security Level Name".equals(islm.getIssueSecurityName(issue.get("security"))))

There is no content with the specified labels