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?
Use IssueLinkTypeManager.
Collection<IssueLinkType> types = ComponentAccessor.getComponentOfType(IssueLinkTypeManager.class).getIssueLinkTypes(false);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Collection<IssueLinkType> types = ComponentAccessor.getComponentOfType(IssueLinkTypeManager.class).getIssueLinkTypes(false);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.