feat: bulk edit tickets
Select several tickets in the backlog and change their status, assignee, sprint, priority or labels at once. Each ticket goes through the normal rules and may refuse on its own; the result says which did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -455,6 +455,26 @@ export interface paths {
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/api/issues/bulk": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
get?: never;
|
||||
put?: never;
|
||||
/**
|
||||
* The same change on up to 100 tickets
|
||||
* @description Each ticket goes through the normal rules (permissions, workflow, open sprints and releases) and may refuse on its own; the answer says which.
|
||||
*/
|
||||
post: operations["IssuesController_bulkUpdate"];
|
||||
delete?: never;
|
||||
options?: never;
|
||||
head?: never;
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/api/issues/{issue}/parent": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
@@ -1877,6 +1897,35 @@ export interface components {
|
||||
*/
|
||||
releaseId: string | null;
|
||||
};
|
||||
BulkUpdateIssuesDto: {
|
||||
issueIds: string[];
|
||||
/** @example IN_PROGRESS */
|
||||
status?: string;
|
||||
/** @description Unassign everything */
|
||||
unassign?: boolean;
|
||||
/** @description Pireon user id of a member */
|
||||
assigneeId?: string;
|
||||
/** @description Back to the backlog */
|
||||
noSprint?: boolean;
|
||||
/** Format: uuid */
|
||||
sprintId?: string;
|
||||
/** @description Out of their release */
|
||||
noRelease?: boolean;
|
||||
/** Format: uuid */
|
||||
releaseId?: string;
|
||||
priority?: components["schemas"]["IssuePriority"];
|
||||
addLabels?: string[];
|
||||
};
|
||||
BulkIssueResultDto: {
|
||||
/** Format: uuid */
|
||||
issueId: string;
|
||||
ok: boolean;
|
||||
error: string | null;
|
||||
};
|
||||
BulkResultDto: {
|
||||
updated: number;
|
||||
results: components["schemas"]["BulkIssueResultDto"][];
|
||||
};
|
||||
SetIssueParentDto: {
|
||||
/**
|
||||
* @description Epic or ticket of the same project (id or key), or null to take it back to the top
|
||||
@@ -4329,6 +4378,83 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
IssuesController_bulkUpdate: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["BulkUpdateIssuesDto"];
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["BulkResultDto"];
|
||||
};
|
||||
};
|
||||
/** @description Invalid input */
|
||||
400: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["ApiErrorDto"];
|
||||
};
|
||||
};
|
||||
/** @description Missing or rejected Pireon token */
|
||||
401: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["ApiErrorDto"];
|
||||
};
|
||||
};
|
||||
/** @description Not a member of the project (or not allowed) */
|
||||
403: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["ApiErrorDto"];
|
||||
};
|
||||
};
|
||||
/** @description Not found */
|
||||
404: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["ApiErrorDto"];
|
||||
};
|
||||
};
|
||||
/** @description Someone changed it at the same time: retry */
|
||||
409: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["ApiErrorDto"];
|
||||
};
|
||||
};
|
||||
/** @description Business rule (e.g. a transition the workflow forbids) */
|
||||
422: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": components["schemas"]["ApiErrorDto"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
IssuesController_setParent: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
|
||||
Reference in New Issue
Block a user