The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Get a List of configured IssueLinkTypes

Florian Marquardt
Contributor
February 10, 2014

Hi,

I need to get a List of all IssueLinkTypes that are configured in the current JIRA instance.

IssueLinkManager lm = ComponentAccessor.getIssueLinkManager();
LinkCollection lc = lm.getLinkCollection(issue, user);
lc.getLinkTypes();

Using the getLinkTypes() method I am only able to access a list of LinkTypes which occour in the current issue. However for configuration purposes I need a list of all possible LinkTypes in the current JIRA-Instance.

How would get this?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Jobin Kuruvilla [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 Champions.
February 10, 2014
Bhushan Nagaraj
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 Champions.
February 10, 2014

Collection<IssueLinkType> types = ComponentAccessor.getComponentOfType(IssueLinkTypeManager.class).getIssueLinkTypes(false);

0 votes
Bhushan Nagaraj
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 Champions.
February 10, 2014

Collection<IssueLinkType> types = ComponentAccessor.getComponentOfType(IssueLinkTypeManager.class).getIssueLinkTypes(false);

TAGS
AUG Leaders

Atlassian Community Events