I need to get Issue Type using Project Key in the way of JAVA API.
HiĀ @Ramesh Lakshmanasamy,
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?
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.ComponentAccessordef projectKey = "you project key"def project = ComponentAccessor.getProjectManager().getProjectByCurrentKey(projectKey)ComponentAccessor.getIssueTypeSchemeManager().getIssueTypesForProject(project).each{ log.error(it.getName())}
is this any api ?
It looks like you're new here. Sign in or register to get started.