|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IssueRestClient
The client handling issue resources.
| Nested Class Summary | |
|---|---|
static class |
IssueRestClient.Expandos
Expandos supported by getIssue(String, Iterable, ProgressMonitor) |
| Method Summary | |
|---|---|
void |
addAttachment(ProgressMonitor progressMonitor,
URI attachmentsUri,
InputStream in,
String filename)
Uploads attachments to JIRA (adding it to selected issue) |
void |
addAttachments(ProgressMonitor progressMonitor,
URI attachmentsUri,
AttachmentInput... attachments)
Uploads attachments to JIRA (adding it to selected issue) |
void |
addAttachments(ProgressMonitor progressMonitor,
URI attachmentsUri,
File... files)
Uploads attachments to JIRA (adding it to selected issue) |
void |
addComment(ProgressMonitor progressMonitor,
URI commentsUri,
Comment comment)
Adds a comment to JIRA (adding it to selected issue) |
void |
addWatcher(URI watchersUri,
String username,
ProgressMonitor progressMonitor)
Adds selected person as a watcher for selected issue. |
void |
addWorklog(URI worklogUri,
WorklogInput worklogInput,
ProgressMonitor progressMonitor)
Adds new worklog entry to issue. |
BasicIssue |
createIssue(IssueInput issue,
ProgressMonitor progressMonitor)
Creates new issue. |
InputStream |
getAttachment(ProgressMonitor pm,
URI attachmentUri)
Retrieves the content of given attachment. |
Iterable<CimProject> |
getCreateIssueMetadata(GetCreateIssueMetadataOptions options,
ProgressMonitor progressMonitor)
Retrieves CreateIssueMetadata with specified filters. |
Issue |
getIssue(String issueKey,
Iterable<IssueRestClient.Expandos> expand,
ProgressMonitor progressMonitor)
Retrieves issue with selected issue key, with specified additional expandos. |
Issue |
getIssue(String issueKey,
ProgressMonitor progressMonitor)
Retrieves issue with selected issue key. |
Iterable<Transition> |
getTransitions(Issue issue,
ProgressMonitor progressMonitor)
Retrieves complete information (if the caller has permission) about transitions available for the selected issue in its current state. |
Iterable<Transition> |
getTransitions(URI transitionsUri,
ProgressMonitor progressMonitor)
Retrieves complete information (if the caller has permission) about transitions available for the selected issue in its current state. |
Votes |
getVotes(URI votesUri,
ProgressMonitor progressMonitor)
Retrieves complete information (if the caller has permission) about voters for selected issue. |
Watchers |
getWatchers(URI watchersUri,
ProgressMonitor progressMonitor)
Retrieves complete information (if the caller has permission) about watchers for selected issue. |
void |
linkIssue(LinkIssuesInput linkIssuesInput,
ProgressMonitor progressMonitor)
Creates link between two issues and adds a comment (optional) to the source issues. |
void |
removeWatcher(URI watchersUri,
String username,
ProgressMonitor progressMonitor)
Removes selected person from the watchers list for selected issue. |
void |
transition(Issue issue,
TransitionInput transitionInput,
ProgressMonitor progressMonitor)
Performs selected transition on selected issue. |
void |
transition(URI transitionsUri,
TransitionInput transitionInput,
ProgressMonitor progressMonitor)
Performs selected transition on selected issue. |
void |
unvote(URI votesUri,
ProgressMonitor progressMonitor)
Removes your vote from the selected issue. |
void |
unwatch(URI watchersUri,
ProgressMonitor progressMonitor)
Stops watching selected issue |
void |
vote(URI votesUri,
ProgressMonitor progressMonitor)
Casts your vote on the selected issue. |
void |
watch(URI watchersUri,
ProgressMonitor progressMonitor)
Starts watching selected issue |
| Method Detail |
|---|
BasicIssue createIssue(IssueInput issue,
ProgressMonitor progressMonitor)
issue - populated with data to create new issueprogressMonitor - progress monitor
issueKey
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
Iterable<CimProject> getCreateIssueMetadata(@Nullable
GetCreateIssueMetadataOptions options,
ProgressMonitor progressMonitor)
options - optional request configuration like filters and expandos. You may use GetCreateIssueMetadataOptionsBuilder to build them. Pass null if you don't want to set any option.progressMonitor - progress monitor
CimProject describing projects, issue types and fields.
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
Issue getIssue(String issueKey,
ProgressMonitor progressMonitor)
issueKey - issue key (like TST-1, or JRA-9)progressMonitor - progress monitor
issueKey
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
Issue getIssue(String issueKey,
Iterable<IssueRestClient.Expandos> expand,
ProgressMonitor progressMonitor)
issueKey - issue key (like TST-1, or JRA-9)expand - additional expands. Currently CHANGELOG is the only supported expand that is not expanded by default.progressMonitor - progress monitor
issueKey
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
Watchers getWatchers(URI watchersUri,
ProgressMonitor progressMonitor)
watchersUri - URI of watchers resource for selected issue. Usually obtained by calling Issue.getWatchers().getSelf()progressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)Issue.getWatchers()
Votes getVotes(URI votesUri,
ProgressMonitor progressMonitor)
votesUri - URI of voters resource for selected issue. Usually obtained by calling Issue.getVotesUri()progressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)Issue.getVotesUri()
Iterable<Transition> getTransitions(URI transitionsUri,
ProgressMonitor progressMonitor)
transitionsUri - URI of transitions resource of selected issue. Usually obtained by calling Issue.getTransitionsUri()progressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
Iterable<Transition> getTransitions(Issue issue,
ProgressMonitor progressMonitor)
issue - issueprogressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
void transition(URI transitionsUri,
TransitionInput transitionInput,
ProgressMonitor progressMonitor)
transitionsUri - URI of transitions resource of selected issue. Usually obtained by calling Issue.getTransitionsUri()transitionInput - data for this transition (fields modified, the comment, etc.)progressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
void transition(Issue issue,
TransitionInput transitionInput,
ProgressMonitor progressMonitor)
issue - selected issuetransitionInput - data for this transition (fields modified, the comment, etc.)progressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
void vote(URI votesUri,
ProgressMonitor progressMonitor)
votesUri - URI of votes resource for selected issue. Usually obtained by calling Issue.getVotesUri()progressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
void unvote(URI votesUri,
ProgressMonitor progressMonitor)
votesUri - URI of votes resource for selected issue. Usually obtained by calling Issue.getVotesUri()progressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
void watch(URI watchersUri,
ProgressMonitor progressMonitor)
watchersUri - URI of watchers resource for selected issue. Usually obtained by calling Issue.getWatchers().getSelf()progressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
void unwatch(URI watchersUri,
ProgressMonitor progressMonitor)
watchersUri - URI of watchers resource for selected issue. Usually obtained by calling Issue.getWatchers().getSelf()progressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
void addWatcher(URI watchersUri,
String username,
ProgressMonitor progressMonitor)
watchersUri - URI of watchers resource for selected issue. Usually obtained by calling Issue.getWatchers().getSelf()username - user to add as a watcherprogressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
void removeWatcher(URI watchersUri,
String username,
ProgressMonitor progressMonitor)
watchersUri - URI of watchers resource for selected issue. Usually obtained by calling Issue.getWatchers().getSelf()username - user to remove from the watcher listprogressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, etc.)
void linkIssue(LinkIssuesInput linkIssuesInput,
ProgressMonitor progressMonitor)
linkIssuesInput - details for the link and the comment (optional) to be createdprogressMonitor - progress monitor
RestClientException - in case of problems (connectivity, malformed messages, invalid argument, permissions, etc.)
void addAttachment(ProgressMonitor progressMonitor,
URI attachmentsUri,
InputStream in,
String filename)
progressMonitor - progress monitorattachmentsUri - where to upload the attachment. You can get this URI by examining issue resource firstin - stream from which to read data to uploadfilename - file name to use for the uploaded attachment
void addAttachments(ProgressMonitor progressMonitor,
URI attachmentsUri,
AttachmentInput... attachments)
progressMonitor - progress monitorattachmentsUri - where to upload the attachments. You can get this URI by examining issue resource firstattachments - attachments to upload
void addAttachments(ProgressMonitor progressMonitor,
URI attachmentsUri,
File... files)
progressMonitor - progress monitorattachmentsUri - where to upload the attachments. You can get this URI by examining issue resource firstfiles - files to upload
void addComment(ProgressMonitor progressMonitor,
URI commentsUri,
Comment comment)
progressMonitor - the ProgressMonitorcommentsUri - where to add commentcomment - the Comment to add
@Beta
InputStream getAttachment(ProgressMonitor pm,
URI attachmentUri)
pm - progress monitorattachmentUri - URI for the attachment to retrieve
void addWorklog(URI worklogUri,
WorklogInput worklogInput,
ProgressMonitor progressMonitor)
progressMonitor - progress monitorworklogUri - URI for worklog in issueworklogInput - worklog input object to create
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||