Constructor
new ScreensClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/screens'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
addFieldToDefaultTab(opts, callback)
Adds field or custom field to the default tab
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
||||||
callback |
Called when the tab has been moved. |
- Source:
addFieldToTab(opts, callback)
Adds field to the given tab
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||||||||
callback |
Called when the fields have been added to the tab. |
- Source:
createTab(opts, callback)
Creates tab for given screen
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to Jira Properties
|
|||||||||
callback |
Called when the tab has been created. |
- Source:
deleteTab(opts, callback)
Deletes the given tab from the given screen.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the jira API Properties
|
|||||||||
callback |
- Source:
getAvailableFields(opts, callback)
Gets available fields for screen. i.e ones that haven't already been added.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to Jira Properties
|
||||||
callback |
Called when the available fields have been retrieved |
- Source:
getFieldsInTab(opts, callback)
Gets all fields for a given tab.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
|||||||||
callback |
Called when the fields have been retrieved. |
- Source:
getTabs(opts, callback)
Returns a list of all tabs for the given screen.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to Jira Properties
|
||||||
callback |
Called when the tabs have been retrieved. |
- Source:
moveFieldOnTab(opts, callback)
Move the given field on the given tab
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
|||||||||||||||
callback |
Called when the field has been removed. |
- Source:
moveTabPosition(opts, callback)
Moves tab position
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
||||||||||||
callback |
Called when the tab has been moved. |
- Source:
removeFieldFromTab(opts, callback)
Remove the given field from the given tab.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||||||||
callback |
Called when the field has been removed. |
- Source:
renameTab(opts, callback)
Renames the given tab on the given screen.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the jira API Properties
|
||||||||||||
callback |
- Source: