@resolution/jira-api-client 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/package.json +10 -3
- package/.eslintrc.js +0 -3
- package/config/api-typescript-generator.config.ts +0 -91
- package/config/compare-schemas.ts +0 -307
- package/src/index.ts +0 -47
- package/src/openapi/platform/base-jira-platform-api-client.ts +0 -2298
- package/src/openapi/platform/core/common-http-client.ts +0 -723
- package/src/openapi/platform/core/common-http-service.ts +0 -22
- package/src/openapi/platform/core/common-validation-schema-storage.ts +0 -105
- package/src/openapi/platform/models/announcement-banner.ts +0 -59
- package/src/openapi/platform/models/app-data-policies.ts +0 -79
- package/src/openapi/platform/models/app-migration.ts +0 -172
- package/src/openapi/platform/models/app-properties.ts +0 -32
- package/src/openapi/platform/models/audit-records.ts +0 -140
- package/src/openapi/platform/models/avatars.ts +0 -48
- package/src/openapi/platform/models/classification-levels.ts +0 -58
- package/src/openapi/platform/models/common.ts +0 -2669
- package/src/openapi/platform/models/dashboards.ts +0 -849
- package/src/openapi/platform/models/dynamic-modules.ts +0 -121
- package/src/openapi/platform/models/filter-sharing.ts +0 -103
- package/src/openapi/platform/models/filters.ts +0 -319
- package/src/openapi/platform/models/group-and-user-picker.ts +0 -85
- package/src/openapi/platform/models/groups.ts +0 -247
- package/src/openapi/platform/models/issue-attachments.ts +0 -290
- package/src/openapi/platform/models/issue-comment-properties.ts +0 -27
- package/src/openapi/platform/models/issue-comments.ts +0 -91
- package/src/openapi/platform/models/issue-custom-field-configuration-apps.ts +0 -96
- package/src/openapi/platform/models/issue-custom-field-contexts.ts +0 -1072
- package/src/openapi/platform/models/issue-custom-field-options-apps.ts +0 -273
- package/src/openapi/platform/models/issue-custom-field-options.ts +0 -283
- package/src/openapi/platform/models/issue-custom-field-values-apps.ts +0 -118
- package/src/openapi/platform/models/issue-field-configurations.ts +0 -435
- package/src/openapi/platform/models/issue-fields.ts +0 -392
- package/src/openapi/platform/models/issue-link-types.ts +0 -28
- package/src/openapi/platform/models/issue-links.ts +0 -185
- package/src/openapi/platform/models/issue-notification-schemes.ts +0 -370
- package/src/openapi/platform/models/issue-priorities.ts +0 -196
- package/src/openapi/platform/models/issue-properties.ts +0 -259
- package/src/openapi/platform/models/issue-remote-links.ts +0 -207
- package/src/openapi/platform/models/issue-resolutions.ts +0 -180
- package/src/openapi/platform/models/issue-search.ts +0 -367
- package/src/openapi/platform/models/issue-security-level.ts +0 -76
- package/src/openapi/platform/models/issue-security-schemes.ts +0 -496
- package/src/openapi/platform/models/issue-type-schemes.ts +0 -290
- package/src/openapi/platform/models/issue-type-screen-schemes.ts +0 -286
- package/src/openapi/platform/models/issue-types.ts +0 -66
- package/src/openapi/platform/models/issue-votes.ts +0 -38
- package/src/openapi/platform/models/issue-watchers.ts +0 -67
- package/src/openapi/platform/models/issue-worklogs.ts +0 -190
- package/src/openapi/platform/models/issues.ts +0 -1268
- package/src/openapi/platform/models/jira-expressions.ts +0 -578
- package/src/openapi/platform/models/jira-settings.ts +0 -118
- package/src/openapi/platform/models/jql-functions-apps.ts +0 -128
- package/src/openapi/platform/models/jql.ts +0 -783
- package/src/openapi/platform/models/labels.ts +0 -42
- package/src/openapi/platform/models/license-metrics.ts +0 -68
- package/src/openapi/platform/models/myself.ts +0 -29
- package/src/openapi/platform/models/permission-schemes.ts +0 -89
- package/src/openapi/platform/models/permissions.ts +0 -308
- package/src/openapi/platform/models/priority-schemes.ts +0 -527
- package/src/openapi/platform/models/project-avatars.ts +0 -29
- package/src/openapi/platform/models/project-classification-levels.ts +0 -24
- package/src/openapi/platform/models/project-components.ts +0 -231
- package/src/openapi/platform/models/project-email.ts +0 -27
- package/src/openapi/platform/models/project-features.ts +0 -78
- package/src/openapi/platform/models/project-permission-schemes.ts +0 -43
- package/src/openapi/platform/models/project-role-actors.ts +0 -107
- package/src/openapi/platform/models/project-roles.ts +0 -76
- package/src/openapi/platform/models/project-types.ts +0 -36
- package/src/openapi/platform/models/project-versions.ts +0 -216
- package/src/openapi/platform/models/projects.ts +0 -429
- package/src/openapi/platform/models/screen-schemes.ts +0 -192
- package/src/openapi/platform/models/screen-tab-fields.ts +0 -45
- package/src/openapi/platform/models/screens.ts +0 -171
- package/src/openapi/platform/models/server-info.ts +0 -100
- package/src/openapi/platform/models/service-registry.ts +0 -68
- package/src/openapi/platform/models/status.ts +0 -229
- package/src/openapi/platform/models/time-tracking.ts +0 -38
- package/src/openapi/platform/models/ui-modifications-apps.ts +0 -229
- package/src/openapi/platform/models/user-search.ts +0 -69
- package/src/openapi/platform/models/users.ts +0 -121
- package/src/openapi/platform/models/webhooks.ts +0 -307
- package/src/openapi/platform/models/workflow-scheme-drafts.ts +0 -58
- package/src/openapi/platform/models/workflow-scheme-project-associations.ts +0 -68
- package/src/openapi/platform/models/workflow-schemes.ts +0 -545
- package/src/openapi/platform/models/workflow-transition-properties.ts +0 -33
- package/src/openapi/platform/models/workflow-transition-rules.ts +0 -261
- package/src/openapi/platform/models/workflows.ts +0 -1943
- package/src/openapi/platform/services/announcement-banner-service.ts +0 -142
- package/src/openapi/platform/services/app-data-policies-service.ts +0 -136
- package/src/openapi/platform/services/app-migration-service.ts +0 -289
- package/src/openapi/platform/services/app-properties-service.ts +0 -441
- package/src/openapi/platform/services/application-roles-service.ts +0 -247
- package/src/openapi/platform/services/audit-records-service.ts +0 -164
- package/src/openapi/platform/services/avatars-service.ts +0 -769
- package/src/openapi/platform/services/classification-levels-service.ts +0 -131
- package/src/openapi/platform/services/dashboards-service.ts +0 -1721
- package/src/openapi/platform/services/dynamic-modules-service.ts +0 -127
- package/src/openapi/platform/services/filter-sharing-service.ts +0 -687
- package/src/openapi/platform/services/filters-service.ts +0 -1901
- package/src/openapi/platform/services/group-and-user-picker-service.ts +0 -224
- package/src/openapi/platform/services/groups-service.ts +0 -751
- package/src/openapi/platform/services/issue-attachments-service.ts +0 -900
- package/src/openapi/platform/services/issue-comment-properties-service.ts +0 -324
- package/src/openapi/platform/services/issue-comments-service.ts +0 -812
- package/src/openapi/platform/services/issue-custom-field-configuration-apps-service.ts +0 -277
- package/src/openapi/platform/services/issue-custom-field-contexts-service.ts +0 -1339
- package/src/openapi/platform/services/issue-custom-field-options-apps-service.ts +0 -994
- package/src/openapi/platform/services/issue-custom-field-options-service.ts +0 -651
- package/src/openapi/platform/services/issue-custom-field-values-apps-service.ts +0 -201
- package/src/openapi/platform/services/issue-field-configurations-service.ts +0 -1294
- package/src/openapi/platform/services/issue-fields-service.ts +0 -837
- package/src/openapi/platform/services/issue-link-types-service.ts +0 -360
- package/src/openapi/platform/services/issue-links-service.ts +0 -345
- package/src/openapi/platform/services/issue-navigator-settings-service.ts +0 -119
- package/src/openapi/platform/services/issue-notification-schemes-service.ts +0 -1209
- package/src/openapi/platform/services/issue-priorities-service.ts +0 -575
- package/src/openapi/platform/services/issue-properties-service.ts +0 -606
- package/src/openapi/platform/services/issue-remote-links-service.ts +0 -597
- package/src/openapi/platform/services/issue-resolutions-service.ts +0 -534
- package/src/openapi/platform/services/issue-search-service.ts +0 -1139
- package/src/openapi/platform/services/issue-security-level-service.ts +0 -250
- package/src/openapi/platform/services/issue-security-schemes-service.ts +0 -1240
- package/src/openapi/platform/services/issue-type-properties-service.ts +0 -325
- package/src/openapi/platform/services/issue-type-schemes-service.ts +0 -940
- package/src/openapi/platform/services/issue-type-screen-schemes-service.ts +0 -994
- package/src/openapi/platform/services/issue-types-service.ts +0 -679
- package/src/openapi/platform/services/issue-votes-service.ts +0 -221
- package/src/openapi/platform/services/issue-watchers-service.ts +0 -331
- package/src/openapi/platform/services/issue-worklog-properties-service.ts +0 -348
- package/src/openapi/platform/services/issue-worklogs-service.ts +0 -1089
- package/src/openapi/platform/services/issues-service.ts +0 -3346
- package/src/openapi/platform/services/jira-expressions-service.ts +0 -407
- package/src/openapi/platform/services/jira-settings-service.ts +0 -415
- package/src/openapi/platform/services/jql-functions-apps-service.ts +0 -219
- package/src/openapi/platform/services/jql-service.ts +0 -896
- package/src/openapi/platform/services/labels-service.ts +0 -89
- package/src/openapi/platform/services/license-metrics-service.ts +0 -216
- package/src/openapi/platform/services/myself-service.ts +0 -520
- package/src/openapi/platform/services/permission-schemes-service.ts +0 -926
- package/src/openapi/platform/services/permissions-service.ts +0 -407
- package/src/openapi/platform/services/priority-schemes-service.ts +0 -1001
- package/src/openapi/platform/services/project-avatars-service.ts +0 -341
- package/src/openapi/platform/services/project-categories-service.ts +0 -318
- package/src/openapi/platform/services/project-classification-levels-service.ts +0 -232
- package/src/openapi/platform/services/project-components-service.ts +0 -1332
- package/src/openapi/platform/services/project-email-service.ts +0 -161
- package/src/openapi/platform/services/project-features-service.ts +0 -207
- package/src/openapi/platform/services/project-key-and-name-validation-service.ts +0 -200
- package/src/openapi/platform/services/project-permission-schemes-service.ts +0 -384
- package/src/openapi/platform/services/project-properties-service.ts +0 -320
- package/src/openapi/platform/services/project-role-actors-service.ts +0 -627
- package/src/openapi/platform/services/project-roles-service.ts +0 -867
- package/src/openapi/platform/services/project-types-service.ts +0 -297
- package/src/openapi/platform/services/project-versions-service.ts +0 -1287
- package/src/openapi/platform/services/projects-service.ts +0 -2196
- package/src/openapi/platform/services/screen-schemes-service.ts +0 -334
- package/src/openapi/platform/services/screen-tab-fields-service.ts +0 -276
- package/src/openapi/platform/services/screen-tabs-service.ts +0 -421
- package/src/openapi/platform/services/screens-service.ts +0 -528
- package/src/openapi/platform/services/server-info-service.ts +0 -88
- package/src/openapi/platform/services/service-registry-service.ts +0 -89
- package/src/openapi/platform/services/status-service.ts +0 -498
- package/src/openapi/platform/services/tasks-service.ts +0 -159
- package/src/openapi/platform/services/time-tracking-service.ts +0 -386
- package/src/openapi/platform/services/ui-modifications-apps-service.ts +0 -403
- package/src/openapi/platform/services/user-properties-service.ts +0 -413
- package/src/openapi/platform/services/user-search-service.ts +0 -1214
- package/src/openapi/platform/services/users-service.ts +0 -1108
- package/src/openapi/platform/services/webhooks-service.ts +0 -458
- package/src/openapi/platform/services/workflow-scheme-drafts-service.ts +0 -1313
- package/src/openapi/platform/services/workflow-scheme-project-associations-service.ts +0 -189
- package/src/openapi/platform/services/workflow-schemes-service.ts +0 -1617
- package/src/openapi/platform/services/workflow-status-categories-service.ts +0 -151
- package/src/openapi/platform/services/workflow-statuses-service.ts +0 -176
- package/src/openapi/platform/services/workflow-transition-properties-service.ts +0 -388
- package/src/openapi/platform/services/workflow-transition-rules-service.ts +0 -485
- package/src/openapi/platform/services/workflows-service.ts +0 -3477
- package/src/openapi/platform/validation-schema-storage.ts +0 -186
- package/src/openapi/software/base-jira-software-api-client.ts +0 -447
- package/src/openapi/software/core/common-http-client.ts +0 -723
- package/src/openapi/software/core/common-http-service.ts +0 -22
- package/src/openapi/software/core/common-validation-schema-storage.ts +0 -105
- package/src/openapi/software/models/board.ts +0 -918
- package/src/openapi/software/services/backlog-service.ts +0 -160
- package/src/openapi/software/services/board-service.ts +0 -4189
- package/src/openapi/software/services/builds-service.ts +0 -571
- package/src/openapi/software/services/deployments-service.ts +0 -403
- package/src/openapi/software/services/dev-ops-components-service.ts +0 -371
- package/src/openapi/software/services/development-information-service.ts +0 -2357
- package/src/openapi/software/services/epic-service.ts +0 -854
- package/src/openapi/software/services/feature-flags-service.ts +0 -303
- package/src/openapi/software/services/issue-service.ts +0 -529
- package/src/openapi/software/services/operations-service.ts +0 -741
- package/src/openapi/software/services/remote-links-service.ts +0 -653
- package/src/openapi/software/services/security-information-service.ts +0 -495
- package/src/openapi/software/services/sprint-service.ts +0 -969
- package/src/openapi/software/validation-schema-storage.ts +0 -186
- package/tsconfig.build.json +0 -7
- package/tsconfig.json +0 -4
|
@@ -1,606 +0,0 @@
|
|
|
1
|
-
// DO NOT EDIT!
|
|
2
|
-
// This file is generated by "api-typescript-generator".
|
|
3
|
-
// To update this file run "yarn build:openapi".
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
import * as commonHttpClient from "../core/common-http-client";
|
|
7
|
-
import { CommonHttpService } from "../core/common-http-service";
|
|
8
|
-
import {
|
|
9
|
-
type EntityProperty,
|
|
10
|
-
type PropertyKeys,
|
|
11
|
-
registerCommonValidationSchemas,
|
|
12
|
-
} from "../models/common";
|
|
13
|
-
import type {
|
|
14
|
-
BulkIssuePropertyUpdateRequest,
|
|
15
|
-
IssueEntityProperties,
|
|
16
|
-
IssueFilterForBulkPropertyDelete,
|
|
17
|
-
MultiIssueEntityProperties,
|
|
18
|
-
} from "../models/issue-properties";
|
|
19
|
-
import { validationSchemaStorage } from "../validation-schema-storage";
|
|
20
|
-
/**
|
|
21
|
-
* This resource represents [issue](#api-group-Issues) properties, which provides
|
|
22
|
-
* for storing custom data against an issue. Use it to get, set, and delete issue
|
|
23
|
-
* properties as well as obtain details of all properties on an issue. Operations
|
|
24
|
-
* to bulk update and delete issue properties are also provided. Issue properties
|
|
25
|
-
* are a type of [entity
|
|
26
|
-
* property](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/).
|
|
27
|
-
*/
|
|
28
|
-
export class IssuePropertiesService extends CommonHttpService {
|
|
29
|
-
/**
|
|
30
|
-
* Deletes a property value from multiple issues. The issues to be updated can be
|
|
31
|
-
* specified by filter criteria.
|
|
32
|
-
*
|
|
33
|
-
* The criteria the filter used to identify eligible issues are:
|
|
34
|
-
*
|
|
35
|
-
* * `entityIds` Only issues from this list are eligible.
|
|
36
|
-
* * `currentValue` Only issues with the property set to this value are eligible.
|
|
37
|
-
*
|
|
38
|
-
* If both criteria is specified, they are joined with the logical *AND*: only
|
|
39
|
-
* issues that satisfy both criteria are considered eligible.
|
|
40
|
-
*
|
|
41
|
-
* If no filter criteria are specified, all the issues visible to the user and
|
|
42
|
-
* where the user has the EDIT\_ISSUES permission for the issue are considered
|
|
43
|
-
* eligible.
|
|
44
|
-
*
|
|
45
|
-
* This operation is:
|
|
46
|
-
*
|
|
47
|
-
* * transactional, either the property is deleted from all eligible issues or,
|
|
48
|
-
* when errors occur, no properties are deleted.
|
|
49
|
-
* * [asynchronous](#async). Follow the `location` link in the response to
|
|
50
|
-
* determine the status of the task and use [Get
|
|
51
|
-
* task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
|
|
52
|
-
*
|
|
53
|
-
* **[Permissions](#permissions) required:**
|
|
54
|
-
*
|
|
55
|
-
* * *Browse projects* [ project
|
|
56
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for each project
|
|
57
|
-
* containing issues.
|
|
58
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
59
|
-
* configured, issue-level security permission to view the issue.
|
|
60
|
-
* * *Edit issues* [project
|
|
61
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for each issue.
|
|
62
|
-
*
|
|
63
|
-
* @path {DELETE} /rest/api/3/issue/properties/{propertyKey}
|
|
64
|
-
* @scopes-current write:jira-work
|
|
65
|
-
* @scopes-beta delete:issue.property:jira
|
|
66
|
-
*/
|
|
67
|
-
bulkDeleteIssueProperty({
|
|
68
|
-
propertyKey,
|
|
69
|
-
issueFilterForBulkPropertyDelete,
|
|
70
|
-
}: {
|
|
71
|
-
/** The key of the property. */
|
|
72
|
-
propertyKey: string;
|
|
73
|
-
/**
|
|
74
|
-
* @example {
|
|
75
|
-
* "currentValue": "deprecated value",
|
|
76
|
-
* "entityIds": [
|
|
77
|
-
* 10100,
|
|
78
|
-
* 100010
|
|
79
|
-
* ]
|
|
80
|
-
* }
|
|
81
|
-
*/
|
|
82
|
-
issueFilterForBulkPropertyDelete: IssueFilterForBulkPropertyDelete;
|
|
83
|
-
}): Promise<void> {
|
|
84
|
-
return this.getClientInstance()
|
|
85
|
-
.request({
|
|
86
|
-
path: "/rest/api/3/issue/properties/{propertyKey}",
|
|
87
|
-
method: "DELETE",
|
|
88
|
-
pathParams: {
|
|
89
|
-
propertyKey,
|
|
90
|
-
},
|
|
91
|
-
headers: {
|
|
92
|
-
"Content-Type": "application/json",
|
|
93
|
-
},
|
|
94
|
-
body: issueFilterForBulkPropertyDelete,
|
|
95
|
-
})
|
|
96
|
-
.then(commonHttpClient.discardResult);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Sets or updates entity property values on issues. Up to 10 entity properties
|
|
100
|
-
* can be specified for each issue and up to 100 issues included in the request.
|
|
101
|
-
*
|
|
102
|
-
* The value of the request body must be a
|
|
103
|
-
* [valid](http://tools.ietf.org/html/rfc4627), non-empty JSON.
|
|
104
|
-
*
|
|
105
|
-
* This operation is:
|
|
106
|
-
*
|
|
107
|
-
* * [asynchronous](#async). Follow the `location` link in the response to
|
|
108
|
-
* determine the status of the task and use [Get
|
|
109
|
-
* task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
|
|
110
|
-
* * non-transactional. Updating some entities may fail. Such information will
|
|
111
|
-
* available in the task result.
|
|
112
|
-
*
|
|
113
|
-
* **[Permissions](#permissions) required:**
|
|
114
|
-
*
|
|
115
|
-
* * *Browse projects* and *Edit issues* [project
|
|
116
|
-
* permissions](https://confluence.atlassian.com/x/yodKLg) for the project
|
|
117
|
-
* containing the issue.
|
|
118
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
119
|
-
* configured, issue-level security permission to view the issue.
|
|
120
|
-
*
|
|
121
|
-
* @path {POST} /rest/api/3/issue/properties/multi
|
|
122
|
-
* @scopes-current write:jira-work
|
|
123
|
-
* @scopes-beta write:issue.property:jira
|
|
124
|
-
*/
|
|
125
|
-
bulkSetIssuePropertiesByIssue({
|
|
126
|
-
multiIssueEntityProperties,
|
|
127
|
-
}: {
|
|
128
|
-
/**
|
|
129
|
-
* Details of the issue properties to be set or updated. Note that if an issue is
|
|
130
|
-
* not found, it is ignored.
|
|
131
|
-
*
|
|
132
|
-
* @example {
|
|
133
|
-
* "issues": [
|
|
134
|
-
* {
|
|
135
|
-
* "issueID": 1000,
|
|
136
|
-
* "properties": {
|
|
137
|
-
* "myProperty": {
|
|
138
|
-
* "owner": "admin",
|
|
139
|
-
* "weight": 100
|
|
140
|
-
* }
|
|
141
|
-
* }
|
|
142
|
-
* },
|
|
143
|
-
* {
|
|
144
|
-
* "issueID": 1001,
|
|
145
|
-
* "properties": {
|
|
146
|
-
* "myOtherProperty": {
|
|
147
|
-
* "cost": 150,
|
|
148
|
-
* "transportation": "car"
|
|
149
|
-
* }
|
|
150
|
-
* }
|
|
151
|
-
* }
|
|
152
|
-
* ]
|
|
153
|
-
* }
|
|
154
|
-
*/
|
|
155
|
-
multiIssueEntityProperties: MultiIssueEntityProperties;
|
|
156
|
-
}): Promise<void> {
|
|
157
|
-
return this.getClientInstance()
|
|
158
|
-
.request({
|
|
159
|
-
path: "/rest/api/3/issue/properties/multi",
|
|
160
|
-
method: "POST",
|
|
161
|
-
headers: {
|
|
162
|
-
"Content-Type": "application/json",
|
|
163
|
-
},
|
|
164
|
-
body: multiIssueEntityProperties,
|
|
165
|
-
})
|
|
166
|
-
.then(commonHttpClient.discardResult);
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Sets a property value on multiple issues.
|
|
170
|
-
*
|
|
171
|
-
* The value set can be a constant or determined by a [Jira
|
|
172
|
-
* expression](https://developer.atlassian.com/cloud/jira/platform/jira-expressions/).
|
|
173
|
-
* Expressions must be computable with constant complexity when applied to a set
|
|
174
|
-
* of issues. Expressions must also comply with the
|
|
175
|
-
* [restrictions](https://developer.atlassian.com/cloud/jira/platform/jira-expressions/#restrictions)
|
|
176
|
-
* that apply to all Jira expressions.
|
|
177
|
-
*
|
|
178
|
-
* The issues to be updated can be specified by a filter.
|
|
179
|
-
*
|
|
180
|
-
* The filter identifies issues eligible for update using these criteria:
|
|
181
|
-
*
|
|
182
|
-
* * `entityIds` Only issues from this list are eligible.
|
|
183
|
-
* * `currentValue` Only issues with the property set to this value are eligible.
|
|
184
|
-
* * `hasProperty`:
|
|
185
|
-
*
|
|
186
|
-
* * If *true*, only issues with the property are eligible.
|
|
187
|
-
* * If *false*, only issues without the property are eligible.
|
|
188
|
-
*
|
|
189
|
-
* If more than one criteria is specified, they are joined with the logical *AND*:
|
|
190
|
-
* only issues that satisfy all criteria are eligible.
|
|
191
|
-
*
|
|
192
|
-
* If an invalid combination of criteria is provided, an error is returned. For
|
|
193
|
-
* example, specifying a `currentValue` and `hasProperty` as *false* would not
|
|
194
|
-
* match any issues (because without the property the property cannot have a
|
|
195
|
-
* value).
|
|
196
|
-
*
|
|
197
|
-
* The filter is optional. Without the filter all the issues visible to the user
|
|
198
|
-
* and where the user has the EDIT\_ISSUES permission for the issue are considered
|
|
199
|
-
* eligible.
|
|
200
|
-
*
|
|
201
|
-
* This operation is:
|
|
202
|
-
*
|
|
203
|
-
* * transactional, either all eligible issues are updated or, when errors
|
|
204
|
-
* occur, none are updated.
|
|
205
|
-
* * [asynchronous](#async). Follow the `location` link in the response to
|
|
206
|
-
* determine the status of the task and use [Get
|
|
207
|
-
* task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
|
|
208
|
-
*
|
|
209
|
-
* **[Permissions](#permissions) required:**
|
|
210
|
-
*
|
|
211
|
-
* * *Browse projects* [project
|
|
212
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for each project
|
|
213
|
-
* containing issues.
|
|
214
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
215
|
-
* configured, issue-level security permission to view the issue.
|
|
216
|
-
* * *Edit issues* [project
|
|
217
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for each issue.
|
|
218
|
-
*
|
|
219
|
-
* @path {PUT} /rest/api/3/issue/properties/{propertyKey}
|
|
220
|
-
* @scopes-current write:jira-work
|
|
221
|
-
* @scopes-beta read:jira-expressions:jira, write:issue.property:jira
|
|
222
|
-
*/
|
|
223
|
-
bulkSetIssueProperty({
|
|
224
|
-
propertyKey,
|
|
225
|
-
bulkIssuePropertyUpdateRequest,
|
|
226
|
-
}: {
|
|
227
|
-
/** The key of the property. The maximum length is 255 characters. */
|
|
228
|
-
propertyKey: string;
|
|
229
|
-
/**
|
|
230
|
-
* @example {
|
|
231
|
-
* "filter": {
|
|
232
|
-
* "currentValue": {
|
|
233
|
-
* "owner": "admin",
|
|
234
|
-
* "weight": 50
|
|
235
|
-
* },
|
|
236
|
-
* "entityIds": [
|
|
237
|
-
* 10100,
|
|
238
|
-
* 100010
|
|
239
|
-
* ],
|
|
240
|
-
* "hasProperty": true
|
|
241
|
-
* },
|
|
242
|
-
* "value": {
|
|
243
|
-
* "owner": "admin",
|
|
244
|
-
* "weight": 100
|
|
245
|
-
* }
|
|
246
|
-
* }
|
|
247
|
-
*/
|
|
248
|
-
bulkIssuePropertyUpdateRequest: BulkIssuePropertyUpdateRequest;
|
|
249
|
-
}): Promise<void> {
|
|
250
|
-
return this.getClientInstance()
|
|
251
|
-
.request({
|
|
252
|
-
path: "/rest/api/3/issue/properties/{propertyKey}",
|
|
253
|
-
method: "PUT",
|
|
254
|
-
pathParams: {
|
|
255
|
-
propertyKey,
|
|
256
|
-
},
|
|
257
|
-
headers: {
|
|
258
|
-
"Content-Type": "application/json",
|
|
259
|
-
},
|
|
260
|
-
body: bulkIssuePropertyUpdateRequest,
|
|
261
|
-
})
|
|
262
|
-
.then(commonHttpClient.discardResult);
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Sets or updates a list of entity property values on issues. A list of up to 10
|
|
266
|
-
* entity properties can be specified along with up to 10,000 issues on which to
|
|
267
|
-
* set or update that list of entity properties.
|
|
268
|
-
*
|
|
269
|
-
* The value of the request body must be a
|
|
270
|
-
* [valid](http://tools.ietf.org/html/rfc4627), non-empty JSON. The maximum length
|
|
271
|
-
* of single issue property value is 32768 characters. This operation can be
|
|
272
|
-
* accessed anonymously.
|
|
273
|
-
*
|
|
274
|
-
* This operation is:
|
|
275
|
-
*
|
|
276
|
-
* * transactional, either all properties are updated in all eligible issues or,
|
|
277
|
-
* when errors occur, no properties are updated.
|
|
278
|
-
* * [asynchronous](#async). Follow the `location` link in the response to
|
|
279
|
-
* determine the status of the task and use [Get
|
|
280
|
-
* task](#api-rest-api-3-task-taskId-get) to obtain subsequent updates.
|
|
281
|
-
*
|
|
282
|
-
* **[Permissions](#permissions) required:**
|
|
283
|
-
*
|
|
284
|
-
* * *Browse projects* and *Edit issues* [project
|
|
285
|
-
* permissions](https://confluence.atlassian.com/x/yodKLg) for the project
|
|
286
|
-
* containing the issue.
|
|
287
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
288
|
-
* configured, issue-level security permission to view the issue.
|
|
289
|
-
*
|
|
290
|
-
* @path {POST} /rest/api/3/issue/properties
|
|
291
|
-
* @scopes-current write:jira-work
|
|
292
|
-
* @scopes-beta write:issue.property:jira
|
|
293
|
-
*/
|
|
294
|
-
bulkSetIssuesPropertiesList({
|
|
295
|
-
issueEntityProperties,
|
|
296
|
-
}: {
|
|
297
|
-
/** Issue properties to be set or updated with values. */
|
|
298
|
-
issueEntityProperties: IssueEntityProperties;
|
|
299
|
-
}): Promise<void> {
|
|
300
|
-
return this.getClientInstance()
|
|
301
|
-
.request({
|
|
302
|
-
path: "/rest/api/3/issue/properties",
|
|
303
|
-
method: "POST",
|
|
304
|
-
headers: {
|
|
305
|
-
"Content-Type": "application/json",
|
|
306
|
-
},
|
|
307
|
-
body: issueEntityProperties,
|
|
308
|
-
})
|
|
309
|
-
.then(commonHttpClient.discardResult);
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* Deletes an issue's property.
|
|
313
|
-
*
|
|
314
|
-
* This operation can be accessed anonymously.
|
|
315
|
-
*
|
|
316
|
-
* **[Permissions](#permissions) required:**
|
|
317
|
-
*
|
|
318
|
-
* * *Browse projects* and *Edit issues* [project
|
|
319
|
-
* permissions](https://confluence.atlassian.com/x/yodKLg) for the project
|
|
320
|
-
* containing the issue.
|
|
321
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
322
|
-
* configured, issue-level security permission to view the issue.
|
|
323
|
-
*
|
|
324
|
-
* @path {DELETE} /rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey}
|
|
325
|
-
* @scopes-current write:jira-work
|
|
326
|
-
* @scopes-beta delete:issue.property:jira
|
|
327
|
-
*/
|
|
328
|
-
deleteIssueProperty({
|
|
329
|
-
issueIdOrKey,
|
|
330
|
-
propertyKey,
|
|
331
|
-
}: {
|
|
332
|
-
/** The key or ID of the issue. */
|
|
333
|
-
issueIdOrKey: string;
|
|
334
|
-
/** The key of the property. */
|
|
335
|
-
propertyKey: string;
|
|
336
|
-
}): Promise<void> {
|
|
337
|
-
return this.getClientInstance()
|
|
338
|
-
.request({
|
|
339
|
-
path: "/rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey}",
|
|
340
|
-
method: "DELETE",
|
|
341
|
-
pathParams: {
|
|
342
|
-
issueIdOrKey,
|
|
343
|
-
propertyKey,
|
|
344
|
-
},
|
|
345
|
-
})
|
|
346
|
-
.then(commonHttpClient.discardResult);
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Returns the key and value of an issue's property.
|
|
350
|
-
*
|
|
351
|
-
* This operation can be accessed anonymously.
|
|
352
|
-
*
|
|
353
|
-
* **[Permissions](#permissions) required:**
|
|
354
|
-
*
|
|
355
|
-
* * *Browse projects* [project
|
|
356
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for the project
|
|
357
|
-
* containing the issue.
|
|
358
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
359
|
-
* configured, issue-level security permission to view the issue.
|
|
360
|
-
*
|
|
361
|
-
* @returns Returned if the request is successful.
|
|
362
|
-
*
|
|
363
|
-
* example: {
|
|
364
|
-
* "key": "issue.support",
|
|
365
|
-
* "value": {
|
|
366
|
-
* "system.conversation.id": "b1bf38be-5e94-4b40-a3b8-9278735ee1e6",
|
|
367
|
-
* "system.support.time": "1m"
|
|
368
|
-
* }
|
|
369
|
-
* }
|
|
370
|
-
* @path {GET} /rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey}
|
|
371
|
-
* @scopes-current read:jira-work
|
|
372
|
-
* @scopes-beta read:issue.property:jira
|
|
373
|
-
*/
|
|
374
|
-
getIssueProperty({
|
|
375
|
-
issueIdOrKey,
|
|
376
|
-
propertyKey,
|
|
377
|
-
}: {
|
|
378
|
-
/** The key or ID of the issue. */
|
|
379
|
-
issueIdOrKey: string;
|
|
380
|
-
/** The key of the property. */
|
|
381
|
-
propertyKey: string;
|
|
382
|
-
}): Promise<EntityProperty> {
|
|
383
|
-
return this.getClientInstance()
|
|
384
|
-
.request({
|
|
385
|
-
path: "/rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey}",
|
|
386
|
-
method: "GET",
|
|
387
|
-
pathParams: {
|
|
388
|
-
issueIdOrKey,
|
|
389
|
-
propertyKey,
|
|
390
|
-
},
|
|
391
|
-
})
|
|
392
|
-
.then(
|
|
393
|
-
this.getClientInstance().responseHandler({
|
|
394
|
-
200: {
|
|
395
|
-
"application/json": "json",
|
|
396
|
-
},
|
|
397
|
-
}),
|
|
398
|
-
)
|
|
399
|
-
.then(
|
|
400
|
-
commonHttpClient.castResponse<{
|
|
401
|
-
status: 200;
|
|
402
|
-
mediaType: "application/json";
|
|
403
|
-
body: EntityProperty;
|
|
404
|
-
}>(),
|
|
405
|
-
)
|
|
406
|
-
.then(
|
|
407
|
-
validationSchemaStorage.validator(
|
|
408
|
-
"IssuePropertiesService.getIssueProperty.response",
|
|
409
|
-
),
|
|
410
|
-
)
|
|
411
|
-
.then(commonHttpClient.getBody);
|
|
412
|
-
}
|
|
413
|
-
/**
|
|
414
|
-
* Returns the URLs and keys of an issue's properties.
|
|
415
|
-
*
|
|
416
|
-
* This operation can be accessed anonymously.
|
|
417
|
-
*
|
|
418
|
-
* **[Permissions](#permissions) required:** Property details are only returned
|
|
419
|
-
* where the user has:
|
|
420
|
-
*
|
|
421
|
-
* * *Browse projects* [project
|
|
422
|
-
* permission](https://confluence.atlassian.com/x/yodKLg) for the project
|
|
423
|
-
* containing the issue.
|
|
424
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
425
|
-
* configured, issue-level security permission to view the issue.
|
|
426
|
-
*
|
|
427
|
-
* @returns Returned if the request is successful.
|
|
428
|
-
*
|
|
429
|
-
* example: {
|
|
430
|
-
* "keys": [
|
|
431
|
-
* {
|
|
432
|
-
* "key": "issue.support",
|
|
433
|
-
* "self":
|
|
434
|
-
* "https://your-domain.atlassian.net/rest/api/3/issue/EX-2/properties/issue.support"
|
|
435
|
-
* }
|
|
436
|
-
* ]
|
|
437
|
-
* }
|
|
438
|
-
* @path {GET} /rest/api/3/issue/{issueIdOrKey}/properties
|
|
439
|
-
* @scopes-current read:jira-work
|
|
440
|
-
* @scopes-beta read:issue.property:jira
|
|
441
|
-
*/
|
|
442
|
-
getIssuePropertyKeys({
|
|
443
|
-
issueIdOrKey,
|
|
444
|
-
}: {
|
|
445
|
-
/** The key or ID of the issue. */
|
|
446
|
-
issueIdOrKey: string;
|
|
447
|
-
}): Promise<PropertyKeys> {
|
|
448
|
-
return this.getClientInstance()
|
|
449
|
-
.request({
|
|
450
|
-
path: "/rest/api/3/issue/{issueIdOrKey}/properties",
|
|
451
|
-
method: "GET",
|
|
452
|
-
pathParams: {
|
|
453
|
-
issueIdOrKey,
|
|
454
|
-
},
|
|
455
|
-
})
|
|
456
|
-
.then(
|
|
457
|
-
this.getClientInstance().responseHandler({
|
|
458
|
-
200: {
|
|
459
|
-
"application/json": "json",
|
|
460
|
-
},
|
|
461
|
-
}),
|
|
462
|
-
)
|
|
463
|
-
.then(
|
|
464
|
-
commonHttpClient.castResponse<{
|
|
465
|
-
status: 200;
|
|
466
|
-
mediaType: "application/json";
|
|
467
|
-
body: PropertyKeys;
|
|
468
|
-
}>(),
|
|
469
|
-
)
|
|
470
|
-
.then(
|
|
471
|
-
validationSchemaStorage.validator(
|
|
472
|
-
"IssuePropertiesService.getIssuePropertyKeys.response",
|
|
473
|
-
),
|
|
474
|
-
)
|
|
475
|
-
.then(commonHttpClient.getBody);
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* Sets the value of an issue's property. Use this resource to store custom data
|
|
479
|
-
* against an issue.
|
|
480
|
-
*
|
|
481
|
-
* The value of the request body must be a
|
|
482
|
-
* [valid](http://tools.ietf.org/html/rfc4627), non-empty JSON blob. The maximum
|
|
483
|
-
* length is 32768 characters.
|
|
484
|
-
*
|
|
485
|
-
* This operation can be accessed anonymously.
|
|
486
|
-
*
|
|
487
|
-
* **[Permissions](#permissions) required:**
|
|
488
|
-
*
|
|
489
|
-
* * *Browse projects* and *Edit issues* [project
|
|
490
|
-
* permissions](https://confluence.atlassian.com/x/yodKLg) for the project
|
|
491
|
-
* containing the issue.
|
|
492
|
-
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
493
|
-
* configured, issue-level security permission to view the issue.
|
|
494
|
-
*
|
|
495
|
-
* @returns * status: 200, mediaType: application/json
|
|
496
|
-
*
|
|
497
|
-
* Returned if the issue property is updated.
|
|
498
|
-
*
|
|
499
|
-
* * status: 201, mediaType: application/json
|
|
500
|
-
*
|
|
501
|
-
* Returned if the issue property is created.
|
|
502
|
-
* @path {PUT} /rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey}
|
|
503
|
-
* @scopes-current write:jira-work
|
|
504
|
-
* @scopes-beta write:issue.property:jira
|
|
505
|
-
*/
|
|
506
|
-
setIssueProperty({
|
|
507
|
-
issueIdOrKey,
|
|
508
|
-
propertyKey,
|
|
509
|
-
requestBody,
|
|
510
|
-
}: {
|
|
511
|
-
/** The ID or key of the issue. */
|
|
512
|
-
issueIdOrKey: string;
|
|
513
|
-
/** The key of the issue property. The maximum length is 255 characters. */
|
|
514
|
-
propertyKey: string;
|
|
515
|
-
/**
|
|
516
|
-
* The value of the property. The value has to be a valid, non-empty
|
|
517
|
-
* [JSON](https://tools.ietf.org/html/rfc4627) value. The maximum length of the
|
|
518
|
-
* property value is 32768 bytes.
|
|
519
|
-
*/
|
|
520
|
-
requestBody: unknown;
|
|
521
|
-
}): Promise<{
|
|
522
|
-
created: boolean;
|
|
523
|
-
body: unknown;
|
|
524
|
-
}> {
|
|
525
|
-
return this.getClientInstance()
|
|
526
|
-
.request({
|
|
527
|
-
path: "/rest/api/3/issue/{issueIdOrKey}/properties/{propertyKey}",
|
|
528
|
-
method: "PUT",
|
|
529
|
-
pathParams: {
|
|
530
|
-
issueIdOrKey,
|
|
531
|
-
propertyKey,
|
|
532
|
-
},
|
|
533
|
-
headers: {
|
|
534
|
-
"Content-Type": "application/json",
|
|
535
|
-
},
|
|
536
|
-
body: requestBody,
|
|
537
|
-
})
|
|
538
|
-
.then(
|
|
539
|
-
this.getClientInstance().responseHandler({
|
|
540
|
-
200: {
|
|
541
|
-
"application/json": "json",
|
|
542
|
-
},
|
|
543
|
-
201: {
|
|
544
|
-
"application/json": "json",
|
|
545
|
-
},
|
|
546
|
-
}),
|
|
547
|
-
)
|
|
548
|
-
.then(
|
|
549
|
-
commonHttpClient.castResponse<{
|
|
550
|
-
status: 200 | 201;
|
|
551
|
-
mediaType: "application/json";
|
|
552
|
-
body: unknown;
|
|
553
|
-
}>(),
|
|
554
|
-
)
|
|
555
|
-
.then(
|
|
556
|
-
validationSchemaStorage.validator(
|
|
557
|
-
"IssuePropertiesService.setIssueProperty.response",
|
|
558
|
-
),
|
|
559
|
-
)
|
|
560
|
-
.then(commonHttpClient.asCreatedResponse("body"));
|
|
561
|
-
}
|
|
562
|
-
static initialize() {
|
|
563
|
-
validationSchemaStorage.registerExtensible(
|
|
564
|
-
"IssuePropertiesService.getIssuePropertyKeys.response",
|
|
565
|
-
z
|
|
566
|
-
.object({
|
|
567
|
-
status: z.literal(200),
|
|
568
|
-
mediaType: z.literal("application/json"),
|
|
569
|
-
body: validationSchemaStorage.lazy("PropertyKeys"),
|
|
570
|
-
})
|
|
571
|
-
.describe("IssuePropertiesService.getIssuePropertyKeys.response"),
|
|
572
|
-
);
|
|
573
|
-
validationSchemaStorage.registerExtensible(
|
|
574
|
-
"IssuePropertiesService.getIssueProperty.response",
|
|
575
|
-
z
|
|
576
|
-
.object({
|
|
577
|
-
status: z.literal(200),
|
|
578
|
-
mediaType: z.literal("application/json"),
|
|
579
|
-
body: validationSchemaStorage.lazy("EntityProperty"),
|
|
580
|
-
})
|
|
581
|
-
.describe("IssuePropertiesService.getIssueProperty.response"),
|
|
582
|
-
);
|
|
583
|
-
validationSchemaStorage.registerExtensible(
|
|
584
|
-
"IssuePropertiesService.setIssueProperty.response",
|
|
585
|
-
z
|
|
586
|
-
.object({
|
|
587
|
-
status: z.number(),
|
|
588
|
-
mediaType: z.string(),
|
|
589
|
-
body: z.unknown(),
|
|
590
|
-
})
|
|
591
|
-
.superRefine(({ status: status, body: body }, ctx) => {
|
|
592
|
-
if (status === 200 || status === 201) {
|
|
593
|
-
z.unknown().parse(body);
|
|
594
|
-
} else {
|
|
595
|
-
ctx.addIssue({
|
|
596
|
-
code: z.ZodIssueCode.custom,
|
|
597
|
-
path: ["status"],
|
|
598
|
-
message: `Unexpected status code: ${status}`,
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
})
|
|
602
|
-
.describe("IssuePropertiesService.setIssueProperty.response"),
|
|
603
|
-
);
|
|
604
|
-
validationSchemaStorage.registerOnce([registerCommonValidationSchemas]);
|
|
605
|
-
}
|
|
606
|
-
}
|