Jira.js - Jira Cloud API library
    Preparing search index...

    Class Board

    Index

    Constructors

    Methods

    • Creates a new board. Board name, type and filter ID is required.

      • name - Must be less than 255 characters.
      • type - Valid values: scrum, kanban
      • filterId - 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 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.

      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 the projectTemplateKey must be either com.pyxis.greenhopper.jira:gh-kanban-template or com.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.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Creates a new board. Board name, type and filter ID is required.

      • name - Must be less than 255 characters.
      • type - Valid values: scrum, kanban
      • filterId - 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 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.

      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 the projectTemplateKey must be either com.pyxis.greenhopper.jira:gh-kanban-template or com.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.

      Type Parameters

      Parameters

      Returns Promise<T>

    • Deletes the board. Admin without the view permission can still remove the board.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<void>

    • Deletes the board. Admin without the view permission can still remove the board.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<T>

    • Removes the property from the board identified by the id. Ths user removing the property is required to have permissions to modify the board.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<void>

    • Removes the property from the board identified by the id. Ths user removing the property is required to have permissions to modify the board.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<T>

    • Returns all versions from a board, for a given board ID. This only includes versions that the user has permission to view. Note, if the user does not have permission to view the board, no versions will be returned at all. Returned versions are ordered by the name of the project from which they belong and then by sequence defined by user.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Returns all versions from a board, for a given board ID. This only includes versions that the user has permission to view. Note, if the user does not have permission to view the board, no versions will be returned at all. Returned versions are ordered by the name of the project from which they belong and then by sequence defined by user.

      Type Parameters

      Parameters

      Returns Promise<T>

    • Returns all issues that belong to an epic on the board, for the given epic ID and the 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.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Returns all issues that belong to an epic on the board, for the given epic ID and the 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.

      Type Parameters

      Parameters

      Returns Promise<T>

    • Get all issues you have access to that belong to the sprint from the board. Issue returned from this resource contains additional fields like: sprint, closedSprints, flagged and epic. Issues are returned ordered by rank. JQL order has higher priority than default rank.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<void>

    • Get all issues you have access to that belong to the sprint from the board. Issue returned from this resource contains additional fields like: sprint, closedSprints, flagged and epic. Issues are returned ordered by rank. JQL order has higher priority than default rank.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<T>

    • Returns the value of the property with a given key from the board identified by the provided id. The user who retrieves the property is required to have permissions to view the board.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<void>

    • Returns the value of the property with a given key from the board identified by the provided id. The user who retrieves the property is required to have permissions to view the board.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<T>

    • Returns the keys of all properties for the board identified by the id. The user who retrieves the property keys is required to have permissions to view the board.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<void>

    • Returns the keys of all properties for the board identified by the id. The user who retrieves the property keys is required to have permissions to view the board.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<T>

    • Get the board configuration. The response contains the following fields:

      • id - ID of the board.
      • name - Name of the board.
      • filter - Reference to the filter used by the given board.
      • location - Reference to the container that the board is located in. Includes the container type (Valid values: project, user).
      • subQuery (Kanban only) - JQL subquery used by the given board.
      • columnConfig - The column configuration lists the columns for the board, in the order defined in the column configuration. For each column, it shows the issue status mapping as well as the constraint type (Valid values: none, issueCount, issueCountExclSubs) for the min/max number of issues. Note, the last column with statuses mapped to it is treated as the "Done" column, which means that issues in that column will be marked as already completed.
      • estimation (Scrum only) - Contains information about type of estimation used for the board. Valid values: none, issueCount, field. If the estimation type is "field", the ID and display name of the field used for estimation is also returned. Note, estimates for an issue can be updated by a PUT /rest/api/3/issue/{issueIdOrKey} request, however the fields must be on the screen. "timeoriginalestimate" field will never be on the screen, so in order to update it "originalEstimate" in "timetracking" field should be updated.
      • ranking - Contains information about custom field used for ranking in the given board.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Get the board configuration. The response contains the following fields:

      • id - ID of the board.
      • name - Name of the board.
      • filter - Reference to the filter used by the given board.
      • location - Reference to the container that the board is located in. Includes the container type (Valid values: project, user).
      • subQuery (Kanban only) - JQL subquery used by the given board.
      • columnConfig - The column configuration lists the columns for the board, in the order defined in the column configuration. For each column, it shows the issue status mapping as well as the constraint type (Valid values: none, issueCount, issueCountExclSubs) for the min/max number of issues. Note, the last column with statuses mapped to it is treated as the "Done" column, which means that issues in that column will be marked as already completed.
      • estimation (Scrum only) - Contains information about type of estimation used for the board. Valid values: none, issueCount, field. If the estimation type is "field", the ID and display name of the field used for estimation is also returned. Note, estimates for an issue can be updated by a PUT /rest/api/3/issue/{issueIdOrKey} request, however the fields must be on the screen. "timeoriginalestimate" field will never be on the screen, so in order to update it "originalEstimate" in "timetracking" field should be updated.
      • ranking - Contains information about custom field used for ranking in the given board.

      Type Parameters

      Parameters

      Returns Promise<T>

    • Returns all issues from the board's backlog, for the given board ID. This only includes issues that the user has permission to view. The backlog contains incomplete issues that are not assigned to any future or active sprint. Note, if the user does not have permission to view the board, no issues will be returned at all. Issues returned from this resource include Agile fields, like sprint, closedSprints, flagged, and epic. By default, the returned issues are ordered by rank.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Returns all issues from the board's backlog, for the given board ID. This only includes issues that the user has permission to view. The backlog contains incomplete issues that are not assigned to any future or active sprint. Note, if the user does not have permission to view the board, no issues will be returned at all. Issues returned from this resource include Agile fields, like sprint, closedSprints, flagged, and epic. By default, the returned issues are ordered by rank.

      Type Parameters

      Parameters

      Returns Promise<T>

    • Returns all issues from a board, for a given board ID. This only includes issues that the user has permission to view. An issue belongs to the board if its status is mapped to the board's column. Epic issues do not belongs to the scrum boards. Note, if the user does not have permission to view the board, no issues will be returned at all. Issues returned from this resource include Agile fields, like sprint, closedSprints, flagged, and epic. By default, the returned issues are ordered by rank.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Returns all issues from a board, for a given board ID. This only includes issues that the user has permission to view. An issue belongs to the board if its status is mapped to the board's column. Epic issues do not belongs to the scrum boards. Note, if the user does not have permission to view the board, no issues will be returned at all. Issues returned from this resource include Agile fields, like sprint, closedSprints, flagged, and epic. By default, the returned issues are ordered by rank.

      Type Parameters

      Parameters

      Returns Promise<T>

    • Returns all projects that are associated with the board, for the given board ID. If the user does not have permission to view the board, no projects will be returned at all. Returned projects are ordered by the name.

      A project is associated with a board if the board filter contains reference the project or there is an issue from the project that belongs to the board.

      The board filter contains reference the project only if JQL query guarantees that returned issues will be returned from the project set defined in JQL. For instance the query project in (ABC, BCD) AND reporter = admin have reference to ABC and BCD projects but query project in (ABC, BCD) OR reporter = admin doesn't have reference to any project.

      An issue belongs to the board if its status is mapped to the board's column. Epic issues do not belongs to the scrum boards.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Returns all projects that are associated with the board, for the given board ID. If the user does not have permission to view the board, no projects will be returned at all. Returned projects are ordered by the name.

      A project is associated with a board if the board filter contains reference the project or there is an issue from the project that belongs to the board.

      The board filter contains reference the project only if JQL query guarantees that returned issues will be returned from the project set defined in JQL. For instance the query project in (ABC, BCD) AND reporter = admin have reference to ABC and BCD projects but query project in (ABC, BCD) OR reporter = admin doesn't have reference to any project.

      An issue belongs to the board if its status is mapped to the board's column. Epic issues do not belongs to the scrum boards.

      Type Parameters

      Parameters

      Returns Promise<T>

    • Returns all projects that are statically associated with the board, for the given board ID. Returned projects are ordered by the name.

      A project is associated with a board if the board filter contains reference the project.

      The board filter contains reference the project only if JQL query guarantees that returned issues will be returned from the project set defined in JQL. For instance the query project in (ABC, BCD) AND reporter = admin have reference to ABC and BCD projects but query project in (ABC, BCD) OR reporter = admin doesn't have reference to any project.

      Type Parameters

      Parameters

      Returns Promise<void>

    • Returns all projects that are statically associated with the board, for the given board ID. Returned projects are ordered by the name.

      A project is associated with a board if the board filter contains reference the project.

      The board filter contains reference the project only if JQL query guarantees that returned issues will be returned from the project set defined in JQL. For instance the query project in (ABC, BCD) AND reporter = admin have reference to ABC and BCD projects but query project in (ABC, BCD) OR reporter = admin doesn't have reference to any project.

      Type Parameters

      Parameters

      Returns Promise<T>

    • Move issues from the backlog to the board (if they are already in the backlog of that board).
      This operation either moves an issue(s) onto a board from the backlog (by adding it to the issueList for the board) Or transitions the issue(s) to the first column for a kanban board with backlog. At most 50 issues may be moved at once.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<void>

    • Move issues from the backlog to the board (if they are already in the backlog of that board).
      This operation either moves an issue(s) onto a board from the backlog (by adding it to the issueList for the board) Or transitions the issue(s) to the first column for a kanban board with backlog. At most 50 issues may be moved at once.

      Type Parameters

      • T = void

      Parameters

      Returns Promise<T>

    • 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.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<void>

    • 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.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<T>