Class IssueLinksBeanBuilder

java.lang.Object
com.atlassian.jira.issue.fields.rest.json.beans.IssueLinksBeanBuilder

public class IssueLinksBeanBuilder extends Object
Builder for IssueLinkJsonBean instances.
Since:
v5.0
  • Constructor Details

  • Method Details

    • buildIssueLinks

      public List<IssueLinkJsonBean> buildIssueLinks()
      Build a List of IssueLinkJsonBean objects representing the issue links for the current Issue object.
      Returns:
      a List of IssueLinkJsonBean objects, or null if issue linking is disabled, or an empty List if no issue links exist
    • buildLink

      public IssueLinkJsonBean buildLink(IssueLinkType issueLinkType, Issue issue, boolean isOutbound, String id)
      Builds an IssueLinkJsonBean from an IssueLink.
      Parameters:
      issueLinkType - an IssueLinkType instance
      issue - an Issue that is linked to this.issue
      isOutbound - a boolean indicating whether it's an outbound link
      id - issue link id
      Returns:
      an IssueLinkJsonBean
    • buildParentLink

      public IssueRefJsonBean buildParentLink()
      Build an IssueLinkJsonBean object representing the parent link for the current Issue object.
      Returns:
      an IssueLinkJsonBean object, or null if no parent link exists
    • buildSubtaskLinks

      public List<IssueRefJsonBean> buildSubtaskLinks()
      Build a List of IssueLinkJsonBean objects representing the sub-task links for the current Issue object.
      Returns:
      a List of IssueLinkJsonBean objects, or an empty List if no sub-task links exist
    • buildSubtaskLinks

      public List<IssueRefJsonBean> buildSubtaskLinks(Collection<Issue> subtasks)
      Build a List of IssueLinkJsonBean objects representing the sub-task links for the given collection of subtasks.
      Parameters:
      subtasks - the collection of subtasks to build links for
      Returns:
      a List of IssueLinkJsonBean objects, or an empty List if no sub-task links exist