Constructor
new ComponentClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/component'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
createComponent(opts, callback)
Create a component via POST.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API Properties
|
|||||||
callback |
Called when the component has been created. |
- Source:
deleteComponent(opts, callback)
Delete a project component.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The options sent to the Jira API Properties
|
|||||||||||||
callback |
Called when the component has been deleted. |
- Source:
editComponent(opts, callback)
Modify a component via PUT. Any fields present in the PUT will override existing values. As a convenience, if a field is not present, it is silently ignored. If leadUserName is an empty string ("") the component lead will be removed.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||||
callback |
Called when the component has beed edited. |
- Source:
getComponent(opts, callback)
Get a project component.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The options sent to the Jira API Properties
|
|||||||
callback |
Called when the component has been retrieved. |
- Source:
getRelatedIssueCounts(opts, callback)
Get counts of issues related to this component.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The options sent to the Jira API Properties
|
|||||||
callback |
Called when the count has been retrieved. |
- Source: