/** * Jira Software Cloud API * Jira Software Cloud REST API documentation * * The version of the OpenAPI document: 1001.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { BodiesEstimateIssueForBoard, BodiesRankIssues } from '../models'; export interface EstimateIssueForBoardRequest { issueIdOrKey: string; BodiesEstimateIssueForBoard: BodiesEstimateIssueForBoard; boardId?: number; } export interface GetIssueRequest { issueIdOrKey: string; fields?: Array; expand?: string; updateHistory?: boolean; } export interface GetIssueEstimationForBoardRequest { issueIdOrKey: string; boardId?: number; } export interface RankIssuesRequest { BodiesRankIssues: BodiesRankIssues; } /** * no description */ export declare class IssueApi extends runtime.BaseAPI { /** * 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--issue-issueIdOrKey-editmeta-get) or [field resource](#api-rest-api--field-get). * Estimate issue for board */ estimateIssueForBoardRaw(requestParameters: EstimateIssueForBoardRequest): 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--issue-issueIdOrKey-editmeta-get) or [field resource](#api-rest-api--field-get). * Estimate issue for board */ estimateIssueForBoard(requestParameters: EstimateIssueForBoardRequest): Promise; /** * 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. * Get issue */ getIssueRaw(requestParameters: GetIssueRequest): Promise>; /** * 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. * Get issue */ getIssue(requestParameters: GetIssueRequest): 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--issue-getEditIssueMeta) or [field resource](#api-rest-api--field-get). * Get issue estimation for board */ getIssueEstimationForBoardRaw(requestParameters: GetIssueEstimationForBoardRequest): 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--issue-getEditIssueMeta) or [field resource](#api-rest-api--field-get). * Get issue estimation for board */ getIssueEstimationForBoard(requestParameters: GetIssueEstimationForBoardRequest): 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. * Rank issues */ rankIssuesRaw(requestParameters: RankIssuesRequest): 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. * Rank issues */ rankIssues(requestParameters: RankIssuesRequest): Promise; }