public class IssueUpdateBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
SUPPORTED_TYPES
Currently supported types for serialization.
|
| Constructor and Description |
|---|
IssueUpdateBuilder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAffectedVersion(String versionName)
Adds the given version to the list of affected versions.
|
void |
addComment(String body)
Adds the given comment.
|
void |
addFieldValue(String fieldName,
String fieldType,
String value)
Generic way of adding a value to an array field.
|
com.google.gson.JsonElement |
getRequestData()
Returns the data to send with the put - request for updating an issue.
|
void |
removeAffectedVersion(String versionName)
Removes the given version from the list of affected versions.
|
void |
removeFieldValue(String fieldName,
String fieldType,
String value)
Generic way of removing a value from an array field.
|
void |
setArrayField(String fieldName,
String fieldType,
String... values)
Generic way of setting (replacing) array fields.
|
void |
setFieldValue(String fieldName,
String fieldType,
String value)
Generic way of setting single-valued field values.
|
public com.google.gson.JsonElement getRequestData()
public void addAffectedVersion(String versionName)
versionName - the name of the version to add.public void addComment(String body)
body - the body of the comment to add.public void setFieldValue(String fieldName, String fieldType, String value)
SUPPORTED_TYPES for the supported field types.fieldName - the name of the fieldfieldType - the type of the fieldvalue - the value to setpublic void setArrayField(String fieldName, String fieldType, String... values)
SUPPORTED_TYPES for the supported element types.fieldName - the name of the fieldfieldType - the type of the fields elementsvalues - the values to setpublic void addFieldValue(String fieldName, String fieldType, String value)
SUPPORTED_TYPES for the supported element types.fieldName - the name of the fieldfieldType - the type of the fields elementsvalue - the value to addpublic void removeFieldValue(String fieldName, String fieldType, String value)
SUPPORTED_TYPES for the supported element types.fieldName - the name of the fieldfieldType - the type of the fields elementsvalue - the value to addpublic void removeAffectedVersion(String versionName)
versionName - the name of the version to remove.Copyright © 2004-2018. All Rights Reserved.