Find issuetype name in jira with issuetype id

1.5k Views Asked by At

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?

1

There are 1 best solutions below

0
On BEST ANSWER

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;