Get JIRA issue key when using ‘Script Runner’ groovy script in a JIRA workflow transition

If you need to get a current issue’s key value and you use ‘groovy’, you can use this code

import com.atlassian.jira.issue.Issue

Issue issue  = issue

issueKey =  issue.getKey()
Advertisements