/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { GetIssueRequest, GetIssueResponseOK } from "./types/issue"; import { RankIssuesRequest, RankIssuesResponseOK } from "./types/issue"; import { GetIssueEstimationRequest, GetIssueEstimationResponseOK } from "./types/issue"; import { UpdateIssueEstimationRequest, UpdateIssueEstimationResponseOK } from "./types/issue"; import { MoveIssuesToBacklogRequest, MoveIssuesToBacklogResponseOK } from "./types/backlog"; import { MoveIssuesToBacklogForBoardRequest, MoveIssuesToBacklogForBoardResponseOK } from "./types/backlog"; import { GetAllBoardsRequest, GetAllBoardsResponseOK } from "./types/board"; import { CreateBoardRequest, CreateBoardResponseOK } from "./types/board"; import { GetBoardByFilterIdRequest, GetBoardByFilterIdResponseOK } from "./types/board"; import { GetBoardRequest, GetBoardResponseOK } from "./types/board"; import { DeleteBoardRequest, DeleteBoardResponseOK } from "./types/board"; import { GetIssuesForBacklogRequest, GetIssuesForBacklogResponseOK } from "./types/board"; import { GetBoardConfigurationRequest, GetBoardConfigurationResponseOK } from "./types/board"; import { GetBoardEpicRequest, GetBoardEpicResponseOK } from "./types/board"; import { GetIssuesWithoutEpicForBoardRequest, GetIssuesWithoutEpicForBoardResponseOK } from "./types/board"; import { GetBoardIssuesForEpicRequest, GetBoardIssuesForEpicResponseOK } from "./types/board"; import { GetIssuesForBoardRequest, GetIssuesForBoardResponseOK } from "./types/board"; import { MoveIssuesToBoardRequest, MoveIssuesToBoardResponseOK } from "./types/board"; import { GetBoardProjectsRequest, GetBoardProjectsResponseOK } from "./types/board"; import { GetBoardFullProjectsRequest, GetBoardFullProjectsResponseOK } from "./types/board"; import { GetAllSprintsRequest, GetAllSprintsResponseOK } from "./types/board"; import { GetBoardIssuesForSprintRequest, GetBoardIssuesForSprintResponseOK } from "./types/board"; import { GetIssuesWithoutEpicRequest, GetIssuesWithoutEpicResponseOK } from "./types/epic"; import { RemoveIssuesFromEpicRequest, RemoveIssuesFromEpicResponseOK } from "./types/epic"; import { GetEpicRequest, GetEpicResponseOK } from "./types/epic"; import { UpdateEpicRequest, UpdateEpicResponseOK } from "./types/epic"; import { GetIssuesForEpicRequest, GetIssuesForEpicResponseOK } from "./types/epic"; import { MoveIssuesToEpicRequest, MoveIssuesToEpicResponseOK } from "./types/epic"; import { RankEpicsRequest, RankEpicsResponseOK } from "./types/epic"; import { CreateSprintRequest, CreateSprintResponseOK } from "./types/sprint"; import { GetSprintRequest, GetSprintResponseOK } from "./types/sprint"; import { UpdateSprintRequest, UpdateSprintResponseOK } from "./types/sprint"; import { PartialUpdateSprintRequest, PartialUpdateSprintResponseOK } from "./types/sprint"; import { DeleteSprintRequest, DeleteSprintResponseOK } from "./types/sprint"; import { GetIssuesForSprintRequest, GetIssuesForSprintResponseOK } from "./types/sprint"; import { MoveIssuesToSprintAndRankRequest, MoveIssuesToSprintAndRankResponseOK } from "./types/sprint"; import { SwapSprintRequest, SwapSprintResponseOK } from "./types/sprint"; import { BaseApiCore, Headers, Response, ErrorStrategyOptionType, PlatformImplementation } from "@managed-api/commons-core"; import { CommonError, AdditionalErrorTypes, ErrorStrategyHandlers, ErrorStrategyOption } from "./errorStrategy"; import { ErrorStrategyBuilder } from "./builders/errorStrategy"; export interface JiraSoftwareCloudApiCoreOptions extends ErrorStrategyOption { } declare type GetGlobalErrorStrategy = () => ErrorStrategyOptionType | undefined; export declare abstract class JiraSoftwareCloudApiCore extends BaseApiCore { private options?; Issue: IssueGroup; Backlog: BacklogGroup; Board: BoardGroup; Epic: EpicGroup; Sprint: SprintGroup; All: AllGroup; constructor(options?: JiraSoftwareCloudApiCoreOptions | undefined); setGlobalErrorStrategy(errorStrategy: ErrorStrategyOptionType): void; protected buildResponse(url: string, status: number, statusText: string, headers: Headers, body?: string | ArrayBuffer): Response; private getGlobalErrorStrategy; } declare class AllGroup { private Issue; private Backlog; private Board; private Epic; private Sprint; constructor(Issue: IssueGroup, Backlog: BacklogGroup, Board: BoardGroup, Epic: EpicGroup, Sprint: SprintGroup); /** * Returns a single issue, for a given issue ID or issue key. Issues returned from this resource include Agile fields, like sprint, closedSprints, flagged, and epic. * Alternative usage: Issue.getIssue * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-issue/#api-rest-agile-1-0-issue-issueidorkey-get * @param options Request options. */ getIssue(options: GetIssueRequest): Promise; /** * Moves (ranks) issues before or after a given issue. At most 50 issues may be ranked at once. This operation may fail for some issues, although this will be rare. In that case the 207 status code is returned for the whole response and detailed information regarding each issue is available in the response body. If rankCustomFieldId is not defined, the default rank field will be used. Either 'rankBeforeIssue' or 'rankAfterIssue' must be specified for this operation. * Alternative usage: Issue.rankIssues * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-issue/#api-rest-agile-1-0-issue-rank-put * @param options Request options. */ rankIssues(options: RankIssuesRequest): Promise; /** * Returns the estimation of the issue and a fieldId of the field that is used for it. `boardId` param is required. This param determines which field will be updated on a issue. Original time internally stores and returns the estimation as a number of seconds. The field used for estimation on the given board can be obtained from [board configuration resource](#agile/1.0/board-getConfiguration). More information about the field are returned by [edit meta resource](#api-rest-api-3-issue-getEditIssueMeta) or [field resource](#api-rest-api-3-field-get). * Alternative usage: Issue.getIssueEstimation * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-issue/#api-rest-agile-1-0-issue-issueidorkey-estimation-get * @param options Request options. */ getIssueEstimation(options: GetIssueEstimationRequest): Promise; /** * Updates the estimation of the issue. boardId param is required. This param determines which field will be updated on a issue. Note that this resource changes the estimation field of the issue regardless of appearance the field on the screen. Original time tracking estimation field accepts estimation in formats like "1w", "2d", "3h", "20m" or number which represent number of minutes. However, internally the field stores and returns the estimation as a number of seconds. The field used for estimation on the given board can be obtained from [board configuration resource](#agile/1.0/board-getConfiguration). More information about the field are returned by [edit meta resource](#api-rest-api-3-issue-issueIdOrKey-editmeta-get) or [field resource](#api-rest-api-3-field-get). * Alternative usage: Issue.updateIssueEstimation * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-issue/#api-rest-agile-1-0-issue-issueidorkey-estimation-put * @param options Request options. */ updateIssueEstimation(options: UpdateIssueEstimationRequest): Promise; /** * Move issues to the backlog. This operation is equivalent to remove future and active sprints from a given set of issues. At most 50 issues may be moved at once. * Alternative usage: Backlog.moveIssuesToBacklog * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-backlog/#api-rest-agile-1-0-backlog-issue-post * @param options Request options. */ moveIssuesToBacklog(options: MoveIssuesToBacklogRequest): Promise; /** * Move issues to the backlog of a particular board (if they are already on that board). This operation is equivalent to remove future and active sprints from a given set of issues if the board has sprints If the board does not have sprints this will put the issues back into the backlog from the board. At most 50 issues may be moved at once. * Alternative usage: Backlog.moveIssuesToBacklogForBoard * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-backlog/#api-rest-agile-1-0-backlog-boardid-issue-post * @param options Request options. */ moveIssuesToBacklogForBoard(options: MoveIssuesToBacklogForBoardRequest): Promise; /** * Returns all boards. This only includes boards that the user has permission to view. **Deprecation notice:** The required OAuth 2.0 scopes will be updated on February 15, 2024. * `read:board-scope:jira-software`, `read:project:jira` * Alternative usage: Board.getAllBoards * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-get * @param options Request options. */ getAllBoards(options?: GetAllBoardsRequest): Promise; /** * 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. * Alternative usage: Board.createBoard * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-post * @param options Request options. */ createBoard(options: CreateBoardRequest): Promise; /** * Returns any boards which use the provided filter id. This method can be executed by users without a valid software license in order to find which boards are using a particular filter. * Alternative usage: Board.getBoardByFilterId * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-filter-filterid-get * @param options Request options. */ getBoardByFilterId(options: GetBoardByFilterIdRequest): Promise; /** * Returns the board for the given board ID. This board will only be returned if the user has permission to view it. Admins without the view permission will see the board as a private one, so will see only a subset of the board's data (board location for instance). * Alternative usage: Board.getBoard * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-get * @param options Request options. */ getBoard(options: GetBoardRequest): Promise; /** * Deletes the board. Admin without the view permission can still remove the board. * Alternative usage: Board.deleteBoard * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-delete * @param options Request options. */ deleteBoard(options: DeleteBoardRequest): Promise; /** * 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. * Alternative usage: Board.getIssuesForBacklog * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-backlog-get * @param options Request options. */ getIssuesForBacklog(options: GetIssuesForBacklogRequest): Promise; /** * 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. * Alternative usage: Board.getBoardConfiguration * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-configuration-get * @param options Request options. */ getBoardConfiguration(options: GetBoardConfigurationRequest): 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. * Alternative usage: Board.getEpic * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-epic-get * @param options Request options. */ getBoardEpic(options: GetBoardEpicRequest): 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. * Alternative usage: Board.getIssuesWithoutEpic * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-epic-none-issue-get * @param options Request options. */ getIssuesWithoutEpicForBoard(options: GetIssuesWithoutEpicForBoardRequest): Promise; /** * 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. * Alternative usage: Board.getBoardIssuesForEpic * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-epic-epicid-issue-get * @param options Request options. */ getBoardIssuesForEpic(options: GetBoardIssuesForEpicRequest): Promise; /** * 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. * Alternative usage: Board.getIssuesForBoard * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-issue-get * @param options Request options. */ getIssuesForBoard(options: GetIssuesForBoardRequest): Promise; /** * Move issues from the backog 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. * Alternative usage: Board.moveIssuesToBoard * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-issue-post * @param options Request options. */ moveIssuesToBoard(options: MoveIssuesToBoardRequest): Promise; /** * 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. * Alternative usage: Board.getProjects * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-project-get * @param options Request options. */ getBoardProjects(options: GetBoardProjectsRequest): Promise; /** * Returns all projects that are statically associated with the board, for the given board ID. Returned projects are ordered by the name. * Alternative usage: Board.getFullProjects * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-project-full-get * @param options Request options. */ getBoardFullProjects(options: GetBoardFullProjectsRequest): Promise; /** * Returns all sprints from a board, for a given board ID. This only includes sprints that the user has permission to view. * Alternative usage: Board.getAllSprints * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-sprint-get * @param options Request options. */ getAllSprints(options: GetAllSprintsRequest): Promise; /** * 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. * Alternative usage: Board.getIssuesForSprint * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-sprint-sprintid-issue-get * @param options Request options. */ getBoardIssuesForSprint(options: GetBoardIssuesForSprintRequest): Promise; /** * Returns all issues that do not belong to any epic. 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. * Alternative usage: Epic.getIssuesWithoutEpic * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-none-issue-get * @param options Request options. */ getIssuesWithoutEpic(options?: GetIssuesWithoutEpicRequest): Promise; /** * Removes issues from epics. The user needs to have the edit issue permission for all issue they want to remove from epics. The maximum number of issues that can be moved in one operation is 50. * Alternative usage: Epic.removeIssuesFromEpic * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-none-issue-post * @param options Request options. */ removeIssuesFromEpic(options: RemoveIssuesFromEpicRequest): Promise; /** * Returns the epic for a given epic ID. This epic will only be returned if the user has permission to view it. * Alternative usage: Epic.getEpic * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-get * @param options Request options. */ getEpic(options: GetEpicRequest): Promise; /** * Performs a partial update of the epic. A partial update means that fields not present in the request JSON will not be updated. Valid values for color are `color_1` to `color_14`. * Alternative usage: Epic.updateEpic * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-post * @param options Request options. */ updateEpic(options: UpdateEpicRequest): Promise; /** * Returns all issues that belong to the epic, for the given epic 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. **Note:** If you are querying a next-gen project, do not use this operation. Instead, search for issues that belong to an epic by using the [Search for issues using JQL](https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-search-get) operation in the Jira platform REST API. Build your JQL query using the `parent` clause. For more information on the `parent` JQL field, see [Advanced searching](https://confluence.atlassian.com/x/dAiiLQ#Advancedsearching-fieldsreference-Parent). * Alternative usage: Epic.getIssuesForEpic * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-issue-get * @param options Request options. */ getIssuesForEpic(options: GetIssuesForEpicRequest): Promise; /** * Moves issues to an epic, for a given epic id. Issues can be only in a single epic at the same time. That means that already assigned issues to an epic, will not be assigned to the previous epic anymore. The user needs to have the edit issue permission for all issue they want to move and to the epic. The maximum number of issues that can be moved in one operation is 50. **Note:** This operation does not work for epics in next-gen projects. * Alternative usage: Epic.moveIssuesToEpic * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-issue-post * @param options Request options. */ moveIssuesToEpic(options: MoveIssuesToEpicRequest): Promise; /** * Moves (ranks) an epic before or after a given epic. If rankCustomFieldId is not defined, the default rank field will be used. **Note:** This operation does not work for epics in next-gen projects. * Alternative usage: Epic.rankEpics * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-rank-put * @param options Request options. */ rankEpics(options: RankEpicsRequest): Promise; /** * Creates a future sprint. Sprint name and origin board id are required. Start date, end date, and goal are optional. Note that the sprint name is trimmed. Also, when starting sprints from the UI, the "endDate" set through this call is ignored and instead the last sprint's duration is used to fill the form. * Alternative usage: Sprint.createSprint * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-post * @param options Request options. */ createSprint(options: CreateSprintRequest): Promise; /** * Returns the sprint for a given sprint ID. The sprint will only be returned if the user can view the board that the sprint was created on, or view at least one of the issues in the sprint. * Alternative usage: Sprint.getSprint * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-get * @param options Request options. */ getSprint(options: GetSprintRequest): Promise; /** * Performs a full update of a sprint. A full update means that the result will be exactly the same as the request body. Any fields not present in the request JSON will be set to null. Notes: * For closed sprints, only the name and goal can be updated; changes to other fields will be ignored. * A sprint can be started by updating the state to 'active'. This requires the sprint to be in the 'future' state and have a startDate and endDate set. * A sprint can be completed by updating the state to 'closed'. This action requires the sprint to be in the 'active' state. This sets the completeDate to the time of the request. * Other changes to state are not allowed. * The completeDate field cannot be updated manually. * Alternative usage: Sprint.updateSprint * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-put * @param options Request options. */ updateSprint(options: UpdateSprintRequest): Promise; /** * Performs a partial update of a sprint. A partial update means that fields not present in the request JSON will not be updated. Notes: * For closed sprints, only the name and goal can be updated; changes to other fields will be ignored. * A sprint can be started by updating the state to 'active'. This requires the sprint to be in the 'future' state and have a startDate and endDate set. * A sprint can be completed by updating the state to 'closed'. This action requires the sprint to be in the 'active' state. This sets the completeDate to the time of the request. * Other changes to state are not allowed. * The completeDate field cannot be updated manually. * Alternative usage: Sprint.partialUpdateSprint * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-post * @param options Request options. */ partialUpdateSprint(options: PartialUpdateSprintRequest): Promise; /** * Deletes a sprint. Once a sprint is deleted, all open issues in the sprint will be moved to the backlog. * Alternative usage: Sprint.deleteSprint * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-delete * @param options Request options. */ deleteSprint(options: DeleteSprintRequest): Promise; /** * Returns all issues in a sprint, for a given sprint ID. This only includes issues that the user has permission to view. By default, the returned issues are ordered by rank. * Alternative usage: Sprint.getIssues * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-issue-get * @param options Request options. */ getIssuesForSprint(options: GetIssuesForSprintRequest): Promise; /** * Moves issues to a sprint, for a given sprint ID. Issues can only be moved to open or active sprints. The maximum number of issues that can be moved in one operation is 50. * Alternative usage: Sprint.moveIssuesToSprintAndRank * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-issue-post * @param options Request options. */ moveIssuesToSprintAndRank(options: MoveIssuesToSprintAndRankRequest): Promise; /** * Swap the position of the sprint with the second sprint. * Alternative usage: Sprint.swapSprint * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-swap-post * @param options Request options. */ swapSprint(options: SwapSprintRequest): Promise; } declare class IssueGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Returns a single issue, for a given issue ID or issue key. Issues returned from this resource include Agile fields, like sprint, closedSprints, flagged, and epic. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-issue/#api-rest-agile-1-0-issue-issueidorkey-get * @param options Request options. */ getIssue(options: GetIssueRequest): Promise; /** * Moves (ranks) issues before or after a given issue. At most 50 issues may be ranked at once. This operation may fail for some issues, although this will be rare. In that case the 207 status code is returned for the whole response and detailed information regarding each issue is available in the response body. If rankCustomFieldId is not defined, the default rank field will be used. Either 'rankBeforeIssue' or 'rankAfterIssue' must be specified for this operation. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-issue/#api-rest-agile-1-0-issue-rank-put * @param options Request options. */ rankIssues(options: RankIssuesRequest): Promise; /** * Returns the estimation of the issue and a fieldId of the field that is used for it. `boardId` param is required. This param determines which field will be updated on a issue. Original time internally stores and returns the estimation as a number of seconds. The field used for estimation on the given board can be obtained from [board configuration resource](#agile/1.0/board-getConfiguration). More information about the field are returned by [edit meta resource](#api-rest-api-3-issue-getEditIssueMeta) or [field resource](#api-rest-api-3-field-get). * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-issue/#api-rest-agile-1-0-issue-issueidorkey-estimation-get * @param options Request options. */ getIssueEstimation(options: GetIssueEstimationRequest): Promise; /** * Updates the estimation of the issue. boardId param is required. This param determines which field will be updated on a issue. Note that this resource changes the estimation field of the issue regardless of appearance the field on the screen. Original time tracking estimation field accepts estimation in formats like "1w", "2d", "3h", "20m" or number which represent number of minutes. However, internally the field stores and returns the estimation as a number of seconds. The field used for estimation on the given board can be obtained from [board configuration resource](#agile/1.0/board-getConfiguration). More information about the field are returned by [edit meta resource](#api-rest-api-3-issue-issueIdOrKey-editmeta-get) or [field resource](#api-rest-api-3-field-get). * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-issue/#api-rest-agile-1-0-issue-issueidorkey-estimation-put * @param options Request options. */ updateIssueEstimation(options: UpdateIssueEstimationRequest): Promise; } declare class BacklogGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Move issues to the backlog. This operation is equivalent to remove future and active sprints from a given set of issues. At most 50 issues may be moved at once. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-backlog/#api-rest-agile-1-0-backlog-issue-post * @param options Request options. */ moveIssuesToBacklog(options: MoveIssuesToBacklogRequest): Promise; /** * Move issues to the backlog of a particular board (if they are already on that board). This operation is equivalent to remove future and active sprints from a given set of issues if the board has sprints If the board does not have sprints this will put the issues back into the backlog from the board. At most 50 issues may be moved at once. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-backlog/#api-rest-agile-1-0-backlog-boardid-issue-post * @param options Request options. */ moveIssuesToBacklogForBoard(options: MoveIssuesToBacklogForBoardRequest): Promise; } declare class BoardGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Returns all boards. This only includes boards that the user has permission to view. **Deprecation notice:** The required OAuth 2.0 scopes will be updated on February 15, 2024. * `read:board-scope:jira-software`, `read:project:jira` * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-get * @param options Request options. */ getAllBoards(options?: GetAllBoardsRequest): Promise; /** * 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-post * @param options Request options. */ createBoard(options: CreateBoardRequest): Promise; /** * Returns any boards which use the provided filter id. This method can be executed by users without a valid software license in order to find which boards are using a particular filter. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-filter-filterid-get * @param options Request options. */ getBoardByFilterId(options: GetBoardByFilterIdRequest): Promise; /** * Returns the board for the given board ID. This board will only be returned if the user has permission to view it. Admins without the view permission will see the board as a private one, so will see only a subset of the board's data (board location for instance). * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-get * @param options Request options. */ getBoard(options: GetBoardRequest): Promise; /** * Deletes the board. Admin without the view permission can still remove the board. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-delete * @param options Request options. */ deleteBoard(options: DeleteBoardRequest): Promise; /** * 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-backlog-get * @param options Request options. */ getIssuesForBacklog(options: GetIssuesForBacklogRequest): Promise; /** * 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-configuration-get * @param options Request options. */ getBoardConfiguration(options: GetBoardConfigurationRequest): 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-epic-get * @param options Request options. */ getEpic(options: GetBoardEpicRequest): 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-epic-none-issue-get * @param options Request options. */ getIssuesWithoutEpic(options: GetIssuesWithoutEpicForBoardRequest): Promise; /** * 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-epic-epicid-issue-get * @param options Request options. */ getBoardIssuesForEpic(options: GetBoardIssuesForEpicRequest): Promise; /** * 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-issue-get * @param options Request options. */ getIssuesForBoard(options: GetIssuesForBoardRequest): Promise; /** * Move issues from the backog 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-issue-post * @param options Request options. */ moveIssuesToBoard(options: MoveIssuesToBoardRequest): Promise; /** * 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-project-get * @param options Request options. */ getProjects(options: GetBoardProjectsRequest): Promise; /** * Returns all projects that are statically associated with the board, for the given board ID. Returned projects are ordered by the name. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-project-full-get * @param options Request options. */ getFullProjects(options: GetBoardFullProjectsRequest): Promise; /** * Returns all sprints from a board, for a given board ID. This only includes sprints that the user has permission to view. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-sprint-get * @param options Request options. */ getAllSprints(options: GetAllSprintsRequest): Promise; /** * 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-sprint-sprintid-issue-get * @param options Request options. */ getIssuesForSprint(options: GetBoardIssuesForSprintRequest): Promise; } declare class EpicGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Returns all issues that do not belong to any epic. 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. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-none-issue-get * @param options Request options. */ getIssuesWithoutEpic(options?: GetIssuesWithoutEpicRequest): Promise; /** * Removes issues from epics. The user needs to have the edit issue permission for all issue they want to remove from epics. The maximum number of issues that can be moved in one operation is 50. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-none-issue-post * @param options Request options. */ removeIssuesFromEpic(options: RemoveIssuesFromEpicRequest): Promise; /** * Returns the epic for a given epic ID. This epic will only be returned if the user has permission to view it. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-get * @param options Request options. */ getEpic(options: GetEpicRequest): Promise; /** * Performs a partial update of the epic. A partial update means that fields not present in the request JSON will not be updated. Valid values for color are `color_1` to `color_14`. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-post * @param options Request options. */ updateEpic(options: UpdateEpicRequest): Promise; /** * Returns all issues that belong to the epic, for the given epic 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. **Note:** If you are querying a next-gen project, do not use this operation. Instead, search for issues that belong to an epic by using the [Search for issues using JQL](https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-search-get) operation in the Jira platform REST API. Build your JQL query using the `parent` clause. For more information on the `parent` JQL field, see [Advanced searching](https://confluence.atlassian.com/x/dAiiLQ#Advancedsearching-fieldsreference-Parent). * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-issue-get * @param options Request options. */ getIssuesForEpic(options: GetIssuesForEpicRequest): Promise; /** * Moves issues to an epic, for a given epic id. Issues can be only in a single epic at the same time. That means that already assigned issues to an epic, will not be assigned to the previous epic anymore. The user needs to have the edit issue permission for all issue they want to move and to the epic. The maximum number of issues that can be moved in one operation is 50. **Note:** This operation does not work for epics in next-gen projects. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-issue-post * @param options Request options. */ moveIssuesToEpic(options: MoveIssuesToEpicRequest): Promise; /** * Moves (ranks) an epic before or after a given epic. If rankCustomFieldId is not defined, the default rank field will be used. **Note:** This operation does not work for epics in next-gen projects. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-rank-put * @param options Request options. */ rankEpics(options: RankEpicsRequest): Promise; } declare class SprintGroup { private implementation; private getGlobalErrorStrategy; constructor(implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy); /** * Creates a future sprint. Sprint name and origin board id are required. Start date, end date, and goal are optional. Note that the sprint name is trimmed. Also, when starting sprints from the UI, the "endDate" set through this call is ignored and instead the last sprint's duration is used to fill the form. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-post * @param options Request options. */ createSprint(options: CreateSprintRequest): Promise; /** * Returns the sprint for a given sprint ID. The sprint will only be returned if the user can view the board that the sprint was created on, or view at least one of the issues in the sprint. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-get * @param options Request options. */ getSprint(options: GetSprintRequest): Promise; /** * Performs a full update of a sprint. A full update means that the result will be exactly the same as the request body. Any fields not present in the request JSON will be set to null. Notes: * For closed sprints, only the name and goal can be updated; changes to other fields will be ignored. * A sprint can be started by updating the state to 'active'. This requires the sprint to be in the 'future' state and have a startDate and endDate set. * A sprint can be completed by updating the state to 'closed'. This action requires the sprint to be in the 'active' state. This sets the completeDate to the time of the request. * Other changes to state are not allowed. * The completeDate field cannot be updated manually. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-put * @param options Request options. */ updateSprint(options: UpdateSprintRequest): Promise; /** * Performs a partial update of a sprint. A partial update means that fields not present in the request JSON will not be updated. Notes: * For closed sprints, only the name and goal can be updated; changes to other fields will be ignored. * A sprint can be started by updating the state to 'active'. This requires the sprint to be in the 'future' state and have a startDate and endDate set. * A sprint can be completed by updating the state to 'closed'. This action requires the sprint to be in the 'active' state. This sets the completeDate to the time of the request. * Other changes to state are not allowed. * The completeDate field cannot be updated manually. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-post * @param options Request options. */ partialUpdateSprint(options: PartialUpdateSprintRequest): Promise; /** * Deletes a sprint. Once a sprint is deleted, all open issues in the sprint will be moved to the backlog. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-delete * @param options Request options. */ deleteSprint(options: DeleteSprintRequest): Promise; /** * Returns all issues in a sprint, for a given sprint ID. This only includes issues that the user has permission to view. By default, the returned issues are ordered by rank. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-issue-get * @param options Request options. */ getIssues(options: GetIssuesForSprintRequest): Promise; /** * Moves issues to a sprint, for a given sprint ID. Issues can only be moved to open or active sprints. The maximum number of issues that can be moved in one operation is 50. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-issue-post * @param options Request options. */ moveIssuesToSprintAndRank(options: MoveIssuesToSprintAndRankRequest): Promise; /** * Swap the position of the sprint with the second sprint. * Documentation: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-swap-post * @param options Request options. */ swapSprint(options: SwapSprintRequest): Promise; } export {}; //# sourceMappingURL=index.d.ts.map