public class JiraIssueTracker extends AbstractIssueTracker
IssueTrackerService for the JIRA issue tracker.baseUrl, config, TRACKER_TYPE, URL_REGEX| Constructor and Description |
|---|
JiraIssueTracker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCommentToIssue(Collection<Issue> issues,
Comment comment)
Adds the
Comment to all of the provided Issue objects. |
boolean |
addCommentToIssue(Issue issue,
Comment comment)
Adds a new comment to the specified issue.
|
boolean |
addCommentToIssue(Map<Issue,Comment> commentMap)
Adds the
Comment to the associated Issue object for all Issue/Comment
pairs in the Map. |
Issue |
getIssue(URL url)
Retrieve an issue object associated with the given
URL. |
List<Issue> |
getIssues(Collection<URL> urls)
Retrieve all issues associated with the provided URLs.
|
org.apache.commons.logging.Log |
getLog() |
boolean |
init(IssueTrackerConfig config)
Initiate this
IssueTrackerService using the supplied IssueTrackerConfig. |
List<Issue> |
searchIssues(SearchCriteria searchCriteria)
Return all issues which match the passed
SearchCriteria. |
List<Issue> |
searchIssues(String jql,
int maxResults) |
List<Issue> |
searchIssuesByFilter(URL filterUrl)
Return all issues which match the provided filter.
|
boolean |
updateIssue(Issue issue)
Known limitations:
- Jira api does not allow an issue type to be update (WTF?)
- Jira api does not allow project to be changed
|
checkHost, filterIssuesByHost, filterIssuesByHost, filterUrlsByHost, getIssuesAssociatedWith, init, issueExistsAtHostpublic boolean init(IssueTrackerConfig config)
IssueTrackerServiceIssueTrackerService using the supplied IssueTrackerConfig.init in interface IssueTrackerServiceinit in class AbstractIssueTrackerconfig - a IssueTrackerConfig object containing all configuration information.true if the service was initialised without errors, false otherwise.public Issue getIssue(URL url) throws NotFoundException
IssueTrackerServiceURL.url - the URL of the issue to be retrieved.Issue associated with the provided URK.NotFoundException - if the provided URL is not associated with an issue.public List<Issue> getIssues(Collection<URL> urls)
IssueTrackerServiceIssueTrackerServer. If the provided URLs
collection is empty, or no issues are found, then an empty List is returned.urls - a collection of issue URLs.Issue objects associated with the provided urls.public List<Issue> searchIssues(SearchCriteria searchCriteria)
IssueTrackerServiceSearchCriteria.searchCriteria - all set fields will be search for.Issue objects which match the specified searchCriteria,
or an empty list if no issues match the searched criteria.public List<Issue> searchIssuesByFilter(URL filterUrl) throws NotFoundException
IssueTrackerServicefilterUrl - the url of the issue tracker filtered to be applied.Issue objects which are returned by the provided filter.NotFoundException - if the filterURL is not associated with any filters.public boolean updateIssue(Issue issue) throws NotFoundException, AphroditeException
issue - the issue to be updated at the IssueTrackerServiceNotFoundException - if the provided Issue cannot be found at the IssueTracker.AphroditeException - if the user credentials supplied for this issue track do not have
permission to update this issue, or a field within this issue.public boolean addCommentToIssue(Issue issue, Comment comment) throws NotFoundException
IssueTrackerServiceaddCommentToIssue in interface IssueTrackerServiceaddCommentToIssue in class AbstractIssueTrackerissue - the issue to add a new comment to.comment - the comment to be added to the issue.NotFoundException - if the provided Issue cannot be found at the IssueTracker.public boolean addCommentToIssue(Map<Issue,Comment> commentMap)
IssueTrackerServiceComment to the associated Issue object for all Issue/Comment
pairs in the Map. Null comments are ignored.commentMap - the map containing all Issues that are to be updated and the associated comments.public boolean addCommentToIssue(Collection<Issue> issues, Comment comment)
IssueTrackerServiceComment to all of the provided Issue objects.issues - a collection of all issues that the comment should be added to.comment - the comment to be added to all issues.public org.apache.commons.logging.Log getLog()
getLog in class AbstractIssueTrackerCopyright © 2016 JBoss by Red Hat. All rights reserved.