new AgileBoardClient(jiraClient)
Used to access Jira REST endpoints in '/rest/agile/1.0/dashboard'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
(static) setBoardProperty(opts, callbackopt) → {Promise}
Sets the value of the specified board's property. You can use this resource to store a custom data against the board identified by the id. The user who stores the data is required to have permissions to modify the board.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
Properties
|
|||||||||||||
callback |
callback |
<optional> |
- Source:
Returns:
- Type
- Promise
createBoard(name, type, filterId, location, callbackopt) → {Promise}
Creates a board
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string | Must be less than 255 characters. |
|
type |
string | Valid values: scrum, kanban |
|
filterId |
number | ID of a filter that the user has permissions to view. Note, if the user does not have the 'Create shared objects' permission and tries to create a shared board, a private board will be created instead (remember that board sharing depends on the filter sharing). |
|
location |
object | The container that the board will be located in. location must include the type property (Valid values: project, user). If choosing 'project', then a project must be specified by a projectKeyOrId property in location. If choosing 'user', the current user is chosen by default. The projectKeyOrId property should not be provided. |
|
callback |
function |
<optional> |
Called when the sprint has been created. |
- Source:
Returns:
Resolved when the sprint has been created.
- Type
- Promise
deleteBoard(opts, callbackopt) → {Promise}
Deletes the board. Admin without the view permission can still remove the board.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||
callback |
function |
<optional> |
Called when the dashboard has been retrieved |
- Source:
Returns:
Resolved when the dashboard has been retrieved
- Type
- Promise
getAllBoards(optsopt, callbackopt) → {Promise}
Get a list of all dashboards, optionally filtering them.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
The request options to send to the Jira API Properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
callback |
function |
<optional> |
Called when the dashboards have been retrieved. |
- Source:
Returns:
Resolved when the dashboards have been retrieved.
- Type
- Promise
getBoard(opts, callbackopt) → {Promise}
Get a single agile board.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||
callback |
function |
<optional> |
Called when the dashboard has been retrieved |
- Source:
Returns:
Resolved when the dashboard has been retrieved
- Type
- Promise
getConfiguration(opts, callbackopt) → {Promise}
Get configuration for a board
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
The request options to send to the Jira API Properties
|
||||||||
callback |
function |
<optional> |
Called when the board configuration has been retrieved. |
- Source:
Returns:
Resolved when the board configuration has been retrieved.
- Type
- Promise
getEpics(opts, callbackopt) → {Promise}
Returns all epics from the board, for the given board ID. This only includes epics that the user has permission to view. Note, if the user does not have permission to view the board, no epics will be returned at all.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options to send to the Jira API Properties
|
||||||||||||||||||||||
callback |
function |
<optional> |
Called when the board configuration has been retrieved. |
- Source:
Returns:
Resolved when the board configuration has been retrieved.
- Type
- Promise
getIssuesForBacklog(opts, callbackopt) → {Promise}
Get a list of all issues from the board's backlog, for the given board Id.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options to send to the Jira API Properties
|
||||||||||||||||||||||||||||||
callback |
function |
<optional> |
Called when the backlog issues have been retrieved. |
- Source:
Returns:
Resolved when the backlog issues have been retrieved.
- Type
- Promise
getIssuesForBoard(opts, callbackopt) → {Promise}
Get a list of all issues associated with an agile board
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options to send to the Jira API Properties
|
||||||||||||||||||||||||||||||
callback |
<optional> |
Called when the issues have been retrieved. |
- Source:
Returns:
Resolved when the issues have been retrieved.
- Type
- Promise
getIssuesWithoutEpic(opts, callbackopt) → {Promise}
Returns all issues that do not belong to any epic on a board, for a given board ID. This only includes issues that the user has permission to view. Issues returned from this resource include Agile fields, like sprint, closedSprints, flagged, and epic. By default, the returned issues are ordered by rank.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Properties
|
||||||||||||||||||||||||||||||||||
callback |
function |
<optional> |
Called when the board configuration has been retrieved. |
- Source:
Returns:
Resolved when the board configuration has been retrieved.
- Type
- Promise
getProjectsForBoard(opts, callback) → {Promise}
Get a list of projects associated board
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options to send to the Jira API Properties
|
|||||||||||||||||
callback |
Called when the sprints have been retrieved. |
- Source:
Returns:
Resolved when the sprints have been retrieved.
- Type
- Promise
getReportsForBoard(opts, callbackopt) → {Promise}
Get reports for associated board
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options to send to the Jira API Properties
|
|||||||
callback |
function |
<optional> |
Called when the sprints have been retrieved. |
- Source:
Returns:
Resolved when the sprints have been retrieved.
- Type
- Promise
getSprintsForBoard(opts, callback) → {Promise}
Get a list of sprints associated with an agile board
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options to send to the Jira API Properties
|
|||||||||||||||||||||
callback |
Called when the sprints have been retrieved. |
- Deprecated:
- Use board.getAllSprints
- Source:
Returns:
Resolved when the sprints have been retrieved.
- Type
- Promise