Api method getAssociatedIssueTypes() returning null objects

Amine May 3, 2021

Hello,

I want to retrieve with scriptrunner all IssueTypeSchemes and their related Issuetypes, 

When i call the method getAssociatedIssueTypes() to retrieve the issuetypes linked to a FieldConfigScheme i get always a collection of null objects. 

Below the script : ( for exemple extracting all issutypes of Default ITS)


import com.atlassian.jira.component.ComponentAccessor

def issueTypeSchemeManager = ComponentAccessor.getIssueTypeSchemeManager()


def defaultIssueTypeScheme = issueTypeSchemeManager.getDefaultIssueTypeScheme()

defaultIssueTypeScheme.getAssociatedIssueTypes()

 

Result :

[null]

 

Any idea to fix that , thank you in advance !

1 answer

0 votes
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 3, 2021

I'm guessing this was posted in CLOUD in error (I don't think these methods are accessible in cloud) and the correct post is https://community.atlassian.com/t5/Jira-Software-questions/Api-method-getAssociatedIssueTypes-returning-null-objects/qaq-p/1682398

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events