Class IssueLinkSection

java.lang.Object
com.atlassian.jira.pageobjects.pages.viewissue.link.IssueLinkSection

public class IssueLinkSection extends Object
Represents the issue links section.
Since:
v5.0
  • Constructor Details

    • IssueLinkSection

      public IssueLinkSection(String issueKey)
  • Method Details

    • waitUntilLoaded

      public void waitUntilLoaded()
    • getRelationships

      public List<String> getRelationships()
      Returns the relationships. E.g. "blocked by" or "relates to".
      Returns:
      list of relationships
    • getLinks

      public List<IssueLink> getLinks()
    • getLinkByTitle

      public IssueLink getLinkByTitle(String title)
      Returns the issue link with the given title. If there are multiple issue links with the same title, the first one is returned. If no issue link is found, null is returned.
      Parameters:
      title - the issue link title
      Returns:
      the issue link with the given title
    • getLinksForSource

      public List<IssueLink> getLinksForSource(IssueLinkSection.LinkSourceType source)
      Returns the links for the source. Returns empty list if the source could not be found.
      Parameters:
      source - source of the links
      Returns:
      links for the source
    • getLinks

      public List<IssueLink> getLinks(IssueLinkSection.LinkSourceType sourceType, String relationship)
      Returns the links for the source and relationship. Returns empty list if the source or relationship could not be found.
      Parameters:
      sourceType - source type of the links
      relationship - E.g. "blocked by"
      Returns:
      links for the source and relationship
    • deleteLink

      public DeleteLinkConfirmationDialog deleteLink(IssueLink issueLink)
    • expandLinks

      public IssueLinkSection expandLinks()
      Click the "Show more" link to expand the list of issue links.
      Returns:
      this
    • scrollIntoViewAndExpandLinks

      public IssueLinkSection scrollIntoViewAndExpandLinks()
      Click the "Show more" link to expand the list of issue links. It will scroll the show more link into view before clicking it. If the viewport is scrolled, it will not be scrolled back afterward.
      Returns:
      this
    • authenticateLink

      public void authenticateLink(IssueLink issueLink)
      Click the "Authenticate" link for a remote issue that requires an OAuth token.
      Parameters:
      issueLink - the issue link to authenticate
    • warningsPresent

      public boolean warningsPresent()