Package com.atlassian.jira.issue.link
Interface LinkCollection
- All Known Implementing Classes:
LinkCollectionImpl
@PublicApi
public interface LinkCollection
This class represents the collection of links in to and out of a particular issue.
Sort order is determined by the application property "jira.view.issue.links.sort.order"
-
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of issues that contains both inward and outward linking issues.getInwardIssues(String linkName) Looks up and returns a "sort.order" sorted list of all inward linked issues by given link name.Returns a set of link types,IssueLinkTypeobjects.getOutwardIssues(String linkName) Looks up and returns a "sort.order" sorted list of all outward linked issues by given link name.booleanDeprecated.No longer relevant because of introduction of Remote Issue Links.
-
Method Details
-
getLinkTypes
Set<IssueLinkType> getLinkTypes()Returns a set of link types,IssueLinkTypeobjects.- Returns:
- a set of
IssueLinkTypeobjects
-
getOutwardIssues
Looks up and returns a "sort.order" sorted list of all outward linked issues by given link name. May return null.- Parameters:
linkName- link name to lookup issues by- Returns:
- a sorted list of browsable outward linked issues or null (sorry)
-
getInwardIssues
Looks up and returns a "sort.order" sorted list of all inward linked issues by given link name. May return null.- Parameters:
linkName- link name to lookup issues by- Returns:
- a sorted list of browsable inward linked issues
-
getAllIssues
Collection<Issue> getAllIssues()Returns a collection of issues that contains both inward and outward linking issues. The returned collection is sorted by "sort.order" and does not contain duplicates.- Returns:
- a collection of all linked issues
-
isDisplayLinkPanel
boolean isDisplayLinkPanel()Deprecated.No longer relevant because of introduction of Remote Issue Links. Since v5.0.Determine whether there are links visible to this user - do not display link panel if not- Returns:
- true if there are any outward or inward links, false otherwise
-