Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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
PD Sheehan
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.
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