com.atlassian.jira.issue.fields.rest
Interface IssueFinder

All Known Implementing Classes:
IssueFinderImpl

public interface IssueFinder

Finds an issue based on its 'id' or 'key'. For the key, it will follow moved issues, and try to match the key in a case-insensitive way

Since:
v5.0

Method Summary
 Issue findIssue(IssueRefJsonBean issueRef, ErrorCollection errorCollection)
          Finds an issue based on the passed-in id or key.
 Issue findIssue(String idOrKey, ErrorCollection errorCollection)
          Finds an issue based on the passed-in id or key.
 

Method Detail

findIssue

Issue findIssue(@Nonnull
                IssueRefJsonBean issueRef,
                @Nonnull
                ErrorCollection errorCollection)
Finds an issue based on the passed-in id or key.

Parameters:
issueRef - an IssueRefJsonBean that contains either an id or key
errorCollection - an ErrorCollection where any errors will be added
Returns:
an Issue or null

findIssue

Issue findIssue(@Nonnull
                String idOrKey,
                @Nonnull
                ErrorCollection errorCollection)
Finds an issue based on the passed-in id or key.

Parameters:
idOrKey - a string that may be an an id or key
errorCollection - an ErrorCollection where any errors will be added
Returns:
an Issue or null


Copyright © 2002-2012 Atlassian. All Rights Reserved.