public class RESTClient extends Object
Constructor and Description |
---|
RESTClient(String baseAPIUrl,
String userName,
String password,
PrintStream logger) |
Modifier and Type | Method and Description |
---|---|
void |
addIssueComment(IssueSummary issue,
String realComment)
Add a comment to an issue.
|
IssueSummaryList |
findIssuesByJQL(String jql)
Get back a minimal list of the issues we are interested in, as determined
by the given JQL.
|
void |
updateIssueField(IssueSummary issue,
String customFieldId,
String realFieldValue)
Update the status of the given field to the given value.
|
void |
updateIssueStatus(IssueSummary issue,
String realWorkflowActionName)
Update the status of a given issue.
|
public RESTClient(String baseAPIUrl, String userName, String password, PrintStream logger) throws UnsupportedEncodingException
UnsupportedEncodingException
public IssueSummaryList findIssuesByJQL(String jql)
jql
- public void updateIssueStatus(IssueSummary issue, String realWorkflowActionName)
issue
- The issue we want to updaterealWorkflowActionName
- The target statuspublic void addIssueComment(IssueSummary issue, String realComment)
issue
- The issue to updaterealComment
- The comment text to addpublic void updateIssueField(IssueSummary issue, String customFieldId, String realFieldValue)
issue
- customFieldId
- The field we are trying to changerealFieldValue
- The new valueCopyright © 2004–2015. All rights reserved.