How to get the IssueTypeManager by Script

Fabian Iwanecki
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 11, 2017

I am trying to get a List of all available IssueTypes with the getIssueTypes() method of the IssueTypeManager.

But I cannot manage to get the instance of IssueTypeManager.

A ComponentAccessor.getIssueTypeManager() does not exist.

1 answer

1 accepted

4 votes
Answer accepted
Daniel Yelamos [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2017

Hi Fabian. 

You are right, it does not exist. However, you can access it by:

def issueTypeManager = ComponentAccessor.getComponent(IssueTypeManager)

Hope this helped!

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events