|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.jnt.IssueEditor
public final class IssueEditor
Object for making updates to an issue.
The procedure to update an issue will be as follows:
// first obtain the JNIssue
for the issue you'd like to update
JNIssue issue = ...;
// then begin an edit session
IssueEditor e = issue.beginEdit();
// call methods on IssueEditor to update as many fields as you need
...
// then finally commit the change
e.update(comment);
The class follows the fluent API pattern so that you can write multiple changes in a concise fashion.
Method Summary | |
---|---|
IssueEditor |
accept()
Accepts an issue |
IssueEditor |
appendToWhiteBoard(String words)
Append new words to the status whiteboard |
IssueEditor |
close()
Marks the issue as closed. |
void |
commit(String comment)
Commits the change. |
IssueEditor |
duplicateOf(JNIssue issue)
Marks this issue as a duplicate of another issue. |
IssueEditor |
reopen()
Reopens an issue |
IssueEditor |
resolve(IssueResolution resolution)
Marks the issue as resolved, with the specified resolution. |
IssueEditor |
setPriority(Priority p)
Sets the priority. |
IssueEditor |
setType(IssueType type)
Sets the issue type. |
IssueEditor |
verify()
Marks the issue as verified. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public IssueEditor resolve(IssueResolution resolution)
public IssueEditor accept()
public IssueEditor reopen()
public IssueEditor verify()
public IssueEditor close()
public IssueEditor duplicateOf(JNIssue issue)
public IssueEditor setPriority(Priority p)
public IssueEditor setType(IssueType type)
public IssueEditor appendToWhiteBoard(String words)
public void commit(String comment) throws ProcessingException
comment
- Description of this update. This is a mandatory field.
ProcessingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |