Reputation: 80
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
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