com.atlassian.jira.pageobjects.pages.viewissue.link
Class IssueLinkSection

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

public class IssueLinkSection
extends Object

Represents the issue links section.

Since:
v5.0

Nested Class Summary
static class IssueLinkSection.LinkSourceType
           
 
Constructor Summary
IssueLinkSection(String issueKey)
           
 
Method Summary
 void authenticateLink(IssueLink issueLink)
          Click the "Authenticate" link for a remote issue that requires an OAuth token.
 DeleteLinkConfirmationDialog deleteLink(IssueLink issueLink)
           
 IssueLinkSection expandLinks()
           
 IssueLink getLinkByTitle(String title)
          Returns the issue link with the given title.
 List<IssueLink> getLinks()
           
 List<IssueLink> getLinks(IssueLinkSection.LinkSourceType sourceType, String relationship)
          Returns the links for the source and relationship.
 List<IssueLink> getLinksForSource(IssueLinkSection.LinkSourceType source)
          Returns the links for the source.
 List<String> getRelationships()
          Returns the relationships.
 void waitUntilLoaded()
           
 boolean warningsPresent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueLinkSection

public IssueLinkSection(String issueKey)
Method Detail

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()

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()


Copyright © 2002-2014 Atlassian. All Rights Reserved.