Czachovic
Czachovic

Reputation: 80

Find issuetype name in jira with issuetype id

My problem is that I have issuetype number but I need to send it's name into database. How can I get issuetype name having it's number?

Upvotes: 0

Views: 1695

Answers (1)

Czachovic
Czachovic

Reputation: 80

I found needed method on this page :Jira Constants Manager

I had to use code: ComponentAccessor.getConstantsManager().getIssueTypeObject(val).getName()
where val is issue number. I had to use Component Accessor to get to correct method.

Import: import com.atlassian.jira.component.ComponentAccessor;

Upvotes: 1

Related Questions