Example for getting the IssueType
ComponentAccessor.getConstantsManager.getAllIssueTypeObjects
Hello,
If you want to get all issue types for a project, it will be like this
import com.atlassian.jira.component.ComponentAccessor
def projectKey = "you project key"
def project = ComponentAccessor.getProjectManager().getProjectByCurrentKey(projectKey)
ComponentAccessor.getIssueTypeSchemeManager().getIssueTypesForProject(project).each{
log.error(it.getName())
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not get what you try to do.
Do you want to get all issue types that are available in the project identfied by the project key?
Or do you mean the issue key and want to get the issue type of a specific issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.