public class Component extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
Component.FluentCreate
Used to chain fields to a create action.
|
apirev, DEFAULT_API_REV, id, restclient, self| Modifier | Constructor and Description |
|---|---|
protected |
Component(RestClient restclient,
net.sf.json.JSONObject json)
Creates a component from a JSON payload.
|
| Modifier and Type | Method and Description |
|---|---|
static Component.FluentCreate |
create(RestClient restclient,
String project)
Creates a new JIRA component.
|
void |
delete()
Deletes a component from a project.
|
static Component |
get(RestClient restclient,
String id)
Retrieves the given component record.
|
String |
getDescription() |
String |
getName() |
boolean |
isAssigneeTypeValid() |
String |
toString() |
getApiRev, getAuthUri, getBaseUri, getId, getSelf, getUrl, setApiRevprotected Component(RestClient restclient, net.sf.json.JSONObject json)
restclient - REST client instancejson - JSON payloadpublic static Component get(RestClient restclient, String id) throws JiraException
restclient - REST client instanceid - Internal JIRA ID of the componentJiraException - when the retrieval failspublic String getName()
public String getDescription()
public boolean isAssigneeTypeValid()
public static Component.FluentCreate create(RestClient restclient, String project)
restclient - REST client instanceproject - Key of the project to create the component inpublic void delete()
throws JiraException
JiraException - failed to delete the componentCopyright © 2022. All rights reserved.