createBoard method
Creates a new board. Board name, type and filter ID is required.
name
- Must be less than 255 characters.type
- Valid values: scrum, kanbanfilterId
- 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
- The container that the board will be located in.location
must include thetype
property (Valid values: project, user). If choosing 'project', then a project must be specified by aprojectKeyOrId
property inlocation
. If choosing 'user', the current user is chosen by default. TheprojectKeyOrId
property should not be provided.
Note:
- If you want to create a new project with an associated board, use the
Jira platform REST API. For
more information, see the Create project
method. The
projectTypeKey
for software boards must be 'software' and theprojectTemplateKey
must be eithercom.pyxis.greenhopper.jira:gh-kanban-template
orcom.pyxis.greenhopper.jira:gh-scrum-template
. - You can create a filter using the Jira REST API. For more information, see the Create filter method.
- If you do not ORDER BY the Rank field for the filter of your board, you will not be able to reorder issues on the board.
Implementation
Future<Map<String, dynamic>> createBoard(
{required Map<String, dynamic> body}) async {
return await _client.send(
'post',
'rest/agile/1.0/board',
body: body,
) as Map<String, Object?>;
}