IssueLinkTypeManager

Stefan Thiem March 24, 2022

Hello,

 

I have a quick question. I wrote a groovy script and I am trying to get all IssueLinkTypes. Unfortuanely the function is not working. Has anybody an idea?

import com.atlassian.jira.issue.link.IssueLinkTypeManager

IssueLinkTypeManager.getIssueLinkTypes()

Error: "No signature of method: static com.atlassian.jira.issue.link.IssueLinkTypeManager.getIssueLinkTypes() is applicable for argument types: () values: []"

1 answer

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 24, 2022

Hi @Stefan Thiem what version of Jira do you use?

Stefan Thiem March 25, 2022

Hi @Martin Bayer _MoroSystems_ s_r_o__  sorry, I should have included this information: it is JIRA 8.5.4

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 25, 2022

Hi @Stefan Thiem I'm not sure if your code is complete, but in my case the following code works fine:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.link.IssueLinkTypeManager

ComponentAccessor.getOSGiComponentInstanceOfType(IssueLinkTypeManager.class).getIssueLinkTypes()
Like David Lepaux Lepaux likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events