I need to get Issue Type using Project Key in the way of JAVA API.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.