@resolution/jira-api-client 0.1.0
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/.eslintrc.js +3 -0
- package/CHANGELOG.md +11 -0
- package/LICENSE.md +19 -0
- package/README.md +12 -0
- package/config/api-typescript-generator.config.ts +91 -0
- package/config/compare-schemas.ts +307 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.js +25 -0
- package/lib/index.js.map +1 -0
- package/lib/openapi/platform/base-jira-platform-api-client.d.ts +868 -0
- package/lib/openapi/platform/base-jira-platform-api-client.js +808 -0
- package/lib/openapi/platform/base-jira-platform-api-client.js.map +1 -0
- package/lib/openapi/platform/core/common-http-client.d.ts +196 -0
- package/lib/openapi/platform/core/common-http-client.js +390 -0
- package/lib/openapi/platform/core/common-http-client.js.map +1 -0
- package/lib/openapi/platform/core/common-http-service.d.ts +7 -0
- package/lib/openapi/platform/core/common-http-service.js +20 -0
- package/lib/openapi/platform/core/common-http-service.js.map +1 -0
- package/lib/openapi/platform/core/common-validation-schema-storage.d.ts +35 -0
- package/lib/openapi/platform/core/common-validation-schema-storage.js +65 -0
- package/lib/openapi/platform/core/common-validation-schema-storage.js.map +1 -0
- package/lib/openapi/platform/models/announcement-banner.d.ts +27 -0
- package/lib/openapi/platform/models/announcement-banner.js +30 -0
- package/lib/openapi/platform/models/announcement-banner.js.map +1 -0
- package/lib/openapi/platform/models/app-data-policies.d.ts +31 -0
- package/lib/openapi/platform/models/app-data-policies.js +40 -0
- package/lib/openapi/platform/models/app-data-policies.js.map +1 -0
- package/lib/openapi/platform/models/app-migration.d.ts +86 -0
- package/lib/openapi/platform/models/app-migration.js +67 -0
- package/lib/openapi/platform/models/app-migration.js.map +1 -0
- package/lib/openapi/platform/models/app-properties.d.ts +15 -0
- package/lib/openapi/platform/models/app-properties.js +18 -0
- package/lib/openapi/platform/models/app-properties.js.map +1 -0
- package/lib/openapi/platform/models/audit-records.d.ts +70 -0
- package/lib/openapi/platform/models/audit-records.js +62 -0
- package/lib/openapi/platform/models/audit-records.js.map +1 -0
- package/lib/openapi/platform/models/avatars.d.ts +18 -0
- package/lib/openapi/platform/models/avatars.js +27 -0
- package/lib/openapi/platform/models/avatars.js.map +1 -0
- package/lib/openapi/platform/models/classification-levels.d.ts +25 -0
- package/lib/openapi/platform/models/classification-levels.js +31 -0
- package/lib/openapi/platform/models/classification-levels.js.map +1 -0
- package/lib/openapi/platform/models/common.d.ts +1490 -0
- package/lib/openapi/platform/models/common.js +937 -0
- package/lib/openapi/platform/models/common.js.map +1 -0
- package/lib/openapi/platform/models/dashboards.d.ts +414 -0
- package/lib/openapi/platform/models/dashboards.js +325 -0
- package/lib/openapi/platform/models/dashboards.js.map +1 -0
- package/lib/openapi/platform/models/dynamic-modules.d.ts +92 -0
- package/lib/openapi/platform/models/dynamic-modules.js +24 -0
- package/lib/openapi/platform/models/dynamic-modules.js.map +1 -0
- package/lib/openapi/platform/models/filter-sharing.d.ts +59 -0
- package/lib/openapi/platform/models/filter-sharing.js +36 -0
- package/lib/openapi/platform/models/filter-sharing.js.map +1 -0
- package/lib/openapi/platform/models/filters.d.ts +183 -0
- package/lib/openapi/platform/models/filters.js +115 -0
- package/lib/openapi/platform/models/filters.js.map +1 -0
- package/lib/openapi/platform/models/group-and-user-picker.d.ts +49 -0
- package/lib/openapi/platform/models/group-and-user-picker.js +31 -0
- package/lib/openapi/platform/models/group-and-user-picker.js.map +1 -0
- package/lib/openapi/platform/models/groups.d.ts +127 -0
- package/lib/openapi/platform/models/groups.js +98 -0
- package/lib/openapi/platform/models/groups.js.map +1 -0
- package/lib/openapi/platform/models/issue-attachments.d.ts +124 -0
- package/lib/openapi/platform/models/issue-attachments.js +129 -0
- package/lib/openapi/platform/models/issue-attachments.js.map +1 -0
- package/lib/openapi/platform/models/issue-comment-properties.d.ts +10 -0
- package/lib/openapi/platform/models/issue-comment-properties.js +18 -0
- package/lib/openapi/platform/models/issue-comment-properties.js.map +1 -0
- package/lib/openapi/platform/models/issue-comments.d.ts +36 -0
- package/lib/openapi/platform/models/issue-comments.js +49 -0
- package/lib/openapi/platform/models/issue-comments.js.map +1 -0
- package/lib/openapi/platform/models/issue-custom-field-configuration-apps.d.ts +36 -0
- package/lib/openapi/platform/models/issue-custom-field-configuration-apps.js +53 -0
- package/lib/openapi/platform/models/issue-custom-field-configuration-apps.js.map +1 -0
- package/lib/openapi/platform/models/issue-custom-field-contexts.d.ts +417 -0
- package/lib/openapi/platform/models/issue-custom-field-contexts.js +458 -0
- package/lib/openapi/platform/models/issue-custom-field-contexts.js.map +1 -0
- package/lib/openapi/platform/models/issue-custom-field-options-apps.d.ts +119 -0
- package/lib/openapi/platform/models/issue-custom-field-options-apps.js +133 -0
- package/lib/openapi/platform/models/issue-custom-field-options-apps.js.map +1 -0
- package/lib/openapi/platform/models/issue-custom-field-options.d.ts +136 -0
- package/lib/openapi/platform/models/issue-custom-field-options.js +115 -0
- package/lib/openapi/platform/models/issue-custom-field-options.js.map +1 -0
- package/lib/openapi/platform/models/issue-custom-field-values-apps.d.ts +66 -0
- package/lib/openapi/platform/models/issue-custom-field-values-apps.js +42 -0
- package/lib/openapi/platform/models/issue-custom-field-values-apps.js.map +1 -0
- package/lib/openapi/platform/models/issue-field-configurations.d.ts +194 -0
- package/lib/openapi/platform/models/issue-field-configurations.js +182 -0
- package/lib/openapi/platform/models/issue-field-configurations.js.map +1 -0
- package/lib/openapi/platform/models/issue-fields.d.ts +227 -0
- package/lib/openapi/platform/models/issue-fields.js +119 -0
- package/lib/openapi/platform/models/issue-fields.js.map +1 -0
- package/lib/openapi/platform/models/issue-link-types.d.ts +9 -0
- package/lib/openapi/platform/models/issue-link-types.js +21 -0
- package/lib/openapi/platform/models/issue-link-types.js.map +1 -0
- package/lib/openapi/platform/models/issue-links.d.ts +90 -0
- package/lib/openapi/platform/models/issue-links.js +74 -0
- package/lib/openapi/platform/models/issue-links.js.map +1 -0
- package/lib/openapi/platform/models/issue-notification-schemes.d.ts +158 -0
- package/lib/openapi/platform/models/issue-notification-schemes.js +147 -0
- package/lib/openapi/platform/models/issue-notification-schemes.js.map +1 -0
- package/lib/openapi/platform/models/issue-priorities.d.ts +74 -0
- package/lib/openapi/platform/models/issue-priorities.js +89 -0
- package/lib/openapi/platform/models/issue-priorities.js.map +1 -0
- package/lib/openapi/platform/models/issue-properties.d.ts +80 -0
- package/lib/openapi/platform/models/issue-properties.js +158 -0
- package/lib/openapi/platform/models/issue-properties.js.map +1 -0
- package/lib/openapi/platform/models/issue-remote-links.d.ts +120 -0
- package/lib/openapi/platform/models/issue-remote-links.js +70 -0
- package/lib/openapi/platform/models/issue-remote-links.js.map +1 -0
- package/lib/openapi/platform/models/issue-resolutions.d.ts +81 -0
- package/lib/openapi/platform/models/issue-resolutions.js +79 -0
- package/lib/openapi/platform/models/issue-resolutions.js.map +1 -0
- package/lib/openapi/platform/models/issue-search.d.ts +196 -0
- package/lib/openapi/platform/models/issue-search.js +136 -0
- package/lib/openapi/platform/models/issue-search.js.map +1 -0
- package/lib/openapi/platform/models/issue-security-level.d.ts +36 -0
- package/lib/openapi/platform/models/issue-security-level.js +36 -0
- package/lib/openapi/platform/models/issue-security-level.js.map +1 -0
- package/lib/openapi/platform/models/issue-security-schemes.d.ts +214 -0
- package/lib/openapi/platform/models/issue-security-schemes.js +211 -0
- package/lib/openapi/platform/models/issue-security-schemes.js.map +1 -0
- package/lib/openapi/platform/models/issue-type-schemes.d.ts +146 -0
- package/lib/openapi/platform/models/issue-type-schemes.js +115 -0
- package/lib/openapi/platform/models/issue-type-schemes.js.map +1 -0
- package/lib/openapi/platform/models/issue-type-screen-schemes.d.ts +139 -0
- package/lib/openapi/platform/models/issue-type-screen-schemes.js +109 -0
- package/lib/openapi/platform/models/issue-type-screen-schemes.js.map +1 -0
- package/lib/openapi/platform/models/issue-types.d.ts +36 -0
- package/lib/openapi/platform/models/issue-types.js +28 -0
- package/lib/openapi/platform/models/issue-types.js.map +1 -0
- package/lib/openapi/platform/models/issue-votes.d.ts +18 -0
- package/lib/openapi/platform/models/issue-votes.js +22 -0
- package/lib/openapi/platform/models/issue-votes.js.map +1 -0
- package/lib/openapi/platform/models/issue-watchers.d.ts +27 -0
- package/lib/openapi/platform/models/issue-watchers.js +36 -0
- package/lib/openapi/platform/models/issue-watchers.js.map +1 -0
- package/lib/openapi/platform/models/issue-worklogs.d.ts +93 -0
- package/lib/openapi/platform/models/issue-worklogs.js +80 -0
- package/lib/openapi/platform/models/issue-worklogs.js.map +1 -0
- package/lib/openapi/platform/models/issues.d.ts +583 -0
- package/lib/openapi/platform/models/issues.js +545 -0
- package/lib/openapi/platform/models/issues.js.map +1 -0
- package/lib/openapi/platform/models/jira-expressions.d.ts +329 -0
- package/lib/openapi/platform/models/jira-expressions.js +180 -0
- package/lib/openapi/platform/models/jira-expressions.js.map +1 -0
- package/lib/openapi/platform/models/jira-settings.d.ts +62 -0
- package/lib/openapi/platform/models/jira-settings.js +49 -0
- package/lib/openapi/platform/models/jira-settings.js.map +1 -0
- package/lib/openapi/platform/models/jql-functions-apps.d.ts +61 -0
- package/lib/openapi/platform/models/jql-functions-apps.js +57 -0
- package/lib/openapi/platform/models/jql-functions-apps.js.map +1 -0
- package/lib/openapi/platform/models/jql.d.ts +348 -0
- package/lib/openapi/platform/models/jql.js +309 -0
- package/lib/openapi/platform/models/jql.js.map +1 -0
- package/lib/openapi/platform/models/labels.d.ts +20 -0
- package/lib/openapi/platform/models/labels.js +23 -0
- package/lib/openapi/platform/models/labels.js.map +1 -0
- package/lib/openapi/platform/models/license-metrics.d.ts +27 -0
- package/lib/openapi/platform/models/license-metrics.js +32 -0
- package/lib/openapi/platform/models/license-metrics.js.map +1 -0
- package/lib/openapi/platform/models/myself.d.ts +13 -0
- package/lib/openapi/platform/models/myself.js +17 -0
- package/lib/openapi/platform/models/myself.js.map +1 -0
- package/lib/openapi/platform/models/permission-schemes.d.ts +42 -0
- package/lib/openapi/platform/models/permission-schemes.js +39 -0
- package/lib/openapi/platform/models/permission-schemes.js.map +1 -0
- package/lib/openapi/platform/models/permissions.d.ts +97 -0
- package/lib/openapi/platform/models/permissions.js +176 -0
- package/lib/openapi/platform/models/permissions.js.map +1 -0
- package/lib/openapi/platform/models/priority-schemes.d.ts +233 -0
- package/lib/openapi/platform/models/priority-schemes.js +227 -0
- package/lib/openapi/platform/models/priority-schemes.js.map +1 -0
- package/lib/openapi/platform/models/project-avatars.d.ts +11 -0
- package/lib/openapi/platform/models/project-avatars.js +20 -0
- package/lib/openapi/platform/models/project-avatars.js.map +1 -0
- package/lib/openapi/platform/models/project-classification-levels.d.ts +8 -0
- package/lib/openapi/platform/models/project-classification-levels.js +17 -0
- package/lib/openapi/platform/models/project-classification-levels.js.map +1 -0
- package/lib/openapi/platform/models/project-components.d.ts +122 -0
- package/lib/openapi/platform/models/project-components.js +91 -0
- package/lib/openapi/platform/models/project-components.js.map +1 -0
- package/lib/openapi/platform/models/project-email.d.ts +10 -0
- package/lib/openapi/platform/models/project-email.js +18 -0
- package/lib/openapi/platform/models/project-email.js.map +1 -0
- package/lib/openapi/platform/models/project-features.d.ts +35 -0
- package/lib/openapi/platform/models/project-features.js +38 -0
- package/lib/openapi/platform/models/project-features.js.map +1 -0
- package/lib/openapi/platform/models/project-permission-schemes.d.ts +17 -0
- package/lib/openapi/platform/models/project-permission-schemes.js +25 -0
- package/lib/openapi/platform/models/project-permission-schemes.js.map +1 -0
- package/lib/openapi/platform/models/project-role-actors.d.ts +65 -0
- package/lib/openapi/platform/models/project-role-actors.js +37 -0
- package/lib/openapi/platform/models/project-role-actors.js.map +1 -0
- package/lib/openapi/platform/models/project-roles.d.ts +41 -0
- package/lib/openapi/platform/models/project-roles.js +34 -0
- package/lib/openapi/platform/models/project-roles.js.map +1 -0
- package/lib/openapi/platform/models/project-types.d.ts +16 -0
- package/lib/openapi/platform/models/project-types.js +21 -0
- package/lib/openapi/platform/models/project-types.js.map +1 -0
- package/lib/openapi/platform/models/project-versions.d.ts +110 -0
- package/lib/openapi/platform/models/project-versions.js +87 -0
- package/lib/openapi/platform/models/project-versions.js.map +1 -0
- package/lib/openapi/platform/models/projects.d.ts +216 -0
- package/lib/openapi/platform/models/projects.js +149 -0
- package/lib/openapi/platform/models/projects.js.map +1 -0
- package/lib/openapi/platform/models/screen-schemes.d.ts +94 -0
- package/lib/openapi/platform/models/screen-schemes.js +79 -0
- package/lib/openapi/platform/models/screen-schemes.js.map +1 -0
- package/lib/openapi/platform/models/screen-tab-fields.d.ts +19 -0
- package/lib/openapi/platform/models/screen-tab-fields.js +24 -0
- package/lib/openapi/platform/models/screen-tab-fields.js.map +1 -0
- package/lib/openapi/platform/models/screens.d.ts +82 -0
- package/lib/openapi/platform/models/screens.js +72 -0
- package/lib/openapi/platform/models/screens.js.map +1 -0
- package/lib/openapi/platform/models/server-info.d.ts +51 -0
- package/lib/openapi/platform/models/server-info.js +47 -0
- package/lib/openapi/platform/models/server-info.js.map +1 -0
- package/lib/openapi/platform/models/service-registry.d.ts +32 -0
- package/lib/openapi/platform/models/service-registry.js +34 -0
- package/lib/openapi/platform/models/service-registry.js.map +1 -0
- package/lib/openapi/platform/models/status.d.ts +95 -0
- package/lib/openapi/platform/models/status.js +107 -0
- package/lib/openapi/platform/models/status.js.map +1 -0
- package/lib/openapi/platform/models/time-tracking.d.ts +20 -0
- package/lib/openapi/platform/models/time-tracking.js +19 -0
- package/lib/openapi/platform/models/time-tracking.js.map +1 -0
- package/lib/openapi/platform/models/ui-modifications-apps.d.ts +127 -0
- package/lib/openapi/platform/models/ui-modifications-apps.js +85 -0
- package/lib/openapi/platform/models/ui-modifications-apps.js.map +1 -0
- package/lib/openapi/platform/models/user-search.d.ts +37 -0
- package/lib/openapi/platform/models/user-search.js +30 -0
- package/lib/openapi/platform/models/user-search.js.map +1 -0
- package/lib/openapi/platform/models/users.d.ts +60 -0
- package/lib/openapi/platform/models/users.js +53 -0
- package/lib/openapi/platform/models/users.js.map +1 -0
- package/lib/openapi/platform/models/webhooks.d.ts +147 -0
- package/lib/openapi/platform/models/webhooks.js +112 -0
- package/lib/openapi/platform/models/webhooks.js.map +1 -0
- package/lib/openapi/platform/models/workflow-scheme-drafts.d.ts +17 -0
- package/lib/openapi/platform/models/workflow-scheme-drafts.js +37 -0
- package/lib/openapi/platform/models/workflow-scheme-drafts.js.map +1 -0
- package/lib/openapi/platform/models/workflow-scheme-project-associations.d.ts +29 -0
- package/lib/openapi/platform/models/workflow-scheme-project-associations.js +33 -0
- package/lib/openapi/platform/models/workflow-scheme-project-associations.js.map +1 -0
- package/lib/openapi/platform/models/workflow-schemes.d.ts +217 -0
- package/lib/openapi/platform/models/workflow-schemes.js +261 -0
- package/lib/openapi/platform/models/workflow-schemes.js.map +1 -0
- package/lib/openapi/platform/models/workflow-transition-properties.d.ts +15 -0
- package/lib/openapi/platform/models/workflow-transition-properties.js +19 -0
- package/lib/openapi/platform/models/workflow-transition-properties.js.map +1 -0
- package/lib/openapi/platform/models/workflow-transition-rules.d.ts +106 -0
- package/lib/openapi/platform/models/workflow-transition-rules.js +117 -0
- package/lib/openapi/platform/models/workflow-transition-rules.js.map +1 -0
- package/lib/openapi/platform/models/workflows.d.ts +848 -0
- package/lib/openapi/platform/models/workflows.js +824 -0
- package/lib/openapi/platform/models/workflows.js.map +1 -0
- package/lib/openapi/platform/services/announcement-banner-service.d.ts +49 -0
- package/lib/openapi/platform/services/announcement-banner-service.js +99 -0
- package/lib/openapi/platform/services/announcement-banner-service.js.map +1 -0
- package/lib/openapi/platform/services/app-data-policies-service.d.ts +44 -0
- package/lib/openapi/platform/services/app-data-policies-service.js +101 -0
- package/lib/openapi/platform/services/app-data-policies-service.js.map +1 -0
- package/lib/openapi/platform/services/app-migration-service.d.ts +152 -0
- package/lib/openapi/platform/services/app-migration-service.js +178 -0
- package/lib/openapi/platform/services/app-migration-service.js.map +1 -0
- package/lib/openapi/platform/services/app-properties-service.d.ts +184 -0
- package/lib/openapi/platform/services/app-properties-service.js +325 -0
- package/lib/openapi/platform/services/app-properties-service.js.map +1 -0
- package/lib/openapi/platform/services/application-roles-service.d.ts +158 -0
- package/lib/openapi/platform/services/application-roles-service.js +209 -0
- package/lib/openapi/platform/services/application-roles-service.js.map +1 -0
- package/lib/openapi/platform/services/audit-records-service.d.ts +101 -0
- package/lib/openapi/platform/services/audit-records-service.js +125 -0
- package/lib/openapi/platform/services/audit-records-service.js.map +1 -0
- package/lib/openapi/platform/services/avatars-service.d.ts +363 -0
- package/lib/openapi/platform/services/avatars-service.js +523 -0
- package/lib/openapi/platform/services/avatars-service.js.map +1 -0
- package/lib/openapi/platform/services/classification-levels-service.d.ts +72 -0
- package/lib/openapi/platform/services/classification-levels-service.js +104 -0
- package/lib/openapi/platform/services/classification-levels-service.js.map +1 -0
- package/lib/openapi/platform/services/dashboards-service.d.ts +918 -0
- package/lib/openapi/platform/services/dashboards-service.js +1109 -0
- package/lib/openapi/platform/services/dashboards-service.js.map +1 -0
- package/lib/openapi/platform/services/dynamic-modules-service.d.ts +50 -0
- package/lib/openapi/platform/services/dynamic-modules-service.js +96 -0
- package/lib/openapi/platform/services/dynamic-modules-service.js.map +1 -0
- package/lib/openapi/platform/services/filter-sharing-service.d.ts +446 -0
- package/lib/openapi/platform/services/filter-sharing-service.js +565 -0
- package/lib/openapi/platform/services/filter-sharing-service.js.map +1 -0
- package/lib/openapi/platform/services/filters-service.d.ts +1320 -0
- package/lib/openapi/platform/services/filters-service.js +1351 -0
- package/lib/openapi/platform/services/filters-service.js.map +1 -0
- package/lib/openapi/platform/services/group-and-user-picker-service.d.ts +132 -0
- package/lib/openapi/platform/services/group-and-user-picker-service.js +140 -0
- package/lib/openapi/platform/services/group-and-user-picker-service.js.map +1 -0
- package/lib/openapi/platform/services/groups-service.d.ts +411 -0
- package/lib/openapi/platform/services/groups-service.js +448 -0
- package/lib/openapi/platform/services/groups-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-attachments-service.d.ts +549 -0
- package/lib/openapi/platform/services/issue-attachments-service.js +724 -0
- package/lib/openapi/platform/services/issue-attachments-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-comment-properties-service.d.ts +149 -0
- package/lib/openapi/platform/services/issue-comment-properties-service.js +239 -0
- package/lib/openapi/platform/services/issue-comment-properties-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-comments-service.d.ts +528 -0
- package/lib/openapi/platform/services/issue-comments-service.js +563 -0
- package/lib/openapi/platform/services/issue-comments-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.d.ts +155 -0
- package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.js +163 -0
- package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-custom-field-contexts-service.d.ts +659 -0
- package/lib/openapi/platform/services/issue-custom-field-contexts-service.js +854 -0
- package/lib/openapi/platform/services/issue-custom-field-contexts-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-custom-field-options-apps-service.d.ts +615 -0
- package/lib/openapi/platform/services/issue-custom-field-options-apps-service.js +605 -0
- package/lib/openapi/platform/services/issue-custom-field-options-apps-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-custom-field-options-service.d.ts +339 -0
- package/lib/openapi/platform/services/issue-custom-field-options-service.js +420 -0
- package/lib/openapi/platform/services/issue-custom-field-options-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-custom-field-values-apps-service.d.ts +90 -0
- package/lib/openapi/platform/services/issue-custom-field-values-apps-service.js +117 -0
- package/lib/openapi/platform/services/issue-custom-field-values-apps-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-field-configurations-service.d.ts +561 -0
- package/lib/openapi/platform/services/issue-field-configurations-service.js +801 -0
- package/lib/openapi/platform/services/issue-field-configurations-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-fields-service.d.ts +420 -0
- package/lib/openapi/platform/services/issue-fields-service.js +555 -0
- package/lib/openapi/platform/services/issue-fields-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-link-types-service.d.ts +165 -0
- package/lib/openapi/platform/services/issue-link-types-service.js +263 -0
- package/lib/openapi/platform/services/issue-link-types-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-links-service.d.ts +237 -0
- package/lib/openapi/platform/services/issue-links-service.js +264 -0
- package/lib/openapi/platform/services/issue-links-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-navigator-settings-service.d.ts +55 -0
- package/lib/openapi/platform/services/issue-navigator-settings-service.js +97 -0
- package/lib/openapi/platform/services/issue-navigator-settings-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-notification-schemes-service.d.ts +809 -0
- package/lib/openapi/platform/services/issue-notification-schemes-service.js +917 -0
- package/lib/openapi/platform/services/issue-notification-schemes-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-priorities-service.d.ts +238 -0
- package/lib/openapi/platform/services/issue-priorities-service.js +372 -0
- package/lib/openapi/platform/services/issue-priorities-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-properties-service.d.ts +368 -0
- package/lib/openapi/platform/services/issue-properties-service.js +439 -0
- package/lib/openapi/platform/services/issue-properties-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-remote-links-service.d.ts +351 -0
- package/lib/openapi/platform/services/issue-remote-links-service.js +429 -0
- package/lib/openapi/platform/services/issue-remote-links-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-resolutions-service.d.ts +202 -0
- package/lib/openapi/platform/services/issue-resolutions-service.js +346 -0
- package/lib/openapi/platform/services/issue-resolutions-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-search-service.d.ts +887 -0
- package/lib/openapi/platform/services/issue-search-service.js +878 -0
- package/lib/openapi/platform/services/issue-search-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-security-level-service.d.ts +136 -0
- package/lib/openapi/platform/services/issue-security-level-service.js +174 -0
- package/lib/openapi/platform/services/issue-security-level-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-security-schemes-service.d.ts +530 -0
- package/lib/openapi/platform/services/issue-security-schemes-service.js +721 -0
- package/lib/openapi/platform/services/issue-security-schemes-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-type-properties-service.d.ts +150 -0
- package/lib/openapi/platform/services/issue-type-properties-service.js +227 -0
- package/lib/openapi/platform/services/issue-type-properties-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-type-schemes-service.d.ts +460 -0
- package/lib/openapi/platform/services/issue-type-schemes-service.js +615 -0
- package/lib/openapi/platform/services/issue-type-schemes-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-type-screen-schemes-service.d.ts +442 -0
- package/lib/openapi/platform/services/issue-type-screen-schemes-service.js +606 -0
- package/lib/openapi/platform/services/issue-type-screen-schemes-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-types-service.d.ts +343 -0
- package/lib/openapi/platform/services/issue-types-service.js +495 -0
- package/lib/openapi/platform/services/issue-types-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-votes-service.d.ts +117 -0
- package/lib/openapi/platform/services/issue-votes-service.js +179 -0
- package/lib/openapi/platform/services/issue-votes-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-watchers-service.d.ts +168 -0
- package/lib/openapi/platform/services/issue-watchers-service.js +236 -0
- package/lib/openapi/platform/services/issue-watchers-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-worklog-properties-service.d.ts +165 -0
- package/lib/openapi/platform/services/issue-worklog-properties-service.js +251 -0
- package/lib/openapi/platform/services/issue-worklog-properties-service.js.map +1 -0
- package/lib/openapi/platform/services/issue-worklogs-service.d.ts +694 -0
- package/lib/openapi/platform/services/issue-worklogs-service.js +701 -0
- package/lib/openapi/platform/services/issue-worklogs-service.js.map +1 -0
- package/lib/openapi/platform/services/issues-service.d.ts +2356 -0
- package/lib/openapi/platform/services/issues-service.js +2022 -0
- package/lib/openapi/platform/services/issues-service.js.map +1 -0
- package/lib/openapi/platform/services/jira-expressions-service.d.ts +298 -0
- package/lib/openapi/platform/services/jira-expressions-service.js +272 -0
- package/lib/openapi/platform/services/jira-expressions-service.js.map +1 -0
- package/lib/openapi/platform/services/jira-settings-service.d.ts +236 -0
- package/lib/openapi/platform/services/jira-settings-service.js +325 -0
- package/lib/openapi/platform/services/jira-settings-service.js.map +1 -0
- package/lib/openapi/platform/services/jql-functions-apps-service.d.ts +113 -0
- package/lib/openapi/platform/services/jql-functions-apps-service.js +142 -0
- package/lib/openapi/platform/services/jql-functions-apps-service.js.map +1 -0
- package/lib/openapi/platform/services/jql-service.d.ts +623 -0
- package/lib/openapi/platform/services/jql-service.js +697 -0
- package/lib/openapi/platform/services/jql-service.js.map +1 -0
- package/lib/openapi/platform/services/labels-service.d.ts +34 -0
- package/lib/openapi/platform/services/labels-service.js +67 -0
- package/lib/openapi/platform/services/labels-service.js.map +1 -0
- package/lib/openapi/platform/services/license-metrics-service.d.ts +82 -0
- package/lib/openapi/platform/services/license-metrics-service.js +160 -0
- package/lib/openapi/platform/services/license-metrics-service.js.map +1 -0
- package/lib/openapi/platform/services/myself-service.d.ts +254 -0
- package/lib/openapi/platform/services/myself-service.js +382 -0
- package/lib/openapi/platform/services/myself-service.js.map +1 -0
- package/lib/openapi/platform/services/permission-schemes-service.d.ts +554 -0
- package/lib/openapi/platform/services/permission-schemes-service.js +613 -0
- package/lib/openapi/platform/services/permission-schemes-service.js.map +1 -0
- package/lib/openapi/platform/services/permissions-service.d.ts +214 -0
- package/lib/openapi/platform/services/permissions-service.js +281 -0
- package/lib/openapi/platform/services/permissions-service.js.map +1 -0
- package/lib/openapi/platform/services/priority-schemes-service.d.ts +578 -0
- package/lib/openapi/platform/services/priority-schemes-service.js +655 -0
- package/lib/openapi/platform/services/priority-schemes-service.js.map +1 -0
- package/lib/openapi/platform/services/project-avatars-service.d.ts +170 -0
- package/lib/openapi/platform/services/project-avatars-service.js +254 -0
- package/lib/openapi/platform/services/project-avatars-service.js.map +1 -0
- package/lib/openapi/platform/services/project-categories-service.d.ts +128 -0
- package/lib/openapi/platform/services/project-categories-service.js +226 -0
- package/lib/openapi/platform/services/project-categories-service.js.map +1 -0
- package/lib/openapi/platform/services/project-classification-levels-service.d.ts +90 -0
- package/lib/openapi/platform/services/project-classification-levels-service.js +161 -0
- package/lib/openapi/platform/services/project-classification-levels-service.js.map +1 -0
- package/lib/openapi/platform/services/project-components-service.d.ts +955 -0
- package/lib/openapi/platform/services/project-components-service.js +1075 -0
- package/lib/openapi/platform/services/project-components-service.js.map +1 -0
- package/lib/openapi/platform/services/project-email-service.d.ts +60 -0
- package/lib/openapi/platform/services/project-email-service.js +113 -0
- package/lib/openapi/platform/services/project-email-service.js.map +1 -0
- package/lib/openapi/platform/services/project-features-service.d.ts +103 -0
- package/lib/openapi/platform/services/project-features-service.js +155 -0
- package/lib/openapi/platform/services/project-features-service.js.map +1 -0
- package/lib/openapi/platform/services/project-key-and-name-validation-service.d.ts +59 -0
- package/lib/openapi/platform/services/project-key-and-name-validation-service.js +135 -0
- package/lib/openapi/platform/services/project-key-and-name-validation-service.js.map +1 -0
- package/lib/openapi/platform/services/project-permission-schemes-service.d.ts +179 -0
- package/lib/openapi/platform/services/project-permission-schemes-service.js +255 -0
- package/lib/openapi/platform/services/project-permission-schemes-service.js.map +1 -0
- package/lib/openapi/platform/services/project-properties-service.d.ts +147 -0
- package/lib/openapi/platform/services/project-properties-service.js +224 -0
- package/lib/openapi/platform/services/project-properties-service.js.map +1 -0
- package/lib/openapi/platform/services/project-role-actors-service.d.ts +351 -0
- package/lib/openapi/platform/services/project-role-actors-service.js +413 -0
- package/lib/openapi/platform/services/project-role-actors-service.js.map +1 -0
- package/lib/openapi/platform/services/project-roles-service.d.ts +484 -0
- package/lib/openapi/platform/services/project-roles-service.js +647 -0
- package/lib/openapi/platform/services/project-roles-service.js.map +1 -0
- package/lib/openapi/platform/services/project-types-service.d.ts +121 -0
- package/lib/openapi/platform/services/project-types-service.js +220 -0
- package/lib/openapi/platform/services/project-types-service.js.map +1 -0
- package/lib/openapi/platform/services/project-versions-service.d.ts +632 -0
- package/lib/openapi/platform/services/project-versions-service.js +852 -0
- package/lib/openapi/platform/services/project-versions-service.js.map +1 -0
- package/lib/openapi/platform/services/projects-service.d.ts +1622 -0
- package/lib/openapi/platform/services/projects-service.js +1686 -0
- package/lib/openapi/platform/services/projects-service.js.map +1 -0
- package/lib/openapi/platform/services/screen-schemes-service.d.ts +166 -0
- package/lib/openapi/platform/services/screen-schemes-service.js +216 -0
- package/lib/openapi/platform/services/screen-schemes-service.js.map +1 -0
- package/lib/openapi/platform/services/screen-tab-fields-service.d.ts +103 -0
- package/lib/openapi/platform/services/screen-tab-fields-service.js +181 -0
- package/lib/openapi/platform/services/screen-tab-fields-service.js.map +1 -0
- package/lib/openapi/platform/services/screen-tabs-service.d.ts +164 -0
- package/lib/openapi/platform/services/screen-tabs-service.js +278 -0
- package/lib/openapi/platform/services/screen-tabs-service.js.map +1 -0
- package/lib/openapi/platform/services/screens-service.d.ts +226 -0
- package/lib/openapi/platform/services/screens-service.js +346 -0
- package/lib/openapi/platform/services/screens-service.js.map +1 -0
- package/lib/openapi/platform/services/server-info-service.d.ts +40 -0
- package/lib/openapi/platform/services/server-info-service.js +74 -0
- package/lib/openapi/platform/services/server-info-service.js.map +1 -0
- package/lib/openapi/platform/services/service-registry-service.d.ts +32 -0
- package/lib/openapi/platform/services/service-registry-service.js +60 -0
- package/lib/openapi/platform/services/service-registry-service.js.map +1 -0
- package/lib/openapi/platform/services/status-service.d.ts +268 -0
- package/lib/openapi/platform/services/status-service.js +321 -0
- package/lib/openapi/platform/services/status-service.js.map +1 -0
- package/lib/openapi/platform/services/tasks-service.d.ts +71 -0
- package/lib/openapi/platform/services/tasks-service.js +126 -0
- package/lib/openapi/platform/services/tasks-service.js.map +1 -0
- package/lib/openapi/platform/services/time-tracking-service.d.ts +140 -0
- package/lib/openapi/platform/services/time-tracking-service.js +260 -0
- package/lib/openapi/platform/services/time-tracking-service.js.map +1 -0
- package/lib/openapi/platform/services/ui-modifications-apps-service.d.ts +212 -0
- package/lib/openapi/platform/services/ui-modifications-apps-service.js +262 -0
- package/lib/openapi/platform/services/ui-modifications-apps-service.js.map +1 -0
- package/lib/openapi/platform/services/user-properties-service.d.ts +218 -0
- package/lib/openapi/platform/services/user-properties-service.js +254 -0
- package/lib/openapi/platform/services/user-properties-service.js.map +1 -0
- package/lib/openapi/platform/services/user-search-service.d.ts +782 -0
- package/lib/openapi/platform/services/user-search-service.js +784 -0
- package/lib/openapi/platform/services/user-search-service.js.map +1 -0
- package/lib/openapi/platform/services/users-service.d.ts +579 -0
- package/lib/openapi/platform/services/users-service.js +729 -0
- package/lib/openapi/platform/services/users-service.js.map +1 -0
- package/lib/openapi/platform/services/webhooks-service.d.ts +258 -0
- package/lib/openapi/platform/services/webhooks-service.js +307 -0
- package/lib/openapi/platform/services/webhooks-service.js.map +1 -0
- package/lib/openapi/platform/services/workflow-scheme-drafts-service.d.ts +744 -0
- package/lib/openapi/platform/services/workflow-scheme-drafts-service.js +956 -0
- package/lib/openapi/platform/services/workflow-scheme-drafts-service.js.map +1 -0
- package/lib/openapi/platform/services/workflow-scheme-project-associations-service.d.ts +85 -0
- package/lib/openapi/platform/services/workflow-scheme-project-associations-service.js +134 -0
- package/lib/openapi/platform/services/workflow-scheme-project-associations-service.js.map +1 -0
- package/lib/openapi/platform/services/workflow-schemes-service.d.ts +843 -0
- package/lib/openapi/platform/services/workflow-schemes-service.js +1030 -0
- package/lib/openapi/platform/services/workflow-schemes-service.js.map +1 -0
- package/lib/openapi/platform/services/workflow-status-categories-service.d.ts +60 -0
- package/lib/openapi/platform/services/workflow-status-categories-service.js +115 -0
- package/lib/openapi/platform/services/workflow-status-categories-service.js.map +1 -0
- package/lib/openapi/platform/services/workflow-statuses-service.d.ts +87 -0
- package/lib/openapi/platform/services/workflow-statuses-service.js +142 -0
- package/lib/openapi/platform/services/workflow-statuses-service.js.map +1 -0
- package/lib/openapi/platform/services/workflow-transition-properties-service.d.ts +189 -0
- package/lib/openapi/platform/services/workflow-transition-properties-service.js +224 -0
- package/lib/openapi/platform/services/workflow-transition-properties-service.js.map +1 -0
- package/lib/openapi/platform/services/workflow-transition-rules-service.d.ts +319 -0
- package/lib/openapi/platform/services/workflow-transition-rules-service.js +326 -0
- package/lib/openapi/platform/services/workflow-transition-rules-service.js.map +1 -0
- package/lib/openapi/platform/services/workflows-service.d.ts +3032 -0
- package/lib/openapi/platform/services/workflows-service.js +2529 -0
- package/lib/openapi/platform/services/workflows-service.js.map +1 -0
- package/lib/openapi/platform/validation-schema-storage.d.ts +3 -0
- package/lib/openapi/platform/validation-schema-storage.js +144 -0
- package/lib/openapi/platform/validation-schema-storage.js.map +1 -0
- package/lib/openapi/software/base-jira-software-api-client.d.ts +426 -0
- package/lib/openapi/software/base-jira-software-api-client.js +444 -0
- package/lib/openapi/software/base-jira-software-api-client.js.map +1 -0
- package/lib/openapi/software/core/common-http-client.d.ts +196 -0
- package/lib/openapi/software/core/common-http-client.js +390 -0
- package/lib/openapi/software/core/common-http-client.js.map +1 -0
- package/lib/openapi/software/core/common-http-service.d.ts +7 -0
- package/lib/openapi/software/core/common-http-service.js +20 -0
- package/lib/openapi/software/core/common-http-service.js.map +1 -0
- package/lib/openapi/software/core/common-validation-schema-storage.d.ts +35 -0
- package/lib/openapi/software/core/common-validation-schema-storage.js +65 -0
- package/lib/openapi/software/core/common-validation-schema-storage.js.map +1 -0
- package/lib/openapi/software/models/board.d.ts +505 -0
- package/lib/openapi/software/models/board.js +389 -0
- package/lib/openapi/software/models/board.js.map +1 -0
- package/lib/openapi/software/services/backlog-service.d.ts +81 -0
- package/lib/openapi/software/services/backlog-service.js +113 -0
- package/lib/openapi/software/services/backlog-service.js.map +1 -0
- package/lib/openapi/software/services/board-service.d.ts +2254 -0
- package/lib/openapi/software/services/board-service.js +2653 -0
- package/lib/openapi/software/services/board-service.js.map +1 -0
- package/lib/openapi/software/services/builds-service.d.ts +368 -0
- package/lib/openapi/software/services/builds-service.js +230 -0
- package/lib/openapi/software/services/builds-service.js.map +1 -0
- package/lib/openapi/software/services/deployments-service.d.ts +217 -0
- package/lib/openapi/software/services/deployments-service.js +232 -0
- package/lib/openapi/software/services/deployments-service.js.map +1 -0
- package/lib/openapi/software/services/dev-ops-components-service.d.ts +246 -0
- package/lib/openapi/software/services/dev-ops-components-service.js +280 -0
- package/lib/openapi/software/services/dev-ops-components-service.js.map +1 -0
- package/lib/openapi/software/services/development-information-service.d.ts +1641 -0
- package/lib/openapi/software/services/development-information-service.js +474 -0
- package/lib/openapi/software/services/development-information-service.js.map +1 -0
- package/lib/openapi/software/services/epic-service.d.ts +596 -0
- package/lib/openapi/software/services/epic-service.js +633 -0
- package/lib/openapi/software/services/epic-service.js.map +1 -0
- package/lib/openapi/software/services/feature-flags-service.d.ts +170 -0
- package/lib/openapi/software/services/feature-flags-service.js +182 -0
- package/lib/openapi/software/services/feature-flags-service.js.map +1 -0
- package/lib/openapi/software/services/issue-service.d.ts +329 -0
- package/lib/openapi/software/services/issue-service.js +410 -0
- package/lib/openapi/software/services/issue-service.js.map +1 -0
- package/lib/openapi/software/services/operations-service.d.ts +456 -0
- package/lib/openapi/software/services/operations-service.js +444 -0
- package/lib/openapi/software/services/operations-service.js.map +1 -0
- package/lib/openapi/software/services/remote-links-service.d.ts +445 -0
- package/lib/openapi/software/services/remote-links-service.js +327 -0
- package/lib/openapi/software/services/remote-links-service.js.map +1 -0
- package/lib/openapi/software/services/security-information-service.d.ts +257 -0
- package/lib/openapi/software/services/security-information-service.js +310 -0
- package/lib/openapi/software/services/security-information-service.js.map +1 -0
- package/lib/openapi/software/services/sprint-service.d.ts +531 -0
- package/lib/openapi/software/services/sprint-service.js +665 -0
- package/lib/openapi/software/services/sprint-service.js.map +1 -0
- package/lib/openapi/software/validation-schema-storage.d.ts +3 -0
- package/lib/openapi/software/validation-schema-storage.js +144 -0
- package/lib/openapi/software/validation-schema-storage.js.map +1 -0
- package/package.json +37 -0
- package/src/index.ts +47 -0
- package/src/openapi/platform/base-jira-platform-api-client.ts +2298 -0
- package/src/openapi/platform/core/common-http-client.ts +723 -0
- package/src/openapi/platform/core/common-http-service.ts +22 -0
- package/src/openapi/platform/core/common-validation-schema-storage.ts +105 -0
- package/src/openapi/platform/models/announcement-banner.ts +59 -0
- package/src/openapi/platform/models/app-data-policies.ts +79 -0
- package/src/openapi/platform/models/app-migration.ts +172 -0
- package/src/openapi/platform/models/app-properties.ts +32 -0
- package/src/openapi/platform/models/audit-records.ts +140 -0
- package/src/openapi/platform/models/avatars.ts +48 -0
- package/src/openapi/platform/models/classification-levels.ts +58 -0
- package/src/openapi/platform/models/common.ts +2669 -0
- package/src/openapi/platform/models/dashboards.ts +849 -0
- package/src/openapi/platform/models/dynamic-modules.ts +121 -0
- package/src/openapi/platform/models/filter-sharing.ts +103 -0
- package/src/openapi/platform/models/filters.ts +319 -0
- package/src/openapi/platform/models/group-and-user-picker.ts +85 -0
- package/src/openapi/platform/models/groups.ts +247 -0
- package/src/openapi/platform/models/issue-attachments.ts +290 -0
- package/src/openapi/platform/models/issue-comment-properties.ts +27 -0
- package/src/openapi/platform/models/issue-comments.ts +91 -0
- package/src/openapi/platform/models/issue-custom-field-configuration-apps.ts +96 -0
- package/src/openapi/platform/models/issue-custom-field-contexts.ts +1072 -0
- package/src/openapi/platform/models/issue-custom-field-options-apps.ts +273 -0
- package/src/openapi/platform/models/issue-custom-field-options.ts +283 -0
- package/src/openapi/platform/models/issue-custom-field-values-apps.ts +118 -0
- package/src/openapi/platform/models/issue-field-configurations.ts +435 -0
- package/src/openapi/platform/models/issue-fields.ts +392 -0
- package/src/openapi/platform/models/issue-link-types.ts +28 -0
- package/src/openapi/platform/models/issue-links.ts +185 -0
- package/src/openapi/platform/models/issue-notification-schemes.ts +370 -0
- package/src/openapi/platform/models/issue-priorities.ts +196 -0
- package/src/openapi/platform/models/issue-properties.ts +259 -0
- package/src/openapi/platform/models/issue-remote-links.ts +207 -0
- package/src/openapi/platform/models/issue-resolutions.ts +180 -0
- package/src/openapi/platform/models/issue-search.ts +367 -0
- package/src/openapi/platform/models/issue-security-level.ts +76 -0
- package/src/openapi/platform/models/issue-security-schemes.ts +496 -0
- package/src/openapi/platform/models/issue-type-schemes.ts +290 -0
- package/src/openapi/platform/models/issue-type-screen-schemes.ts +286 -0
- package/src/openapi/platform/models/issue-types.ts +66 -0
- package/src/openapi/platform/models/issue-votes.ts +38 -0
- package/src/openapi/platform/models/issue-watchers.ts +67 -0
- package/src/openapi/platform/models/issue-worklogs.ts +190 -0
- package/src/openapi/platform/models/issues.ts +1268 -0
- package/src/openapi/platform/models/jira-expressions.ts +578 -0
- package/src/openapi/platform/models/jira-settings.ts +118 -0
- package/src/openapi/platform/models/jql-functions-apps.ts +128 -0
- package/src/openapi/platform/models/jql.ts +783 -0
- package/src/openapi/platform/models/labels.ts +42 -0
- package/src/openapi/platform/models/license-metrics.ts +68 -0
- package/src/openapi/platform/models/myself.ts +29 -0
- package/src/openapi/platform/models/permission-schemes.ts +89 -0
- package/src/openapi/platform/models/permissions.ts +308 -0
- package/src/openapi/platform/models/priority-schemes.ts +527 -0
- package/src/openapi/platform/models/project-avatars.ts +29 -0
- package/src/openapi/platform/models/project-classification-levels.ts +24 -0
- package/src/openapi/platform/models/project-components.ts +231 -0
- package/src/openapi/platform/models/project-email.ts +27 -0
- package/src/openapi/platform/models/project-features.ts +78 -0
- package/src/openapi/platform/models/project-permission-schemes.ts +43 -0
- package/src/openapi/platform/models/project-role-actors.ts +107 -0
- package/src/openapi/platform/models/project-roles.ts +76 -0
- package/src/openapi/platform/models/project-types.ts +36 -0
- package/src/openapi/platform/models/project-versions.ts +216 -0
- package/src/openapi/platform/models/projects.ts +429 -0
- package/src/openapi/platform/models/screen-schemes.ts +192 -0
- package/src/openapi/platform/models/screen-tab-fields.ts +45 -0
- package/src/openapi/platform/models/screens.ts +171 -0
- package/src/openapi/platform/models/server-info.ts +100 -0
- package/src/openapi/platform/models/service-registry.ts +68 -0
- package/src/openapi/platform/models/status.ts +229 -0
- package/src/openapi/platform/models/time-tracking.ts +38 -0
- package/src/openapi/platform/models/ui-modifications-apps.ts +229 -0
- package/src/openapi/platform/models/user-search.ts +69 -0
- package/src/openapi/platform/models/users.ts +121 -0
- package/src/openapi/platform/models/webhooks.ts +307 -0
- package/src/openapi/platform/models/workflow-scheme-drafts.ts +58 -0
- package/src/openapi/platform/models/workflow-scheme-project-associations.ts +68 -0
- package/src/openapi/platform/models/workflow-schemes.ts +545 -0
- package/src/openapi/platform/models/workflow-transition-properties.ts +33 -0
- package/src/openapi/platform/models/workflow-transition-rules.ts +261 -0
- package/src/openapi/platform/models/workflows.ts +1943 -0
- package/src/openapi/platform/services/announcement-banner-service.ts +142 -0
- package/src/openapi/platform/services/app-data-policies-service.ts +136 -0
- package/src/openapi/platform/services/app-migration-service.ts +289 -0
- package/src/openapi/platform/services/app-properties-service.ts +441 -0
- package/src/openapi/platform/services/application-roles-service.ts +247 -0
- package/src/openapi/platform/services/audit-records-service.ts +164 -0
- package/src/openapi/platform/services/avatars-service.ts +769 -0
- package/src/openapi/platform/services/classification-levels-service.ts +131 -0
- package/src/openapi/platform/services/dashboards-service.ts +1721 -0
- package/src/openapi/platform/services/dynamic-modules-service.ts +127 -0
- package/src/openapi/platform/services/filter-sharing-service.ts +687 -0
- package/src/openapi/platform/services/filters-service.ts +1901 -0
- package/src/openapi/platform/services/group-and-user-picker-service.ts +224 -0
- package/src/openapi/platform/services/groups-service.ts +751 -0
- package/src/openapi/platform/services/issue-attachments-service.ts +900 -0
- package/src/openapi/platform/services/issue-comment-properties-service.ts +324 -0
- package/src/openapi/platform/services/issue-comments-service.ts +812 -0
- package/src/openapi/platform/services/issue-custom-field-configuration-apps-service.ts +277 -0
- package/src/openapi/platform/services/issue-custom-field-contexts-service.ts +1339 -0
- package/src/openapi/platform/services/issue-custom-field-options-apps-service.ts +994 -0
- package/src/openapi/platform/services/issue-custom-field-options-service.ts +651 -0
- package/src/openapi/platform/services/issue-custom-field-values-apps-service.ts +201 -0
- package/src/openapi/platform/services/issue-field-configurations-service.ts +1294 -0
- package/src/openapi/platform/services/issue-fields-service.ts +837 -0
- package/src/openapi/platform/services/issue-link-types-service.ts +360 -0
- package/src/openapi/platform/services/issue-links-service.ts +345 -0
- package/src/openapi/platform/services/issue-navigator-settings-service.ts +119 -0
- package/src/openapi/platform/services/issue-notification-schemes-service.ts +1209 -0
- package/src/openapi/platform/services/issue-priorities-service.ts +575 -0
- package/src/openapi/platform/services/issue-properties-service.ts +606 -0
- package/src/openapi/platform/services/issue-remote-links-service.ts +597 -0
- package/src/openapi/platform/services/issue-resolutions-service.ts +534 -0
- package/src/openapi/platform/services/issue-search-service.ts +1139 -0
- package/src/openapi/platform/services/issue-security-level-service.ts +250 -0
- package/src/openapi/platform/services/issue-security-schemes-service.ts +1240 -0
- package/src/openapi/platform/services/issue-type-properties-service.ts +325 -0
- package/src/openapi/platform/services/issue-type-schemes-service.ts +940 -0
- package/src/openapi/platform/services/issue-type-screen-schemes-service.ts +994 -0
- package/src/openapi/platform/services/issue-types-service.ts +679 -0
- package/src/openapi/platform/services/issue-votes-service.ts +221 -0
- package/src/openapi/platform/services/issue-watchers-service.ts +331 -0
- package/src/openapi/platform/services/issue-worklog-properties-service.ts +348 -0
- package/src/openapi/platform/services/issue-worklogs-service.ts +1089 -0
- package/src/openapi/platform/services/issues-service.ts +3346 -0
- package/src/openapi/platform/services/jira-expressions-service.ts +407 -0
- package/src/openapi/platform/services/jira-settings-service.ts +415 -0
- package/src/openapi/platform/services/jql-functions-apps-service.ts +219 -0
- package/src/openapi/platform/services/jql-service.ts +896 -0
- package/src/openapi/platform/services/labels-service.ts +89 -0
- package/src/openapi/platform/services/license-metrics-service.ts +216 -0
- package/src/openapi/platform/services/myself-service.ts +520 -0
- package/src/openapi/platform/services/permission-schemes-service.ts +926 -0
- package/src/openapi/platform/services/permissions-service.ts +407 -0
- package/src/openapi/platform/services/priority-schemes-service.ts +1001 -0
- package/src/openapi/platform/services/project-avatars-service.ts +341 -0
- package/src/openapi/platform/services/project-categories-service.ts +318 -0
- package/src/openapi/platform/services/project-classification-levels-service.ts +232 -0
- package/src/openapi/platform/services/project-components-service.ts +1332 -0
- package/src/openapi/platform/services/project-email-service.ts +161 -0
- package/src/openapi/platform/services/project-features-service.ts +207 -0
- package/src/openapi/platform/services/project-key-and-name-validation-service.ts +200 -0
- package/src/openapi/platform/services/project-permission-schemes-service.ts +384 -0
- package/src/openapi/platform/services/project-properties-service.ts +320 -0
- package/src/openapi/platform/services/project-role-actors-service.ts +627 -0
- package/src/openapi/platform/services/project-roles-service.ts +867 -0
- package/src/openapi/platform/services/project-types-service.ts +297 -0
- package/src/openapi/platform/services/project-versions-service.ts +1287 -0
- package/src/openapi/platform/services/projects-service.ts +2196 -0
- package/src/openapi/platform/services/screen-schemes-service.ts +334 -0
- package/src/openapi/platform/services/screen-tab-fields-service.ts +276 -0
- package/src/openapi/platform/services/screen-tabs-service.ts +421 -0
- package/src/openapi/platform/services/screens-service.ts +528 -0
- package/src/openapi/platform/services/server-info-service.ts +88 -0
- package/src/openapi/platform/services/service-registry-service.ts +89 -0
- package/src/openapi/platform/services/status-service.ts +498 -0
- package/src/openapi/platform/services/tasks-service.ts +159 -0
- package/src/openapi/platform/services/time-tracking-service.ts +386 -0
- package/src/openapi/platform/services/ui-modifications-apps-service.ts +403 -0
- package/src/openapi/platform/services/user-properties-service.ts +413 -0
- package/src/openapi/platform/services/user-search-service.ts +1214 -0
- package/src/openapi/platform/services/users-service.ts +1108 -0
- package/src/openapi/platform/services/webhooks-service.ts +458 -0
- package/src/openapi/platform/services/workflow-scheme-drafts-service.ts +1313 -0
- package/src/openapi/platform/services/workflow-scheme-project-associations-service.ts +189 -0
- package/src/openapi/platform/services/workflow-schemes-service.ts +1617 -0
- package/src/openapi/platform/services/workflow-status-categories-service.ts +151 -0
- package/src/openapi/platform/services/workflow-statuses-service.ts +176 -0
- package/src/openapi/platform/services/workflow-transition-properties-service.ts +388 -0
- package/src/openapi/platform/services/workflow-transition-rules-service.ts +485 -0
- package/src/openapi/platform/services/workflows-service.ts +3477 -0
- package/src/openapi/platform/validation-schema-storage.ts +186 -0
- package/src/openapi/software/base-jira-software-api-client.ts +447 -0
- package/src/openapi/software/core/common-http-client.ts +723 -0
- package/src/openapi/software/core/common-http-service.ts +22 -0
- package/src/openapi/software/core/common-validation-schema-storage.ts +105 -0
- package/src/openapi/software/models/board.ts +918 -0
- package/src/openapi/software/services/backlog-service.ts +160 -0
- package/src/openapi/software/services/board-service.ts +4189 -0
- package/src/openapi/software/services/builds-service.ts +571 -0
- package/src/openapi/software/services/deployments-service.ts +403 -0
- package/src/openapi/software/services/dev-ops-components-service.ts +371 -0
- package/src/openapi/software/services/development-information-service.ts +2357 -0
- package/src/openapi/software/services/epic-service.ts +854 -0
- package/src/openapi/software/services/feature-flags-service.ts +303 -0
- package/src/openapi/software/services/issue-service.ts +529 -0
- package/src/openapi/software/services/operations-service.ts +741 -0
- package/src/openapi/software/services/remote-links-service.ts +653 -0
- package/src/openapi/software/services/security-information-service.ts +495 -0
- package/src/openapi/software/services/sprint-service.ts +969 -0
- package/src/openapi/software/validation-schema-storage.ts +186 -0
- package/tsconfig.build.json +7 -0
- package/tsconfig.json +4 -0
|
@@ -0,0 +1,2022 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IssuesService = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
const commonHttpClient = require("../core/common-http-client");
|
|
9
|
+
const common_http_service_1 = require("../core/common-http-service");
|
|
10
|
+
const common_1 = require("../models/common");
|
|
11
|
+
const issues_1 = require("../models/issues");
|
|
12
|
+
const validation_schema_storage_1 = require("../validation-schema-storage");
|
|
13
|
+
/**
|
|
14
|
+
* This resource represents Jira issues. Use it to:
|
|
15
|
+
*
|
|
16
|
+
* * create or edit issues, individually or in bulk.
|
|
17
|
+
* * retrieve metadata about the options for creating or editing issues.
|
|
18
|
+
* * delete an issue.
|
|
19
|
+
* * assign a user to an issue.
|
|
20
|
+
* * get issue changelogs.
|
|
21
|
+
* * send notifications about an issue.
|
|
22
|
+
* * get details of the transitions available for an issue.
|
|
23
|
+
* * transition an issue.
|
|
24
|
+
* * Archive issues.
|
|
25
|
+
* * Unarchive issues.
|
|
26
|
+
* * Export archived issues.
|
|
27
|
+
*/
|
|
28
|
+
class IssuesService extends common_http_service_1.CommonHttpService {
|
|
29
|
+
/**
|
|
30
|
+
* Enables admins to archive up to 1000 issues in a single request using issue
|
|
31
|
+
* ID/key, returning details of the issue(s) archived in the process and the
|
|
32
|
+
* errors encountered, if any.
|
|
33
|
+
*
|
|
34
|
+
* **Note that:**
|
|
35
|
+
*
|
|
36
|
+
* * you can't archive subtasks directly, only through their parent issues
|
|
37
|
+
* * you can only archive issues from software, service management, and business
|
|
38
|
+
* projects
|
|
39
|
+
*
|
|
40
|
+
* **[Permissions](#permissions) required:** Jira admin or site admin: [global
|
|
41
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg)
|
|
42
|
+
*
|
|
43
|
+
* **License required:** Premium or Enterprise
|
|
44
|
+
*
|
|
45
|
+
* **Signed-in users only:** This API can't be accessed anonymously.
|
|
46
|
+
*
|
|
47
|
+
* @returns Returned if there is at least one valid issue to archive in the request. The
|
|
48
|
+
* return message will include the count of archived issues and subtasks, as well
|
|
49
|
+
* as error details for issues which failed to get archived.
|
|
50
|
+
*
|
|
51
|
+
* example: {
|
|
52
|
+
* "errors": {
|
|
53
|
+
* "issueIsSubtask": {
|
|
54
|
+
* "count": 3,
|
|
55
|
+
* "issueIdsOrKeys": [
|
|
56
|
+
* "ST-1",
|
|
57
|
+
* "ST-2",
|
|
58
|
+
* "ST-3"
|
|
59
|
+
* ],
|
|
60
|
+
* "message": "Issue is subtask."
|
|
61
|
+
* },
|
|
62
|
+
* "issuesInArchivedProjects": {
|
|
63
|
+
* "count": 2,
|
|
64
|
+
* "issueIdsOrKeys": [
|
|
65
|
+
* "AR-1",
|
|
66
|
+
* "AR-2"
|
|
67
|
+
* ],
|
|
68
|
+
* "message": "Issue exists in archived project."
|
|
69
|
+
* },
|
|
70
|
+
* "issuesInUnlicensedProjects": {
|
|
71
|
+
* "count": 3,
|
|
72
|
+
* "issueIdsOrKeys": [
|
|
73
|
+
* "UL-1",
|
|
74
|
+
* "UL-2",
|
|
75
|
+
* "UL-3"
|
|
76
|
+
* ],
|
|
77
|
+
* "message": "Issues with these IDs are in unlicensed projects."
|
|
78
|
+
* },
|
|
79
|
+
* "issuesNotFound": {
|
|
80
|
+
* "count": 3,
|
|
81
|
+
* "issueIdsOrKeys": [
|
|
82
|
+
* "PR-1",
|
|
83
|
+
* "PR-2",
|
|
84
|
+
* "PR-3"
|
|
85
|
+
* ],
|
|
86
|
+
* "message": "Issue not found."
|
|
87
|
+
* }
|
|
88
|
+
* },
|
|
89
|
+
* "numberOfIssuesUpdated": 10
|
|
90
|
+
* }
|
|
91
|
+
* @path {PUT} /rest/api/3/issue/archive
|
|
92
|
+
* @scopes-current write:jira-work
|
|
93
|
+
* @scopes-beta write:issue:jira
|
|
94
|
+
*/
|
|
95
|
+
archiveIssues({ issueArchivalSyncRequest, }) {
|
|
96
|
+
return this.getClientInstance()
|
|
97
|
+
.request({
|
|
98
|
+
path: "/rest/api/3/issue/archive",
|
|
99
|
+
method: "PUT",
|
|
100
|
+
headers: {
|
|
101
|
+
"Content-Type": "application/json",
|
|
102
|
+
},
|
|
103
|
+
body: issueArchivalSyncRequest,
|
|
104
|
+
})
|
|
105
|
+
.then(this.getClientInstance().responseHandler({
|
|
106
|
+
200: {
|
|
107
|
+
"application/json": "json",
|
|
108
|
+
},
|
|
109
|
+
}))
|
|
110
|
+
.then(commonHttpClient.castResponse())
|
|
111
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.archiveIssues.response"))
|
|
112
|
+
.then(commonHttpClient.getBody);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Enables admins to archive up to 100,000 issues in a single request using JQL,
|
|
116
|
+
* returning the URL to check the status of the submitted request.
|
|
117
|
+
*
|
|
118
|
+
* You can use the [get
|
|
119
|
+
* task](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-tasks/#api-rest-api-3-task-taskid-get)
|
|
120
|
+
* and [cancel
|
|
121
|
+
* task](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-tasks/#api-rest-api-3-task-taskid-cancel-post)
|
|
122
|
+
* APIs to manage the request.
|
|
123
|
+
*
|
|
124
|
+
* **Note that:**
|
|
125
|
+
*
|
|
126
|
+
* * you can't archive subtasks directly, only through their parent issues
|
|
127
|
+
* * you can only archive issues from software, service management, and business
|
|
128
|
+
* projects
|
|
129
|
+
*
|
|
130
|
+
* **[Permissions](#permissions) required:** Jira admin or site admin: [global
|
|
131
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg)
|
|
132
|
+
*
|
|
133
|
+
* **License required:** Premium or Enterprise
|
|
134
|
+
*
|
|
135
|
+
* **Signed-in users only:** This API can't be accessed anonymously.
|
|
136
|
+
*
|
|
137
|
+
* **Rate limiting:** Only a single request per jira instance can be active at any
|
|
138
|
+
* given time.
|
|
139
|
+
*
|
|
140
|
+
* @returns Returns the URL to check the status of the submitted request.
|
|
141
|
+
*
|
|
142
|
+
* example: "https://your-domain.atlassian.net/rest/api/3/task/1010"
|
|
143
|
+
* @path {POST} /rest/api/3/issue/archive
|
|
144
|
+
* @scopes-current write:jira-work
|
|
145
|
+
* @scopes-beta write:issue:jira
|
|
146
|
+
*/
|
|
147
|
+
archiveIssuesAsync({ archiveIssueAsyncRequest, }) {
|
|
148
|
+
return this.getClientInstance()
|
|
149
|
+
.request({
|
|
150
|
+
path: "/rest/api/3/issue/archive",
|
|
151
|
+
method: "POST",
|
|
152
|
+
headers: {
|
|
153
|
+
"Content-Type": "application/json",
|
|
154
|
+
},
|
|
155
|
+
body: archiveIssueAsyncRequest,
|
|
156
|
+
})
|
|
157
|
+
.then(this.getClientInstance().responseHandler({
|
|
158
|
+
202: {
|
|
159
|
+
"application/json": "json",
|
|
160
|
+
},
|
|
161
|
+
}))
|
|
162
|
+
.then(commonHttpClient.castResponse())
|
|
163
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.archiveIssuesAsync.response"))
|
|
164
|
+
.then(commonHttpClient.getBody);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Assigns an issue to a user. Use this operation when the calling user does not
|
|
168
|
+
* have the *Edit Issues* permission but has the *Assign issue* permission for the
|
|
169
|
+
* project that the issue is in.
|
|
170
|
+
*
|
|
171
|
+
* If `name` or `accountId` is set to:
|
|
172
|
+
*
|
|
173
|
+
* * `"-1"`, the issue is assigned to the default assignee for the project.
|
|
174
|
+
* * `null`, the issue is set to unassigned.
|
|
175
|
+
*
|
|
176
|
+
* This operation can be accessed anonymously.
|
|
177
|
+
*
|
|
178
|
+
* **[Permissions](#permissions) required:**
|
|
179
|
+
*
|
|
180
|
+
* * *Browse Projects* and *Assign Issues* [ project
|
|
181
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
|
|
182
|
+
* issue is in.
|
|
183
|
+
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
184
|
+
* configured, issue-level security permission to view the issue.
|
|
185
|
+
*
|
|
186
|
+
* @returns Returned if the request is successful.
|
|
187
|
+
* @path {PUT} /rest/api/3/issue/{issueIdOrKey}/assignee
|
|
188
|
+
* @scopes-current write:jira-work
|
|
189
|
+
* @scopes-beta write:issue:jira
|
|
190
|
+
*/
|
|
191
|
+
assignIssue({ issueIdOrKey, user, }) {
|
|
192
|
+
return this.getClientInstance()
|
|
193
|
+
.request({
|
|
194
|
+
path: "/rest/api/3/issue/{issueIdOrKey}/assignee",
|
|
195
|
+
method: "PUT",
|
|
196
|
+
pathParams: {
|
|
197
|
+
issueIdOrKey,
|
|
198
|
+
},
|
|
199
|
+
headers: {
|
|
200
|
+
"Content-Type": "application/json",
|
|
201
|
+
},
|
|
202
|
+
body: user,
|
|
203
|
+
})
|
|
204
|
+
.then(this.getClientInstance().responseHandler({
|
|
205
|
+
204: {
|
|
206
|
+
"application/json": "json",
|
|
207
|
+
},
|
|
208
|
+
}))
|
|
209
|
+
.then(commonHttpClient.castResponse())
|
|
210
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.assignIssue.response"))
|
|
211
|
+
.then(commonHttpClient.getBody);
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Creates an issue or, where the option to create subtasks is enabled in Jira, a
|
|
215
|
+
* subtask. A transition may be applied, to move the issue or subtask to a
|
|
216
|
+
* workflow step other than the default start step, and issue properties set.
|
|
217
|
+
*
|
|
218
|
+
* The content of the issue or subtask is defined using `update` and `fields`. The
|
|
219
|
+
* fields that can be set in the issue or subtask are determined using the [ Get
|
|
220
|
+
* create issue metadata](#api-rest-api-3-issue-createmeta-get). These are the
|
|
221
|
+
* same fields that appear on the issue's create screen. Note that the
|
|
222
|
+
* `description`, `environment`, and any `textarea` type custom fields (multi-line
|
|
223
|
+
* text fields) take Atlassian Document Format content. Single line custom fields
|
|
224
|
+
* (`textfield`) accept a string and don't handle Atlassian Document Format
|
|
225
|
+
* content.
|
|
226
|
+
*
|
|
227
|
+
* Creating a subtask differs from creating an issue as follows:
|
|
228
|
+
*
|
|
229
|
+
* * `issueType` must be set to a subtask issue type (use [ Get create issue
|
|
230
|
+
* metadata](#api-rest-api-3-issue-createmeta-get) to find subtask issue types).
|
|
231
|
+
* * `parent` must contain the ID or key of the parent issue.
|
|
232
|
+
*
|
|
233
|
+
* In a next-gen project any issue may be made a child providing that the parent
|
|
234
|
+
* and child are members of the same project.
|
|
235
|
+
*
|
|
236
|
+
* **[Permissions](#permissions) required:** *Browse projects* and *Create issues*
|
|
237
|
+
* [project permissions](https://confluence.atlassian.com/x/yodKLg) for the
|
|
238
|
+
* project in which the issue or subtask is created.
|
|
239
|
+
*
|
|
240
|
+
* @returns Returned if the request is successful.
|
|
241
|
+
*
|
|
242
|
+
* example: {
|
|
243
|
+
* "id": "10000",
|
|
244
|
+
* "key": "ED-24",
|
|
245
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10000",
|
|
246
|
+
* "transition": {
|
|
247
|
+
* "status": 200,
|
|
248
|
+
* "errorCollection": {
|
|
249
|
+
* "errorMessages": [],
|
|
250
|
+
* "errors": {}
|
|
251
|
+
* }
|
|
252
|
+
* }
|
|
253
|
+
* }
|
|
254
|
+
* @path {POST} /rest/api/3/issue
|
|
255
|
+
* @scopes-current write:jira-work
|
|
256
|
+
* @scopes-beta write:issue:jira, write:comment:jira, write:comment.property:jira,
|
|
257
|
+
* write:attachment:jira, read:issue:jira
|
|
258
|
+
*/
|
|
259
|
+
createIssue({ updateHistory, issueUpdateDetails, }) {
|
|
260
|
+
return this.getClientInstance()
|
|
261
|
+
.request({
|
|
262
|
+
path: "/rest/api/3/issue",
|
|
263
|
+
method: "POST",
|
|
264
|
+
query: {
|
|
265
|
+
updateHistory,
|
|
266
|
+
},
|
|
267
|
+
headers: {
|
|
268
|
+
"Content-Type": "application/json",
|
|
269
|
+
},
|
|
270
|
+
body: issueUpdateDetails,
|
|
271
|
+
})
|
|
272
|
+
.then(this.getClientInstance().responseHandler({
|
|
273
|
+
201: {
|
|
274
|
+
"application/json": "json",
|
|
275
|
+
},
|
|
276
|
+
}))
|
|
277
|
+
.then(commonHttpClient.castResponse())
|
|
278
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.createIssue.response"))
|
|
279
|
+
.then(commonHttpClient.getBody);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Creates upto **50** issues and, where the option to create subtasks is enabled
|
|
283
|
+
* in Jira, subtasks. Transitions may be applied, to move the issues or subtasks
|
|
284
|
+
* to a workflow step other than the default start step, and issue properties set.
|
|
285
|
+
*
|
|
286
|
+
* The content of each issue or subtask is defined using `update` and `fields`.
|
|
287
|
+
* The fields that can be set in the issue or subtask are determined using the [
|
|
288
|
+
* Get create issue metadata](#api-rest-api-3-issue-createmeta-get). These are the
|
|
289
|
+
* same fields that appear on the issues' create screens. Note that the
|
|
290
|
+
* `description`, `environment`, and any `textarea` type custom fields (multi-line
|
|
291
|
+
* text fields) take Atlassian Document Format content. Single line custom fields
|
|
292
|
+
* (`textfield`) accept a string and don't handle Atlassian Document Format
|
|
293
|
+
* content.
|
|
294
|
+
*
|
|
295
|
+
* Creating a subtask differs from creating an issue as follows:
|
|
296
|
+
*
|
|
297
|
+
* * `issueType` must be set to a subtask issue type (use [ Get create issue
|
|
298
|
+
* metadata](#api-rest-api-3-issue-createmeta-get) to find subtask issue types).
|
|
299
|
+
* * `parent` the must contain the ID or key of the parent issue.
|
|
300
|
+
*
|
|
301
|
+
* **[Permissions](#permissions) required:** *Browse projects* and *Create issues*
|
|
302
|
+
* [project permissions](https://confluence.atlassian.com/x/yodKLg) for the
|
|
303
|
+
* project in which each issue or subtask is created.
|
|
304
|
+
*
|
|
305
|
+
* @returns Returned if any of the issue or subtask creation requests were successful. A
|
|
306
|
+
* request may be unsuccessful when it:
|
|
307
|
+
*
|
|
308
|
+
* * is missing required fields.
|
|
309
|
+
* * contains invalid field values.
|
|
310
|
+
* * contains fields that cannot be set for the issue type.
|
|
311
|
+
* * is by a user who does not have the necessary permission.
|
|
312
|
+
* * is to create a subtype in a project different that of the parent issue.
|
|
313
|
+
* * is for a subtask when the option to create subtasks is disabled.
|
|
314
|
+
* * is invalid for any other reason.
|
|
315
|
+
*
|
|
316
|
+
* example: {
|
|
317
|
+
* "issues": [
|
|
318
|
+
* {
|
|
319
|
+
* "id": "10000",
|
|
320
|
+
* "key": "ED-24",
|
|
321
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10000",
|
|
322
|
+
* "transition": {
|
|
323
|
+
* "status": 200,
|
|
324
|
+
* "errorCollection": {
|
|
325
|
+
* "errorMessages": [],
|
|
326
|
+
* "errors": {}
|
|
327
|
+
* }
|
|
328
|
+
* }
|
|
329
|
+
* },
|
|
330
|
+
* {
|
|
331
|
+
* "id": "10001",
|
|
332
|
+
* "key": "ED-25",
|
|
333
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10001"
|
|
334
|
+
* }
|
|
335
|
+
* ],
|
|
336
|
+
* "errors": []
|
|
337
|
+
* }
|
|
338
|
+
* @path {POST} /rest/api/3/issue/bulk
|
|
339
|
+
* @scopes-current write:jira-work
|
|
340
|
+
* @scopes-beta write:issue:jira, write:comment:jira, write:comment.property:jira,
|
|
341
|
+
* write:attachment:jira, read:issue:jira
|
|
342
|
+
*/
|
|
343
|
+
createIssues({ issuesUpdateBean, }) {
|
|
344
|
+
return this.getClientInstance()
|
|
345
|
+
.request({
|
|
346
|
+
path: "/rest/api/3/issue/bulk",
|
|
347
|
+
method: "POST",
|
|
348
|
+
headers: {
|
|
349
|
+
"Content-Type": "application/json",
|
|
350
|
+
},
|
|
351
|
+
body: issuesUpdateBean,
|
|
352
|
+
})
|
|
353
|
+
.then(this.getClientInstance().responseHandler({
|
|
354
|
+
201: {
|
|
355
|
+
"application/json": "json",
|
|
356
|
+
},
|
|
357
|
+
}))
|
|
358
|
+
.then(commonHttpClient.castResponse())
|
|
359
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.createIssues.response"))
|
|
360
|
+
.then(commonHttpClient.getBody);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Deletes an issue.
|
|
364
|
+
*
|
|
365
|
+
* An issue cannot be deleted if it has one or more subtasks. To delete an issue
|
|
366
|
+
* with subtasks, set `deleteSubtasks`. This causes the issue's subtasks to be
|
|
367
|
+
* deleted with the issue.
|
|
368
|
+
*
|
|
369
|
+
* This operation can be accessed anonymously.
|
|
370
|
+
*
|
|
371
|
+
* **[Permissions](#permissions) required:**
|
|
372
|
+
*
|
|
373
|
+
* * *Browse projects* and *Delete issues* [project
|
|
374
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for the project
|
|
375
|
+
* containing the issue.
|
|
376
|
+
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
377
|
+
* configured, issue-level security permission to view the issue.
|
|
378
|
+
*
|
|
379
|
+
* @path {DELETE} /rest/api/3/issue/{issueIdOrKey}
|
|
380
|
+
* @scopes-current write:jira-work
|
|
381
|
+
* @scopes-beta delete:issue:jira
|
|
382
|
+
*/
|
|
383
|
+
deleteIssue({ issueIdOrKey, deleteSubtasks, }) {
|
|
384
|
+
return this.getClientInstance()
|
|
385
|
+
.request({
|
|
386
|
+
path: "/rest/api/3/issue/{issueIdOrKey}",
|
|
387
|
+
method: "DELETE",
|
|
388
|
+
pathParams: {
|
|
389
|
+
issueIdOrKey,
|
|
390
|
+
},
|
|
391
|
+
query: {
|
|
392
|
+
deleteSubtasks,
|
|
393
|
+
},
|
|
394
|
+
})
|
|
395
|
+
.then(commonHttpClient.discardResult);
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Performs an issue transition and, if the transition has a screen, updates the
|
|
399
|
+
* fields from the transition screen.
|
|
400
|
+
*
|
|
401
|
+
* sortByCategory To update the fields on the transition screen, specify the
|
|
402
|
+
* fields in the `fields` or `update` parameters in the request body. Get details
|
|
403
|
+
* about the fields using [ Get
|
|
404
|
+
* transitions](#api-rest-api-3-issue-issueIdOrKey-transitions-get) with the
|
|
405
|
+
* `transitions.fields` expand.
|
|
406
|
+
*
|
|
407
|
+
* This operation can be accessed anonymously.
|
|
408
|
+
*
|
|
409
|
+
* **[Permissions](#permissions) required:**
|
|
410
|
+
*
|
|
411
|
+
* * *Browse projects* and *Transition issues* [project
|
|
412
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
|
|
413
|
+
* issue is in.
|
|
414
|
+
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
415
|
+
* configured, issue-level security permission to view the issue.
|
|
416
|
+
*
|
|
417
|
+
* @returns Returned if the request is successful.
|
|
418
|
+
* @path {POST} /rest/api/3/issue/{issueIdOrKey}/transitions
|
|
419
|
+
* @scopes-current write:jira-work
|
|
420
|
+
* @scopes-beta write:issue:jira, write:issue.property:jira
|
|
421
|
+
*/
|
|
422
|
+
doTransition({ issueIdOrKey, issueUpdateDetails, }) {
|
|
423
|
+
return this.getClientInstance()
|
|
424
|
+
.request({
|
|
425
|
+
path: "/rest/api/3/issue/{issueIdOrKey}/transitions",
|
|
426
|
+
method: "POST",
|
|
427
|
+
pathParams: {
|
|
428
|
+
issueIdOrKey,
|
|
429
|
+
},
|
|
430
|
+
headers: {
|
|
431
|
+
"Content-Type": "application/json",
|
|
432
|
+
},
|
|
433
|
+
body: issueUpdateDetails,
|
|
434
|
+
})
|
|
435
|
+
.then(this.getClientInstance().responseHandler({
|
|
436
|
+
204: {
|
|
437
|
+
"application/json": "json",
|
|
438
|
+
},
|
|
439
|
+
}))
|
|
440
|
+
.then(commonHttpClient.castResponse())
|
|
441
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.doTransition.response"))
|
|
442
|
+
.then(commonHttpClient.getBody);
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Edits an issue. Issue properties may be updated as part of the edit. Please
|
|
446
|
+
* note that issue transition will be ignored as it is not supported yet.
|
|
447
|
+
*
|
|
448
|
+
* The edits to the issue's fields are defined using `update` and `fields`. The
|
|
449
|
+
* fields that can be edited are determined using [ Get edit issue
|
|
450
|
+
* metadata](#api-rest-api-3-issue-issueIdOrKey-editmeta-get).
|
|
451
|
+
*
|
|
452
|
+
* The parent field may be set by key or ID. For standard issue types, the parent
|
|
453
|
+
* may be removed by setting `update.parent.set.none` to *true*. Note that the
|
|
454
|
+
* `description`, `environment`, and any `textarea` type custom fields (multi-line
|
|
455
|
+
* text fields) take Atlassian Document Format content. Single line custom fields
|
|
456
|
+
* (`textfield`) accept a string and don't handle Atlassian Document Format
|
|
457
|
+
* content.
|
|
458
|
+
*
|
|
459
|
+
* Connect apps having an app user with *Administer Jira* [global
|
|
460
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg), and Forge apps acting
|
|
461
|
+
* on behalf of users with *Administer Jira* [global
|
|
462
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg), can override the screen
|
|
463
|
+
* security configuration using `overrideScreenSecurity` and
|
|
464
|
+
* `overrideEditableFlag`.
|
|
465
|
+
*
|
|
466
|
+
* This operation can be accessed anonymously.
|
|
467
|
+
*
|
|
468
|
+
* **[Permissions](#permissions) required:**
|
|
469
|
+
*
|
|
470
|
+
* * *Browse projects* and *Edit issues* [project
|
|
471
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
|
|
472
|
+
* issue is in.
|
|
473
|
+
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
474
|
+
* configured, issue-level security permission to view the issue.
|
|
475
|
+
*
|
|
476
|
+
* @returns * status: 200, mediaType: application/json
|
|
477
|
+
*
|
|
478
|
+
* Returned if the request is successful and the `returnIssue` parameter is
|
|
479
|
+
* `true`
|
|
480
|
+
*
|
|
481
|
+
* * status: 204, mediaType: application/json
|
|
482
|
+
*
|
|
483
|
+
* Returned if the request is successful.
|
|
484
|
+
* @path {PUT} /rest/api/3/issue/{issueIdOrKey}
|
|
485
|
+
* @scopes-current write:jira-work
|
|
486
|
+
* @scopes-beta write:issue:jira
|
|
487
|
+
*/
|
|
488
|
+
editIssue({ issueIdOrKey, notifyUsers, overrideScreenSecurity, overrideEditableFlag, returnIssue, expand, issueUpdateDetails, }) {
|
|
489
|
+
return this.getClientInstance()
|
|
490
|
+
.request({
|
|
491
|
+
path: "/rest/api/3/issue/{issueIdOrKey}",
|
|
492
|
+
method: "PUT",
|
|
493
|
+
pathParams: {
|
|
494
|
+
issueIdOrKey,
|
|
495
|
+
},
|
|
496
|
+
query: {
|
|
497
|
+
notifyUsers,
|
|
498
|
+
overrideScreenSecurity,
|
|
499
|
+
overrideEditableFlag,
|
|
500
|
+
returnIssue,
|
|
501
|
+
expand,
|
|
502
|
+
},
|
|
503
|
+
headers: {
|
|
504
|
+
"Content-Type": "application/json",
|
|
505
|
+
},
|
|
506
|
+
body: issueUpdateDetails,
|
|
507
|
+
})
|
|
508
|
+
.then(this.getClientInstance().responseHandler({
|
|
509
|
+
200: {
|
|
510
|
+
"application/json": "json",
|
|
511
|
+
},
|
|
512
|
+
204: {
|
|
513
|
+
"application/json": "json",
|
|
514
|
+
},
|
|
515
|
+
}))
|
|
516
|
+
.then(commonHttpClient.castResponse())
|
|
517
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.editIssue.response"));
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Enables admins to retrieve details of all archived issues. Upon a successful
|
|
521
|
+
* request, the admin who submitted it will receive an email with a link to
|
|
522
|
+
* download a CSV file with the issue details.
|
|
523
|
+
*
|
|
524
|
+
* Note that this API only exports the values of system fields and
|
|
525
|
+
* archival-specific fields (`ArchivedBy` and `ArchivedDate`). Custom fields
|
|
526
|
+
* aren't supported.
|
|
527
|
+
*
|
|
528
|
+
* **[Permissions](#permissions) required:** Jira admin or site admin: [global
|
|
529
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg)
|
|
530
|
+
*
|
|
531
|
+
* **License required:** Premium or Enterprise
|
|
532
|
+
*
|
|
533
|
+
* **Signed-in users only:** This API can't be accessed anonymously.
|
|
534
|
+
*
|
|
535
|
+
* **Rate limiting:** Only a single request can be active at any given time.
|
|
536
|
+
*
|
|
537
|
+
* @returns Returns the details of your export task. You can use the [get
|
|
538
|
+
* task](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-tasks/#api-rest-api-3-task-taskid-get)
|
|
539
|
+
* API to view the progress of your request.
|
|
540
|
+
*
|
|
541
|
+
* example: {
|
|
542
|
+
* "payload": "{projects=[FOO, BAR], reporters=[uuid-rep-001, uuid-rep-002],
|
|
543
|
+
* issueTypes=[10001, 10002], archivedDate={dateAfterInstant=2023-01-01,
|
|
544
|
+
* dateBeforeInstant=2023-01-12}, archivedBy=[uuid-rep-001, uuid-rep-002]}",
|
|
545
|
+
* "progress": 0,
|
|
546
|
+
* "status": "ENQUEUED",
|
|
547
|
+
* "submittedTime": 1623230887000,
|
|
548
|
+
* "taskId": "10990"
|
|
549
|
+
* }
|
|
550
|
+
* @path {PUT} /rest/api/3/issues/archive/export
|
|
551
|
+
* @scopes-current read:jira-work
|
|
552
|
+
* @scopes-beta read:issue:jira
|
|
553
|
+
*/
|
|
554
|
+
exportArchivedIssues({ archivedIssuesFilterRequest, }) {
|
|
555
|
+
return this.getClientInstance()
|
|
556
|
+
.request({
|
|
557
|
+
path: "/rest/api/3/issues/archive/export",
|
|
558
|
+
method: "PUT",
|
|
559
|
+
headers: {
|
|
560
|
+
"Content-Type": "application/json",
|
|
561
|
+
},
|
|
562
|
+
body: archivedIssuesFilterRequest,
|
|
563
|
+
})
|
|
564
|
+
.then(this.getClientInstance().responseHandler({
|
|
565
|
+
202: {
|
|
566
|
+
"application/json": "json",
|
|
567
|
+
},
|
|
568
|
+
}))
|
|
569
|
+
.then(commonHttpClient.castResponse())
|
|
570
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.exportArchivedIssues.response"))
|
|
571
|
+
.then(commonHttpClient.getBody);
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Returns a [paginated](#pagination) list of all changelogs for an issue sorted
|
|
575
|
+
* by date, starting from the oldest.
|
|
576
|
+
*
|
|
577
|
+
* This operation can be accessed anonymously.
|
|
578
|
+
*
|
|
579
|
+
* **[Permissions](#permissions) required:**
|
|
580
|
+
*
|
|
581
|
+
* * *Browse projects* [project
|
|
582
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
|
|
583
|
+
* issue is in.
|
|
584
|
+
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
585
|
+
* configured, issue-level security permission to view the issue.
|
|
586
|
+
*
|
|
587
|
+
* @returns Returned if the request is successful.
|
|
588
|
+
*
|
|
589
|
+
* example: {
|
|
590
|
+
* "isLast": false,
|
|
591
|
+
* "maxResults": 2,
|
|
592
|
+
* "nextPage":
|
|
593
|
+
* "https://your-domain.atlassian.net/rest/api/3/issue/TT-1/changelog?&startAt=4&maxResults=2",
|
|
594
|
+
* "self":
|
|
595
|
+
* "https://your-domain.atlassian.net/rest/api/3/issue/TT-1/changelog?startAt=2&maxResults=2",
|
|
596
|
+
* "startAt": 2,
|
|
597
|
+
* "total": 5,
|
|
598
|
+
* "values": [
|
|
599
|
+
* {
|
|
600
|
+
* "author": {
|
|
601
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
602
|
+
* "active": true,
|
|
603
|
+
* "avatarUrls": {
|
|
604
|
+
* "16x16":
|
|
605
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
606
|
+
* "24x24":
|
|
607
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
608
|
+
* "32x32":
|
|
609
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
610
|
+
* "48x48":
|
|
611
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
612
|
+
* },
|
|
613
|
+
* "displayName": "Mia Krystof",
|
|
614
|
+
* "emailAddress": "mia@example.com",
|
|
615
|
+
* "self":
|
|
616
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
|
|
617
|
+
* "timeZone": "Australia/Sydney"
|
|
618
|
+
* },
|
|
619
|
+
* "created": "1970-01-18T06:27:50.429+0000",
|
|
620
|
+
* "id": "10001",
|
|
621
|
+
* "items": [
|
|
622
|
+
* {
|
|
623
|
+
* "field": "fields",
|
|
624
|
+
* "fieldtype": "jira",
|
|
625
|
+
* "fieldId": "fieldId",
|
|
626
|
+
* "from": null,
|
|
627
|
+
* "fromString": "",
|
|
628
|
+
* "to": null,
|
|
629
|
+
* "toString": "label-1"
|
|
630
|
+
* }
|
|
631
|
+
* ]
|
|
632
|
+
* },
|
|
633
|
+
* {
|
|
634
|
+
* "author": {
|
|
635
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
636
|
+
* "active": true,
|
|
637
|
+
* "avatarUrls": {
|
|
638
|
+
* "16x16":
|
|
639
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
640
|
+
* "24x24":
|
|
641
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
642
|
+
* "32x32":
|
|
643
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
644
|
+
* "48x48":
|
|
645
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
646
|
+
* },
|
|
647
|
+
* "displayName": "Mia Krystof",
|
|
648
|
+
* "emailAddress": "mia@example.com",
|
|
649
|
+
* "self":
|
|
650
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
|
|
651
|
+
* "timeZone": "Australia/Sydney"
|
|
652
|
+
* },
|
|
653
|
+
* "created": "1970-01-18T06:27:51.429+0000",
|
|
654
|
+
* "id": "10002",
|
|
655
|
+
* "items": [
|
|
656
|
+
* {
|
|
657
|
+
* "field": "fields",
|
|
658
|
+
* "fieldtype": "jira",
|
|
659
|
+
* "fieldId": "fieldId",
|
|
660
|
+
* "from": null,
|
|
661
|
+
* "fromString": "label-1",
|
|
662
|
+
* "to": null,
|
|
663
|
+
* "toString": "label-1 label-2"
|
|
664
|
+
* }
|
|
665
|
+
* ]
|
|
666
|
+
* }
|
|
667
|
+
* ]
|
|
668
|
+
* }
|
|
669
|
+
* @path {GET} /rest/api/3/issue/{issueIdOrKey}/changelog
|
|
670
|
+
* @scopes-current read:jira-work
|
|
671
|
+
* @scopes-beta read:issue-meta:jira, read:avatar:jira, read:issue.changelog:jira
|
|
672
|
+
*/
|
|
673
|
+
getChangeLogs({ issueIdOrKey, startAt, maxResults, }) {
|
|
674
|
+
return this.getClientInstance()
|
|
675
|
+
.request({
|
|
676
|
+
path: "/rest/api/3/issue/{issueIdOrKey}/changelog",
|
|
677
|
+
method: "GET",
|
|
678
|
+
pathParams: {
|
|
679
|
+
issueIdOrKey,
|
|
680
|
+
},
|
|
681
|
+
query: {
|
|
682
|
+
startAt,
|
|
683
|
+
maxResults,
|
|
684
|
+
},
|
|
685
|
+
})
|
|
686
|
+
.then(this.getClientInstance().responseHandler({
|
|
687
|
+
200: {
|
|
688
|
+
"application/json": "json",
|
|
689
|
+
},
|
|
690
|
+
}))
|
|
691
|
+
.then(commonHttpClient.castResponse())
|
|
692
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.getChangeLogs.response"))
|
|
693
|
+
.then(commonHttpClient.getBody);
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* Returns changelogs for an issue specified by a list of changelog IDs.
|
|
697
|
+
*
|
|
698
|
+
* This operation can be accessed anonymously.
|
|
699
|
+
*
|
|
700
|
+
* **[Permissions](#permissions) required:**
|
|
701
|
+
*
|
|
702
|
+
* * *Browse projects* [project
|
|
703
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
|
|
704
|
+
* issue is in.
|
|
705
|
+
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
706
|
+
* configured, issue-level security permission to view the issue.
|
|
707
|
+
*
|
|
708
|
+
* @returns Returned if the request is successful.
|
|
709
|
+
*
|
|
710
|
+
* example: {
|
|
711
|
+
* "histories": [
|
|
712
|
+
* {
|
|
713
|
+
* "author": {
|
|
714
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
715
|
+
* "active": true,
|
|
716
|
+
* "avatarUrls": {
|
|
717
|
+
* "16x16":
|
|
718
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
719
|
+
* "24x24":
|
|
720
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
721
|
+
* "32x32":
|
|
722
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
723
|
+
* "48x48":
|
|
724
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
725
|
+
* },
|
|
726
|
+
* "displayName": "Mia Krystof",
|
|
727
|
+
* "emailAddress": "mia@example.com",
|
|
728
|
+
* "self":
|
|
729
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
|
|
730
|
+
* "timeZone": "Australia/Sydney"
|
|
731
|
+
* },
|
|
732
|
+
* "created": "1970-01-18T06:27:50.429+0000",
|
|
733
|
+
* "id": "10001",
|
|
734
|
+
* "items": [
|
|
735
|
+
* {
|
|
736
|
+
* "field": "fields",
|
|
737
|
+
* "fieldtype": "jira",
|
|
738
|
+
* "fieldId": "fieldId",
|
|
739
|
+
* "from": null,
|
|
740
|
+
* "fromString": "",
|
|
741
|
+
* "to": null,
|
|
742
|
+
* "toString": "label-1"
|
|
743
|
+
* }
|
|
744
|
+
* ]
|
|
745
|
+
* },
|
|
746
|
+
* {
|
|
747
|
+
* "author": {
|
|
748
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
749
|
+
* "active": true,
|
|
750
|
+
* "avatarUrls": {
|
|
751
|
+
* "16x16":
|
|
752
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
753
|
+
* "24x24":
|
|
754
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
755
|
+
* "32x32":
|
|
756
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
757
|
+
* "48x48":
|
|
758
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
759
|
+
* },
|
|
760
|
+
* "displayName": "Mia Krystof",
|
|
761
|
+
* "emailAddress": "mia@example.com",
|
|
762
|
+
* "self":
|
|
763
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
|
|
764
|
+
* "timeZone": "Australia/Sydney"
|
|
765
|
+
* },
|
|
766
|
+
* "created": "1970-01-18T06:27:51.429+0000",
|
|
767
|
+
* "id": "10002",
|
|
768
|
+
* "items": [
|
|
769
|
+
* {
|
|
770
|
+
* "field": "fields",
|
|
771
|
+
* "fieldtype": "jira",
|
|
772
|
+
* "fieldId": "fieldId",
|
|
773
|
+
* "from": null,
|
|
774
|
+
* "fromString": "label-1",
|
|
775
|
+
* "to": null,
|
|
776
|
+
* "toString": "label-1 label-2"
|
|
777
|
+
* }
|
|
778
|
+
* ]
|
|
779
|
+
* }
|
|
780
|
+
* ],
|
|
781
|
+
* "maxResults": 2,
|
|
782
|
+
* "startAt": 0,
|
|
783
|
+
* "total": 2
|
|
784
|
+
* }
|
|
785
|
+
* @path {POST} /rest/api/3/issue/{issueIdOrKey}/changelog/list
|
|
786
|
+
* @scopes-current read:jira-work
|
|
787
|
+
* @scopes-beta read:issue-meta:jira, read:avatar:jira, read:issue.changelog:jira
|
|
788
|
+
*/
|
|
789
|
+
getChangeLogsByIds({ issueIdOrKey, issueChangelogIds, }) {
|
|
790
|
+
return this.getClientInstance()
|
|
791
|
+
.request({
|
|
792
|
+
path: "/rest/api/3/issue/{issueIdOrKey}/changelog/list",
|
|
793
|
+
method: "POST",
|
|
794
|
+
pathParams: {
|
|
795
|
+
issueIdOrKey,
|
|
796
|
+
},
|
|
797
|
+
headers: {
|
|
798
|
+
"Content-Type": "application/json",
|
|
799
|
+
},
|
|
800
|
+
body: issueChangelogIds,
|
|
801
|
+
})
|
|
802
|
+
.then(this.getClientInstance().responseHandler({
|
|
803
|
+
200: {
|
|
804
|
+
"application/json": "json",
|
|
805
|
+
},
|
|
806
|
+
}))
|
|
807
|
+
.then(commonHttpClient.castResponse())
|
|
808
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.getChangeLogsByIds.response"))
|
|
809
|
+
.then(commonHttpClient.getBody);
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* Returns details of projects, issue types within projects, and, when requested,
|
|
813
|
+
* the create screen fields for each issue type for the user. Use the information
|
|
814
|
+
* to populate the requests in [ Create issue](#api-rest-api-3-issue-post) and
|
|
815
|
+
* [Create issues](#api-rest-api-3-issue-bulk-post).
|
|
816
|
+
*
|
|
817
|
+
* Deprecated, see [Create Issue Meta Endpoint Deprecation
|
|
818
|
+
* Notice](https://developer.atlassian.com/cloud/jira/platform/changelog/#CHANGE-1304).
|
|
819
|
+
*
|
|
820
|
+
* The request can be restricted to specific projects or issue types using the
|
|
821
|
+
* query parameters. The response will contain information for the valid projects,
|
|
822
|
+
* issue types, or project and issue type combinations requested. Note that
|
|
823
|
+
* invalid project, issue type, or project and issue type combinations do not
|
|
824
|
+
* generate errors.
|
|
825
|
+
*
|
|
826
|
+
* This operation can be accessed anonymously.
|
|
827
|
+
*
|
|
828
|
+
* **[Permissions](#permissions) required:** *Create issues* [project
|
|
829
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) in the requested
|
|
830
|
+
* projects.
|
|
831
|
+
*
|
|
832
|
+
* @deprecated
|
|
833
|
+
* @returns Returned if the request is successful.
|
|
834
|
+
*
|
|
835
|
+
* example: {
|
|
836
|
+
* "projects": [
|
|
837
|
+
* {
|
|
838
|
+
* "avatarUrls": {
|
|
839
|
+
* "16x16":
|
|
840
|
+
* "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000&avatarId=10011",
|
|
841
|
+
* "24x24":
|
|
842
|
+
* "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000&avatarId=10011",
|
|
843
|
+
* "32x32":
|
|
844
|
+
* "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000&avatarId=10011",
|
|
845
|
+
* "48x48":
|
|
846
|
+
* "https://your-domain.atlassian.net/secure/projectavatar?pid=10000&avatarId=10011"
|
|
847
|
+
* },
|
|
848
|
+
* "id": "10000",
|
|
849
|
+
* "issuetypes": [
|
|
850
|
+
* {
|
|
851
|
+
* "description": "An error in the code",
|
|
852
|
+
* "fields": {
|
|
853
|
+
* "issuetype": {
|
|
854
|
+
* "allowedValues": [
|
|
855
|
+
* "set"
|
|
856
|
+
* ],
|
|
857
|
+
* "autoCompleteUrl": "issuetype",
|
|
858
|
+
* "hasDefaultValue": false,
|
|
859
|
+
* "key": "issuetype",
|
|
860
|
+
* "name": "Issue Type",
|
|
861
|
+
* "required": true
|
|
862
|
+
* }
|
|
863
|
+
* },
|
|
864
|
+
* "iconUrl":
|
|
865
|
+
* "https://your-domain.atlassian.net/images/icons/issuetypes/bug.png",
|
|
866
|
+
* "id": "1",
|
|
867
|
+
* "name": "Bug",
|
|
868
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
|
|
869
|
+
* "subtask": false
|
|
870
|
+
* }
|
|
871
|
+
* ],
|
|
872
|
+
* "key": "ED",
|
|
873
|
+
* "name": "Edison Project",
|
|
874
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/project/ED"
|
|
875
|
+
* }
|
|
876
|
+
* ]
|
|
877
|
+
* }
|
|
878
|
+
* @path {GET} /rest/api/3/issue/createmeta
|
|
879
|
+
* @scopes-current read:jira-work
|
|
880
|
+
* @scopes-beta read:issue-meta:jira, read:avatar:jira, read:field-configuration:jira
|
|
881
|
+
*/
|
|
882
|
+
getCreateIssueMeta({ projectIds, projectKeys, issuetypeIds, issuetypeNames, expand, }) {
|
|
883
|
+
return this.getClientInstance()
|
|
884
|
+
.request({
|
|
885
|
+
path: "/rest/api/3/issue/createmeta",
|
|
886
|
+
method: "GET",
|
|
887
|
+
query: {
|
|
888
|
+
projectIds,
|
|
889
|
+
projectKeys,
|
|
890
|
+
issuetypeIds,
|
|
891
|
+
issuetypeNames,
|
|
892
|
+
expand,
|
|
893
|
+
},
|
|
894
|
+
})
|
|
895
|
+
.then(this.getClientInstance().responseHandler({
|
|
896
|
+
200: {
|
|
897
|
+
"application/json": "json",
|
|
898
|
+
},
|
|
899
|
+
}))
|
|
900
|
+
.then(commonHttpClient.castResponse())
|
|
901
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.getCreateIssueMeta.response"))
|
|
902
|
+
.then(commonHttpClient.getBody);
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* Returns a page of field metadata for a specified project and issuetype id. Use
|
|
906
|
+
* the information to populate the requests in [ Create
|
|
907
|
+
* issue](#api-rest-api-3-issue-post) and [Create
|
|
908
|
+
* issues](#api-rest-api-3-issue-bulk-post).
|
|
909
|
+
*
|
|
910
|
+
* This operation can be accessed anonymously.
|
|
911
|
+
*
|
|
912
|
+
* **[Permissions](#permissions) required:** *Create issues* [project
|
|
913
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) in the requested
|
|
914
|
+
* projects.
|
|
915
|
+
*
|
|
916
|
+
* @returns Returned if the request is successful.
|
|
917
|
+
*
|
|
918
|
+
* example: {
|
|
919
|
+
* "fields": [
|
|
920
|
+
* {
|
|
921
|
+
* "fieldId": "assignee",
|
|
922
|
+
* "hasDefaultValue": false,
|
|
923
|
+
* "key": "assignee",
|
|
924
|
+
* "name": "Assignee",
|
|
925
|
+
* "operations": [
|
|
926
|
+
* "set"
|
|
927
|
+
* ],
|
|
928
|
+
* "required": true
|
|
929
|
+
* }
|
|
930
|
+
* ],
|
|
931
|
+
* "maxResults": 1,
|
|
932
|
+
* "startAt": 0,
|
|
933
|
+
* "total": 1
|
|
934
|
+
* }
|
|
935
|
+
* @path {GET} /rest/api/3/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}
|
|
936
|
+
* @scopes-current read:jira-work
|
|
937
|
+
* @scopes-beta read:issue-meta:jira, read:avatar:jira, read:field-configuration:jira
|
|
938
|
+
*/
|
|
939
|
+
getCreateIssueMetaIssueTypeId({ projectIdOrKey, issueTypeId, startAt, maxResults, }) {
|
|
940
|
+
return this.getClientInstance()
|
|
941
|
+
.request({
|
|
942
|
+
path: "/rest/api/3/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}",
|
|
943
|
+
method: "GET",
|
|
944
|
+
pathParams: {
|
|
945
|
+
projectIdOrKey,
|
|
946
|
+
issueTypeId,
|
|
947
|
+
},
|
|
948
|
+
query: {
|
|
949
|
+
startAt,
|
|
950
|
+
maxResults,
|
|
951
|
+
},
|
|
952
|
+
})
|
|
953
|
+
.then(this.getClientInstance().responseHandler({
|
|
954
|
+
200: {
|
|
955
|
+
"application/json": "json",
|
|
956
|
+
},
|
|
957
|
+
}))
|
|
958
|
+
.then(commonHttpClient.castResponse())
|
|
959
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.getCreateIssueMetaIssueTypeId.response"))
|
|
960
|
+
.then(commonHttpClient.getBody);
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* Returns a page of issue type metadata for a specified project. Use the
|
|
964
|
+
* information to populate the requests in [ Create
|
|
965
|
+
* issue](#api-rest-api-3-issue-post) and [Create
|
|
966
|
+
* issues](#api-rest-api-3-issue-bulk-post).
|
|
967
|
+
*
|
|
968
|
+
* This operation can be accessed anonymously.
|
|
969
|
+
*
|
|
970
|
+
* **[Permissions](#permissions) required:** *Create issues* [project
|
|
971
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) in the requested
|
|
972
|
+
* projects.
|
|
973
|
+
*
|
|
974
|
+
* @returns Returned if the request is successful.
|
|
975
|
+
*
|
|
976
|
+
* example: {
|
|
977
|
+
* "issueTypes": [
|
|
978
|
+
* {
|
|
979
|
+
* "description": "An error in the code",
|
|
980
|
+
* "iconUrl":
|
|
981
|
+
* "https://your-domain.atlassian.net/images/icons/issuetypes/bug.png",
|
|
982
|
+
* "id": "1",
|
|
983
|
+
* "name": "Bug",
|
|
984
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
|
|
985
|
+
* "subtask": false
|
|
986
|
+
* }
|
|
987
|
+
* ],
|
|
988
|
+
* "maxResults": 1,
|
|
989
|
+
* "startAt": 0,
|
|
990
|
+
* "total": 1
|
|
991
|
+
* }
|
|
992
|
+
* @path {GET} /rest/api/3/issue/createmeta/{projectIdOrKey}/issuetypes
|
|
993
|
+
* @scopes-current read:jira-work
|
|
994
|
+
* @scopes-beta read:issue-meta:jira, read:avatar:jira, read:field-configuration:jira
|
|
995
|
+
*/
|
|
996
|
+
getCreateIssueMetaIssueTypes({ projectIdOrKey, startAt, maxResults, }) {
|
|
997
|
+
return this.getClientInstance()
|
|
998
|
+
.request({
|
|
999
|
+
path: "/rest/api/3/issue/createmeta/{projectIdOrKey}/issuetypes",
|
|
1000
|
+
method: "GET",
|
|
1001
|
+
pathParams: {
|
|
1002
|
+
projectIdOrKey,
|
|
1003
|
+
},
|
|
1004
|
+
query: {
|
|
1005
|
+
startAt,
|
|
1006
|
+
maxResults,
|
|
1007
|
+
},
|
|
1008
|
+
})
|
|
1009
|
+
.then(this.getClientInstance().responseHandler({
|
|
1010
|
+
200: {
|
|
1011
|
+
"application/json": "json",
|
|
1012
|
+
},
|
|
1013
|
+
}))
|
|
1014
|
+
.then(commonHttpClient.castResponse())
|
|
1015
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.getCreateIssueMetaIssueTypes.response"))
|
|
1016
|
+
.then(commonHttpClient.getBody);
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* Returns the edit screen fields for an issue that are visible to and editable by
|
|
1020
|
+
* the user. Use the information to populate the requests in [Edit
|
|
1021
|
+
* issue](#api-rest-api-3-issue-issueIdOrKey-put).
|
|
1022
|
+
*
|
|
1023
|
+
* This endpoint will check for these conditions:
|
|
1024
|
+
*
|
|
1025
|
+
* 1. Field is available on a field screen - through screen, screen scheme, issue
|
|
1026
|
+
* type screen scheme, and issue type scheme configuration.
|
|
1027
|
+
* `overrideScreenSecurity=true` skips this condition.
|
|
1028
|
+
* 2. Field is visible in the [field
|
|
1029
|
+
* configuration](https://support.atlassian.com/jira-cloud-administration/docs/change-a-field-configuration/).
|
|
1030
|
+
* `overrideScreenSecurity=true` skips this condition.
|
|
1031
|
+
* 3. Field is shown on the issue: each field has different conditions here. For
|
|
1032
|
+
* example: Attachment field only shows if attachments are enabled. Assignee only
|
|
1033
|
+
* shows if user has permissions to assign the issue.
|
|
1034
|
+
* 4. If a field is custom then it must have valid custom field context,
|
|
1035
|
+
* applicable for its project and issue type. All system fields are assumed to
|
|
1036
|
+
* have context in all projects and all issue types.
|
|
1037
|
+
* 5. Issue has a project, issue type, and status defined.
|
|
1038
|
+
* 6. Issue is assigned to a valid workflow, and the current status has assigned
|
|
1039
|
+
* a workflow step. `overrideEditableFlag=true` skips this condition.
|
|
1040
|
+
* 7. The current workflow step is editable. This is true by default, but [can be
|
|
1041
|
+
* disabled by
|
|
1042
|
+
* setting](https://support.atlassian.com/jira-cloud-administration/docs/use-workflow-properties/)
|
|
1043
|
+
* the `jira.issue.editable` property to `false`. `overrideEditableFlag=true`
|
|
1044
|
+
* skips this condition.
|
|
1045
|
+
* 8. User has [Edit issues
|
|
1046
|
+
* permission](https://support.atlassian.com/jira-cloud-administration/docs/permissions-for-company-managed-projects/).
|
|
1047
|
+
* 9. Workflow permissions allow editing a field. This is true by default but
|
|
1048
|
+
* [can be
|
|
1049
|
+
* modified](https://support.atlassian.com/jira-cloud-administration/docs/use-workflow-properties/)
|
|
1050
|
+
* using `jira.permission.*` workflow properties.
|
|
1051
|
+
*
|
|
1052
|
+
* Fields hidden using [Issue layout settings
|
|
1053
|
+
* page](https://support.atlassian.com/jira-software-cloud/docs/configure-field-layout-in-the-issue-view/)
|
|
1054
|
+
* remain editable.
|
|
1055
|
+
*
|
|
1056
|
+
* Connect apps having an app user with *Administer Jira* [global
|
|
1057
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg), and Forge apps acting
|
|
1058
|
+
* on behalf of users with *Administer Jira* [global
|
|
1059
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg), can return additional
|
|
1060
|
+
* details using:
|
|
1061
|
+
*
|
|
1062
|
+
* * `overrideScreenSecurity` When this flag is `true`, then this endpoint skips
|
|
1063
|
+
* checking if fields are available through screens, and field configuration
|
|
1064
|
+
* (conditions 1. and 2. from the list above).
|
|
1065
|
+
* * `overrideEditableFlag` When this flag is `true`, then this endpoint skips
|
|
1066
|
+
* checking if workflow is present and if the current step is editable (conditions
|
|
1067
|
+
* 6. and 7. from the list above).
|
|
1068
|
+
*
|
|
1069
|
+
* This operation can be accessed anonymously.
|
|
1070
|
+
*
|
|
1071
|
+
* **[Permissions](#permissions) required:**
|
|
1072
|
+
*
|
|
1073
|
+
* * *Browse projects* [project
|
|
1074
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
|
|
1075
|
+
* issue is in.
|
|
1076
|
+
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
1077
|
+
* configured, issue-level security permission to view the issue.
|
|
1078
|
+
*
|
|
1079
|
+
* Note: For any fields to be editable the user must have the *Edit issues*
|
|
1080
|
+
* [project permission](https://confluence.atlassian.com/x/yodKLg) for the issue.
|
|
1081
|
+
*
|
|
1082
|
+
* @returns Returned if the request is successful.
|
|
1083
|
+
*
|
|
1084
|
+
* example: {
|
|
1085
|
+
* "fields": {
|
|
1086
|
+
* "summary": {
|
|
1087
|
+
* "allowedValues": [
|
|
1088
|
+
* "red",
|
|
1089
|
+
* "blue"
|
|
1090
|
+
* ],
|
|
1091
|
+
* "defaultValue": "red",
|
|
1092
|
+
* "hasDefaultValue": false,
|
|
1093
|
+
* "key": "field_key",
|
|
1094
|
+
* "name": "My Multi Select",
|
|
1095
|
+
* "operations": [
|
|
1096
|
+
* "set",
|
|
1097
|
+
* "add"
|
|
1098
|
+
* ],
|
|
1099
|
+
* "required": false,
|
|
1100
|
+
* "schema": {
|
|
1101
|
+
* "custom":
|
|
1102
|
+
* "com.atlassian.jira.plugin.system.customfieldtypes:multiselect",
|
|
1103
|
+
* "customId": 10001,
|
|
1104
|
+
* "items": "option",
|
|
1105
|
+
* "type": "array"
|
|
1106
|
+
* }
|
|
1107
|
+
* }
|
|
1108
|
+
* }
|
|
1109
|
+
* }
|
|
1110
|
+
* @path {GET} /rest/api/3/issue/{issueIdOrKey}/editmeta
|
|
1111
|
+
* @scopes-current read:jira-work
|
|
1112
|
+
* @scopes-beta read:issue-meta:jira, read:field-configuration:jira
|
|
1113
|
+
*/
|
|
1114
|
+
getEditIssueMeta({ issueIdOrKey, overrideScreenSecurity, overrideEditableFlag, }) {
|
|
1115
|
+
return this.getClientInstance()
|
|
1116
|
+
.request({
|
|
1117
|
+
path: "/rest/api/3/issue/{issueIdOrKey}/editmeta",
|
|
1118
|
+
method: "GET",
|
|
1119
|
+
pathParams: {
|
|
1120
|
+
issueIdOrKey,
|
|
1121
|
+
},
|
|
1122
|
+
query: {
|
|
1123
|
+
overrideScreenSecurity,
|
|
1124
|
+
overrideEditableFlag,
|
|
1125
|
+
},
|
|
1126
|
+
})
|
|
1127
|
+
.then(this.getClientInstance().responseHandler({
|
|
1128
|
+
200: {
|
|
1129
|
+
"application/json": "json",
|
|
1130
|
+
},
|
|
1131
|
+
}))
|
|
1132
|
+
.then(commonHttpClient.castResponse())
|
|
1133
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.getEditIssueMeta.response"))
|
|
1134
|
+
.then(commonHttpClient.getBody);
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* Returns all issue events.
|
|
1138
|
+
*
|
|
1139
|
+
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
1140
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
1141
|
+
*
|
|
1142
|
+
* @returns Returned if the request is successful.
|
|
1143
|
+
*
|
|
1144
|
+
* example: [
|
|
1145
|
+
* {
|
|
1146
|
+
* "id": 1,
|
|
1147
|
+
* "name": "Issue Created"
|
|
1148
|
+
* },
|
|
1149
|
+
* {
|
|
1150
|
+
* "id": 2,
|
|
1151
|
+
* "name": "Issue Updated"
|
|
1152
|
+
* }
|
|
1153
|
+
* ]
|
|
1154
|
+
* @path {GET} /rest/api/3/events
|
|
1155
|
+
* @scopes-current manage:jira-configuration
|
|
1156
|
+
* @scopes-beta read:issue-event:jira
|
|
1157
|
+
*/
|
|
1158
|
+
getEvents() {
|
|
1159
|
+
return this.getClientInstance()
|
|
1160
|
+
.request({
|
|
1161
|
+
path: "/rest/api/3/events",
|
|
1162
|
+
method: "GET",
|
|
1163
|
+
})
|
|
1164
|
+
.then(this.getClientInstance().responseHandler({
|
|
1165
|
+
200: {
|
|
1166
|
+
"application/json": "json",
|
|
1167
|
+
},
|
|
1168
|
+
}))
|
|
1169
|
+
.then(commonHttpClient.castResponse())
|
|
1170
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.getEvents.response"))
|
|
1171
|
+
.then(commonHttpClient.getBody);
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Returns the details for an issue.
|
|
1175
|
+
*
|
|
1176
|
+
* The issue is identified by its ID or key, however, if the identifier doesn't
|
|
1177
|
+
* match an issue, a case-insensitive search and check for moved issues is
|
|
1178
|
+
* performed. If a matching issue is found its details are returned, a 302 or
|
|
1179
|
+
* other redirect is **not** returned. The issue key returned in the response is
|
|
1180
|
+
* the key of the issue found.
|
|
1181
|
+
*
|
|
1182
|
+
* This operation can be accessed anonymously.
|
|
1183
|
+
*
|
|
1184
|
+
* **[Permissions](#permissions) required:**
|
|
1185
|
+
*
|
|
1186
|
+
* * *Browse projects* [project
|
|
1187
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
|
|
1188
|
+
* issue is in.
|
|
1189
|
+
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
1190
|
+
* configured, issue-level security permission to view the issue.
|
|
1191
|
+
*
|
|
1192
|
+
* @returns Returned if the request is successful.
|
|
1193
|
+
*
|
|
1194
|
+
* example: {
|
|
1195
|
+
* "fields": {
|
|
1196
|
+
* "watcher": {
|
|
1197
|
+
* "isWatching": false,
|
|
1198
|
+
* "self":
|
|
1199
|
+
* "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
|
|
1200
|
+
* "watchCount": 1,
|
|
1201
|
+
* "watchers": [
|
|
1202
|
+
* {
|
|
1203
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1204
|
+
* "active": false,
|
|
1205
|
+
* "displayName": "Mia Krystof",
|
|
1206
|
+
* "self":
|
|
1207
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1208
|
+
* }
|
|
1209
|
+
* ]
|
|
1210
|
+
* },
|
|
1211
|
+
* "attachment": [
|
|
1212
|
+
* {
|
|
1213
|
+
* "author": {
|
|
1214
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1215
|
+
* "accountType": "atlassian",
|
|
1216
|
+
* "active": false,
|
|
1217
|
+
* "avatarUrls": {
|
|
1218
|
+
* "16x16":
|
|
1219
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
1220
|
+
* "24x24":
|
|
1221
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
1222
|
+
* "32x32":
|
|
1223
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
1224
|
+
* "48x48":
|
|
1225
|
+
* "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
1226
|
+
* },
|
|
1227
|
+
* "displayName": "Mia Krystof",
|
|
1228
|
+
* "key": "",
|
|
1229
|
+
* "name": "",
|
|
1230
|
+
* "self":
|
|
1231
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1232
|
+
* },
|
|
1233
|
+
* "content":
|
|
1234
|
+
* "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10000",
|
|
1235
|
+
* "created": "2022-10-06T07:32:47.000+0000",
|
|
1236
|
+
* "filename": "picture.jpg",
|
|
1237
|
+
* "id": 10000,
|
|
1238
|
+
* "mimeType": "image/jpeg",
|
|
1239
|
+
* "self":
|
|
1240
|
+
* "https://your-domain.atlassian.net/rest/api/3/attachments/10000",
|
|
1241
|
+
* "size": 23123,
|
|
1242
|
+
* "thumbnail":
|
|
1243
|
+
* "https://your-domain.atlassian.net/jira/rest/api/3/attachment/thumbnail/10000"
|
|
1244
|
+
* }
|
|
1245
|
+
* ],
|
|
1246
|
+
* "sub-tasks": [
|
|
1247
|
+
* {
|
|
1248
|
+
* "id": "10000",
|
|
1249
|
+
* "outwardIssue": {
|
|
1250
|
+
* "fields": {
|
|
1251
|
+
* "status": {
|
|
1252
|
+
* "iconUrl":
|
|
1253
|
+
* "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
1254
|
+
* "name": "Open"
|
|
1255
|
+
* }
|
|
1256
|
+
* },
|
|
1257
|
+
* "id": "10003",
|
|
1258
|
+
* "key": "ED-2",
|
|
1259
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/ED-2"
|
|
1260
|
+
* },
|
|
1261
|
+
* "type": {
|
|
1262
|
+
* "id": "10000",
|
|
1263
|
+
* "inward": "Parent",
|
|
1264
|
+
* "name": "",
|
|
1265
|
+
* "outward": "Sub-task"
|
|
1266
|
+
* }
|
|
1267
|
+
* }
|
|
1268
|
+
* ],
|
|
1269
|
+
* "description": {
|
|
1270
|
+
* "type": "doc",
|
|
1271
|
+
* "version": 1,
|
|
1272
|
+
* "content": [
|
|
1273
|
+
* {
|
|
1274
|
+
* "type": "paragraph",
|
|
1275
|
+
* "content": [
|
|
1276
|
+
* {
|
|
1277
|
+
* "type": "text",
|
|
1278
|
+
* "text": "Main order flow broken"
|
|
1279
|
+
* }
|
|
1280
|
+
* ]
|
|
1281
|
+
* }
|
|
1282
|
+
* ]
|
|
1283
|
+
* },
|
|
1284
|
+
* "project": {
|
|
1285
|
+
* "avatarUrls": {
|
|
1286
|
+
* "16x16":
|
|
1287
|
+
* "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
|
|
1288
|
+
* "24x24":
|
|
1289
|
+
* "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
|
|
1290
|
+
* "32x32":
|
|
1291
|
+
* "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
|
|
1292
|
+
* "48x48":
|
|
1293
|
+
* "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
|
|
1294
|
+
* },
|
|
1295
|
+
* "id": "10000",
|
|
1296
|
+
* "insight": {
|
|
1297
|
+
* "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
|
|
1298
|
+
* "totalIssueCount": 100
|
|
1299
|
+
* },
|
|
1300
|
+
* "key": "EX",
|
|
1301
|
+
* "name": "Example",
|
|
1302
|
+
* "projectCategory": {
|
|
1303
|
+
* "description": "First Project Category",
|
|
1304
|
+
* "id": "10000",
|
|
1305
|
+
* "name": "FIRST",
|
|
1306
|
+
* "self":
|
|
1307
|
+
* "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
|
|
1308
|
+
* },
|
|
1309
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
|
|
1310
|
+
* "simplified": false,
|
|
1311
|
+
* "style": "classic"
|
|
1312
|
+
* },
|
|
1313
|
+
* "comment": [
|
|
1314
|
+
* {
|
|
1315
|
+
* "author": {
|
|
1316
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1317
|
+
* "active": false,
|
|
1318
|
+
* "displayName": "Mia Krystof",
|
|
1319
|
+
* "self":
|
|
1320
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1321
|
+
* },
|
|
1322
|
+
* "body": {
|
|
1323
|
+
* "type": "doc",
|
|
1324
|
+
* "version": 1,
|
|
1325
|
+
* "content": [
|
|
1326
|
+
* {
|
|
1327
|
+
* "type": "paragraph",
|
|
1328
|
+
* "content": [
|
|
1329
|
+
* {
|
|
1330
|
+
* "type": "text",
|
|
1331
|
+
* "text": "Lorem ipsum dolor sit amet, consectetur adipiscing
|
|
1332
|
+
* elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis
|
|
1333
|
+
* fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
|
|
1334
|
+
* }
|
|
1335
|
+
* ]
|
|
1336
|
+
* }
|
|
1337
|
+
* ]
|
|
1338
|
+
* },
|
|
1339
|
+
* "created": "2021-01-17T12:34:00.000+0000",
|
|
1340
|
+
* "id": "10000",
|
|
1341
|
+
* "self":
|
|
1342
|
+
* "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
|
|
1343
|
+
* "updateAuthor": {
|
|
1344
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1345
|
+
* "active": false,
|
|
1346
|
+
* "displayName": "Mia Krystof",
|
|
1347
|
+
* "self":
|
|
1348
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1349
|
+
* },
|
|
1350
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
1351
|
+
* "visibility": {
|
|
1352
|
+
* "identifier": "Administrators",
|
|
1353
|
+
* "type": "role",
|
|
1354
|
+
* "value": "Administrators"
|
|
1355
|
+
* }
|
|
1356
|
+
* }
|
|
1357
|
+
* ],
|
|
1358
|
+
* "issuelinks": [
|
|
1359
|
+
* {
|
|
1360
|
+
* "id": "10001",
|
|
1361
|
+
* "outwardIssue": {
|
|
1362
|
+
* "fields": {
|
|
1363
|
+
* "status": {
|
|
1364
|
+
* "iconUrl":
|
|
1365
|
+
* "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
1366
|
+
* "name": "Open"
|
|
1367
|
+
* }
|
|
1368
|
+
* },
|
|
1369
|
+
* "id": "10004L",
|
|
1370
|
+
* "key": "PR-2",
|
|
1371
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
|
|
1372
|
+
* },
|
|
1373
|
+
* "type": {
|
|
1374
|
+
* "id": "10000",
|
|
1375
|
+
* "inward": "depends on",
|
|
1376
|
+
* "name": "Dependent",
|
|
1377
|
+
* "outward": "is depended by"
|
|
1378
|
+
* }
|
|
1379
|
+
* },
|
|
1380
|
+
* {
|
|
1381
|
+
* "id": "10002",
|
|
1382
|
+
* "inwardIssue": {
|
|
1383
|
+
* "fields": {
|
|
1384
|
+
* "status": {
|
|
1385
|
+
* "iconUrl":
|
|
1386
|
+
* "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
1387
|
+
* "name": "Open"
|
|
1388
|
+
* }
|
|
1389
|
+
* },
|
|
1390
|
+
* "id": "10004",
|
|
1391
|
+
* "key": "PR-3",
|
|
1392
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
|
|
1393
|
+
* },
|
|
1394
|
+
* "type": {
|
|
1395
|
+
* "id": "10000",
|
|
1396
|
+
* "inward": "depends on",
|
|
1397
|
+
* "name": "Dependent",
|
|
1398
|
+
* "outward": "is depended by"
|
|
1399
|
+
* }
|
|
1400
|
+
* }
|
|
1401
|
+
* ],
|
|
1402
|
+
* "worklog": [
|
|
1403
|
+
* {
|
|
1404
|
+
* "author": {
|
|
1405
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1406
|
+
* "active": false,
|
|
1407
|
+
* "displayName": "Mia Krystof",
|
|
1408
|
+
* "self":
|
|
1409
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1410
|
+
* },
|
|
1411
|
+
* "comment": {
|
|
1412
|
+
* "type": "doc",
|
|
1413
|
+
* "version": 1,
|
|
1414
|
+
* "content": [
|
|
1415
|
+
* {
|
|
1416
|
+
* "type": "paragraph",
|
|
1417
|
+
* "content": [
|
|
1418
|
+
* {
|
|
1419
|
+
* "type": "text",
|
|
1420
|
+
* "text": "I did some work here."
|
|
1421
|
+
* }
|
|
1422
|
+
* ]
|
|
1423
|
+
* }
|
|
1424
|
+
* ]
|
|
1425
|
+
* },
|
|
1426
|
+
* "id": "100028",
|
|
1427
|
+
* "issueId": "10002",
|
|
1428
|
+
* "self":
|
|
1429
|
+
* "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
|
|
1430
|
+
* "started": "2021-01-17T12:34:00.000+0000",
|
|
1431
|
+
* "timeSpent": "3h 20m",
|
|
1432
|
+
* "timeSpentSeconds": 12000,
|
|
1433
|
+
* "updateAuthor": {
|
|
1434
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1435
|
+
* "active": false,
|
|
1436
|
+
* "displayName": "Mia Krystof",
|
|
1437
|
+
* "self":
|
|
1438
|
+
* "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1439
|
+
* },
|
|
1440
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
1441
|
+
* "visibility": {
|
|
1442
|
+
* "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
|
|
1443
|
+
* "type": "group",
|
|
1444
|
+
* "value": "jira-developers"
|
|
1445
|
+
* }
|
|
1446
|
+
* }
|
|
1447
|
+
* ],
|
|
1448
|
+
* "updated": 1,
|
|
1449
|
+
* "timetracking": {
|
|
1450
|
+
* "originalEstimate": "10m",
|
|
1451
|
+
* "originalEstimateSeconds": 600,
|
|
1452
|
+
* "remainingEstimate": "3m",
|
|
1453
|
+
* "remainingEstimateSeconds": 200,
|
|
1454
|
+
* "timeSpent": "6m",
|
|
1455
|
+
* "timeSpentSeconds": 400
|
|
1456
|
+
* }
|
|
1457
|
+
* },
|
|
1458
|
+
* "id": "10002",
|
|
1459
|
+
* "key": "ED-1",
|
|
1460
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"
|
|
1461
|
+
* }
|
|
1462
|
+
* @path {GET} /rest/api/3/issue/{issueIdOrKey}
|
|
1463
|
+
* @scopes-current read:jira-work
|
|
1464
|
+
* @scopes-beta read:issue-meta:jira, read:issue-security-level:jira, read:issue.vote:jira,
|
|
1465
|
+
* read:issue.changelog:jira, read:avatar:jira, read:issue:jira, read:status:jira,
|
|
1466
|
+
* read:user:jira, read:field-configuration:jira
|
|
1467
|
+
*/
|
|
1468
|
+
getIssue({ issueIdOrKey, fields, fieldsByKeys, expand, properties, updateHistory, }) {
|
|
1469
|
+
return this.getClientInstance()
|
|
1470
|
+
.request({
|
|
1471
|
+
path: "/rest/api/3/issue/{issueIdOrKey}",
|
|
1472
|
+
method: "GET",
|
|
1473
|
+
pathParams: {
|
|
1474
|
+
issueIdOrKey,
|
|
1475
|
+
},
|
|
1476
|
+
query: {
|
|
1477
|
+
fields,
|
|
1478
|
+
fieldsByKeys,
|
|
1479
|
+
expand,
|
|
1480
|
+
properties,
|
|
1481
|
+
updateHistory,
|
|
1482
|
+
},
|
|
1483
|
+
})
|
|
1484
|
+
.then(this.getClientInstance().responseHandler({
|
|
1485
|
+
200: {
|
|
1486
|
+
"application/json": "json",
|
|
1487
|
+
},
|
|
1488
|
+
}))
|
|
1489
|
+
.then(commonHttpClient.castResponse())
|
|
1490
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.getIssue.response"))
|
|
1491
|
+
.then(commonHttpClient.getBody);
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* Returns all issues breaching and approaching per-issue limits.
|
|
1495
|
+
*
|
|
1496
|
+
* **[Permissions](#permissions) required:**
|
|
1497
|
+
*
|
|
1498
|
+
* * *Browse projects* [project
|
|
1499
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) is required for the
|
|
1500
|
+
* project the issues are in. Results may be incomplete otherwise
|
|
1501
|
+
* * *Administer Jira* [global
|
|
1502
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
1503
|
+
*
|
|
1504
|
+
* @returns Returned if the request is successful.
|
|
1505
|
+
*
|
|
1506
|
+
* example: {
|
|
1507
|
+
* "issuesApproachingLimit": {
|
|
1508
|
+
* "attachment": {
|
|
1509
|
+
* "15070": 1822,
|
|
1510
|
+
* "15111": 1999
|
|
1511
|
+
* },
|
|
1512
|
+
* "comment": {
|
|
1513
|
+
* "10000": 4997,
|
|
1514
|
+
* "15073": 4999,
|
|
1515
|
+
* "15110": 5000
|
|
1516
|
+
* },
|
|
1517
|
+
* "remoteIssueLinks": {
|
|
1518
|
+
* "15107": 2000
|
|
1519
|
+
* },
|
|
1520
|
+
* "worklog": {
|
|
1521
|
+
* "15101": 4342
|
|
1522
|
+
* }
|
|
1523
|
+
* },
|
|
1524
|
+
* "issuesBreachingLimit": {
|
|
1525
|
+
* "attachment": {
|
|
1526
|
+
* "15057": 2005,
|
|
1527
|
+
* "15116": 2065,
|
|
1528
|
+
* "15117": 3005
|
|
1529
|
+
* },
|
|
1530
|
+
* "comment": {
|
|
1531
|
+
* "15055": 5202
|
|
1532
|
+
* },
|
|
1533
|
+
* "issuelinks": {
|
|
1534
|
+
* "15058": 2120
|
|
1535
|
+
* },
|
|
1536
|
+
* "remoteIssueLinks": {
|
|
1537
|
+
* "15059": 2094
|
|
1538
|
+
* },
|
|
1539
|
+
* "worklog": {
|
|
1540
|
+
* "15056": 5085,
|
|
1541
|
+
* "15169": 120864
|
|
1542
|
+
* }
|
|
1543
|
+
* },
|
|
1544
|
+
* "limits": {
|
|
1545
|
+
* "attachment": 2000,
|
|
1546
|
+
* "comment": 5000,
|
|
1547
|
+
* "issuelinks": 2000,
|
|
1548
|
+
* "remoteIssueLinks": 2000,
|
|
1549
|
+
* "worklog": 5000
|
|
1550
|
+
* }
|
|
1551
|
+
* }
|
|
1552
|
+
* @path {GET} /rest/api/3/issue/limit/report
|
|
1553
|
+
* @scopes-current read:jira-work
|
|
1554
|
+
* @scopes-beta read:project:jira, read:issue:jira
|
|
1555
|
+
*/
|
|
1556
|
+
getIssueLimitReport({ issueLimitReportRequest, }) {
|
|
1557
|
+
return this.getClientInstance()
|
|
1558
|
+
.request({
|
|
1559
|
+
path: "/rest/api/3/issue/limit/report",
|
|
1560
|
+
method: "GET",
|
|
1561
|
+
headers: {
|
|
1562
|
+
"Content-Type": "application/json",
|
|
1563
|
+
},
|
|
1564
|
+
body: issueLimitReportRequest,
|
|
1565
|
+
})
|
|
1566
|
+
.then(this.getClientInstance().responseHandler({
|
|
1567
|
+
200: {
|
|
1568
|
+
"application/json": "json",
|
|
1569
|
+
},
|
|
1570
|
+
}))
|
|
1571
|
+
.then(commonHttpClient.castResponse())
|
|
1572
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.getIssueLimitReport.response"))
|
|
1573
|
+
.then(commonHttpClient.getBody);
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
* Returns either all transitions or a transition that can be performed by the
|
|
1577
|
+
* user on an issue, based on the issue's status.
|
|
1578
|
+
*
|
|
1579
|
+
* Note, if a request is made for a transition that does not exist or cannot be
|
|
1580
|
+
* performed on the issue, given its status, the response will return any empty
|
|
1581
|
+
* transitions list.
|
|
1582
|
+
*
|
|
1583
|
+
* This operation can be accessed anonymously.
|
|
1584
|
+
*
|
|
1585
|
+
* **[Permissions](#permissions) required: A list or transition is returned only
|
|
1586
|
+
* when the user has:**
|
|
1587
|
+
*
|
|
1588
|
+
* * *Browse projects* [project
|
|
1589
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
|
|
1590
|
+
* issue is in.
|
|
1591
|
+
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
1592
|
+
* configured, issue-level security permission to view the issue.
|
|
1593
|
+
*
|
|
1594
|
+
* However, if the user does not have the *Transition issues* [ project
|
|
1595
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) the response will not
|
|
1596
|
+
* list any transitions.
|
|
1597
|
+
*
|
|
1598
|
+
* @returns Returned if the request is successful.
|
|
1599
|
+
*
|
|
1600
|
+
* example: {
|
|
1601
|
+
* "transitions": [
|
|
1602
|
+
* {
|
|
1603
|
+
* "fields": {
|
|
1604
|
+
* "summary": {
|
|
1605
|
+
* "allowedValues": [
|
|
1606
|
+
* "red",
|
|
1607
|
+
* "blue"
|
|
1608
|
+
* ],
|
|
1609
|
+
* "defaultValue": "red",
|
|
1610
|
+
* "hasDefaultValue": false,
|
|
1611
|
+
* "key": "field_key",
|
|
1612
|
+
* "name": "My Multi Select",
|
|
1613
|
+
* "operations": [
|
|
1614
|
+
* "set",
|
|
1615
|
+
* "add"
|
|
1616
|
+
* ],
|
|
1617
|
+
* "required": false,
|
|
1618
|
+
* "schema": {
|
|
1619
|
+
* "custom":
|
|
1620
|
+
* "com.atlassian.jira.plugin.system.customfieldtypes:multiselect",
|
|
1621
|
+
* "customId": 10001,
|
|
1622
|
+
* "items": "option",
|
|
1623
|
+
* "type": "array"
|
|
1624
|
+
* }
|
|
1625
|
+
* }
|
|
1626
|
+
* },
|
|
1627
|
+
* "hasScreen": false,
|
|
1628
|
+
* "id": "2",
|
|
1629
|
+
* "isAvailable": true,
|
|
1630
|
+
* "isConditional": false,
|
|
1631
|
+
* "isGlobal": false,
|
|
1632
|
+
* "isInitial": false,
|
|
1633
|
+
* "name": "Close Issue",
|
|
1634
|
+
* "to": {
|
|
1635
|
+
* "description": "The issue is currently being worked on.",
|
|
1636
|
+
* "iconUrl":
|
|
1637
|
+
* "https://your-domain.atlassian.net/images/icons/progress.gif",
|
|
1638
|
+
* "id": "10000",
|
|
1639
|
+
* "name": "In Progress",
|
|
1640
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/status/10000",
|
|
1641
|
+
* "statusCategory": {
|
|
1642
|
+
* "colorName": "yellow",
|
|
1643
|
+
* "id": 1,
|
|
1644
|
+
* "key": "in-flight",
|
|
1645
|
+
* "name": "In Progress",
|
|
1646
|
+
* "self":
|
|
1647
|
+
* "https://your-domain.atlassian.net/rest/api/3/statuscategory/1"
|
|
1648
|
+
* }
|
|
1649
|
+
* }
|
|
1650
|
+
* },
|
|
1651
|
+
* {
|
|
1652
|
+
* "fields": {
|
|
1653
|
+
* "summary": {
|
|
1654
|
+
* "allowedValues": [
|
|
1655
|
+
* "red",
|
|
1656
|
+
* "blue"
|
|
1657
|
+
* ],
|
|
1658
|
+
* "defaultValue": "red",
|
|
1659
|
+
* "hasDefaultValue": false,
|
|
1660
|
+
* "key": "field_key",
|
|
1661
|
+
* "name": "My Multi Select",
|
|
1662
|
+
* "operations": [
|
|
1663
|
+
* "set",
|
|
1664
|
+
* "add"
|
|
1665
|
+
* ],
|
|
1666
|
+
* "required": false,
|
|
1667
|
+
* "schema": {
|
|
1668
|
+
* "custom":
|
|
1669
|
+
* "com.atlassian.jira.plugin.system.customfieldtypes:multiselect",
|
|
1670
|
+
* "customId": 10001,
|
|
1671
|
+
* "items": "option",
|
|
1672
|
+
* "type": "array"
|
|
1673
|
+
* }
|
|
1674
|
+
* },
|
|
1675
|
+
* "colour": {
|
|
1676
|
+
* "allowedValues": [
|
|
1677
|
+
* "red",
|
|
1678
|
+
* "blue"
|
|
1679
|
+
* ],
|
|
1680
|
+
* "defaultValue": "red",
|
|
1681
|
+
* "hasDefaultValue": false,
|
|
1682
|
+
* "key": "field_key",
|
|
1683
|
+
* "name": "My Multi Select",
|
|
1684
|
+
* "operations": [
|
|
1685
|
+
* "set",
|
|
1686
|
+
* "add"
|
|
1687
|
+
* ],
|
|
1688
|
+
* "required": false,
|
|
1689
|
+
* "schema": {
|
|
1690
|
+
* "custom":
|
|
1691
|
+
* "com.atlassian.jira.plugin.system.customfieldtypes:multiselect",
|
|
1692
|
+
* "customId": 10001,
|
|
1693
|
+
* "items": "option",
|
|
1694
|
+
* "type": "array"
|
|
1695
|
+
* }
|
|
1696
|
+
* }
|
|
1697
|
+
* },
|
|
1698
|
+
* "hasScreen": true,
|
|
1699
|
+
* "id": "711",
|
|
1700
|
+
* "name": "QA Review",
|
|
1701
|
+
* "to": {
|
|
1702
|
+
* "description": "The issue is closed.",
|
|
1703
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/closed.gif",
|
|
1704
|
+
* "id": "5",
|
|
1705
|
+
* "name": "Closed",
|
|
1706
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/status/5",
|
|
1707
|
+
* "statusCategory": {
|
|
1708
|
+
* "colorName": "green",
|
|
1709
|
+
* "id": 9,
|
|
1710
|
+
* "key": "completed",
|
|
1711
|
+
* "self":
|
|
1712
|
+
* "https://your-domain.atlassian.net/rest/api/3/statuscategory/9"
|
|
1713
|
+
* }
|
|
1714
|
+
* }
|
|
1715
|
+
* }
|
|
1716
|
+
* ]
|
|
1717
|
+
* }
|
|
1718
|
+
* @path {GET} /rest/api/3/issue/{issueIdOrKey}/transitions
|
|
1719
|
+
* @scopes-current read:jira-work
|
|
1720
|
+
* @scopes-beta read:issue.transition:jira, read:status:jira, read:field-configuration:jira
|
|
1721
|
+
*/
|
|
1722
|
+
getTransitions({ issueIdOrKey, expand, transitionId, skipRemoteOnlyCondition, includeUnavailableTransitions, sortByOpsBarAndStatus, }) {
|
|
1723
|
+
return this.getClientInstance()
|
|
1724
|
+
.request({
|
|
1725
|
+
path: "/rest/api/3/issue/{issueIdOrKey}/transitions",
|
|
1726
|
+
method: "GET",
|
|
1727
|
+
pathParams: {
|
|
1728
|
+
issueIdOrKey,
|
|
1729
|
+
},
|
|
1730
|
+
query: {
|
|
1731
|
+
expand,
|
|
1732
|
+
transitionId,
|
|
1733
|
+
skipRemoteOnlyCondition,
|
|
1734
|
+
includeUnavailableTransitions,
|
|
1735
|
+
sortByOpsBarAndStatus,
|
|
1736
|
+
},
|
|
1737
|
+
})
|
|
1738
|
+
.then(this.getClientInstance().responseHandler({
|
|
1739
|
+
200: {
|
|
1740
|
+
"application/json": "json",
|
|
1741
|
+
},
|
|
1742
|
+
}))
|
|
1743
|
+
.then(commonHttpClient.castResponse())
|
|
1744
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.getTransitions.response"))
|
|
1745
|
+
.then(commonHttpClient.getBody);
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* Creates an email notification for an issue and adds it to the mail queue.
|
|
1749
|
+
*
|
|
1750
|
+
* **[Permissions](#permissions) required:**
|
|
1751
|
+
*
|
|
1752
|
+
* * *Browse Projects* [project
|
|
1753
|
+
* permission](https://confluence.atlassian.com/x/yodKLg) for the project that the
|
|
1754
|
+
* issue is in.
|
|
1755
|
+
* * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
|
|
1756
|
+
* configured, issue-level security permission to view the issue.
|
|
1757
|
+
*
|
|
1758
|
+
* @returns Returned if the email is queued for sending.
|
|
1759
|
+
* @path {POST} /rest/api/3/issue/{issueIdOrKey}/notify
|
|
1760
|
+
* @scopes-current write:jira-work
|
|
1761
|
+
* @scopes-beta send:notification:jira
|
|
1762
|
+
*/
|
|
1763
|
+
notify({ issueIdOrKey, notification, }) {
|
|
1764
|
+
return this.getClientInstance()
|
|
1765
|
+
.request({
|
|
1766
|
+
path: "/rest/api/3/issue/{issueIdOrKey}/notify",
|
|
1767
|
+
method: "POST",
|
|
1768
|
+
pathParams: {
|
|
1769
|
+
issueIdOrKey,
|
|
1770
|
+
},
|
|
1771
|
+
headers: {
|
|
1772
|
+
"Content-Type": "application/json",
|
|
1773
|
+
},
|
|
1774
|
+
body: notification,
|
|
1775
|
+
})
|
|
1776
|
+
.then(this.getClientInstance().responseHandler({
|
|
1777
|
+
204: {
|
|
1778
|
+
"application/json": "json",
|
|
1779
|
+
},
|
|
1780
|
+
}))
|
|
1781
|
+
.then(commonHttpClient.castResponse())
|
|
1782
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.notify.response"))
|
|
1783
|
+
.then(commonHttpClient.getBody);
|
|
1784
|
+
}
|
|
1785
|
+
/**
|
|
1786
|
+
* Enables admins to unarchive up to 1000 issues in a single request using issue
|
|
1787
|
+
* ID/key, returning details of the issue(s) unarchived in the process and the
|
|
1788
|
+
* errors encountered, if any.
|
|
1789
|
+
*
|
|
1790
|
+
* **Note that:**
|
|
1791
|
+
*
|
|
1792
|
+
* * you can't unarchive subtasks directly, only through their parent issues
|
|
1793
|
+
* * you can only unarchive issues from software, service management, and
|
|
1794
|
+
* business projects
|
|
1795
|
+
*
|
|
1796
|
+
* **[Permissions](#permissions) required:** Jira admin or site admin: [global
|
|
1797
|
+
* permission](https://confluence.atlassian.com/x/x4dKLg)
|
|
1798
|
+
*
|
|
1799
|
+
* **License required:** Premium or Enterprise
|
|
1800
|
+
*
|
|
1801
|
+
* **Signed-in users only:** This API can't be accessed anonymously.
|
|
1802
|
+
*
|
|
1803
|
+
* @returns Returned if there is at least one valid issue to unarchive in the request. It
|
|
1804
|
+
* will return the count of unarchived issues, which also includes the count of
|
|
1805
|
+
* the subtasks unarchived, and it will show the detailed errors for those issues
|
|
1806
|
+
* which are not unarchived.
|
|
1807
|
+
*
|
|
1808
|
+
* example: {
|
|
1809
|
+
* "errors": {
|
|
1810
|
+
* "issueIsSubtask": {
|
|
1811
|
+
* "count": 3,
|
|
1812
|
+
* "issueIdsOrKeys": [
|
|
1813
|
+
* "ST-1",
|
|
1814
|
+
* "ST-2",
|
|
1815
|
+
* "ST-3"
|
|
1816
|
+
* ],
|
|
1817
|
+
* "message": "Issue is subtask."
|
|
1818
|
+
* },
|
|
1819
|
+
* "issuesInArchivedProjects": {
|
|
1820
|
+
* "count": 2,
|
|
1821
|
+
* "issueIdsOrKeys": [
|
|
1822
|
+
* "AR-1",
|
|
1823
|
+
* "AR-2"
|
|
1824
|
+
* ],
|
|
1825
|
+
* "message": "Issue exists in archived project."
|
|
1826
|
+
* },
|
|
1827
|
+
* "issuesNotFound": {
|
|
1828
|
+
* "count": 3,
|
|
1829
|
+
* "issueIdsOrKeys": [
|
|
1830
|
+
* "PR-1",
|
|
1831
|
+
* "PR-2",
|
|
1832
|
+
* "PR-3"
|
|
1833
|
+
* ],
|
|
1834
|
+
* "message": "Issue not found."
|
|
1835
|
+
* }
|
|
1836
|
+
* },
|
|
1837
|
+
* "numberOfIssuesUpdated": 10
|
|
1838
|
+
* }
|
|
1839
|
+
* @path {PUT} /rest/api/3/issue/unarchive
|
|
1840
|
+
* @scopes-current write:jira-work
|
|
1841
|
+
* @scopes-beta write:issue:jira
|
|
1842
|
+
*/
|
|
1843
|
+
unarchiveIssues({ issueArchivalSyncRequest, }) {
|
|
1844
|
+
return this.getClientInstance()
|
|
1845
|
+
.request({
|
|
1846
|
+
path: "/rest/api/3/issue/unarchive",
|
|
1847
|
+
method: "PUT",
|
|
1848
|
+
headers: {
|
|
1849
|
+
"Content-Type": "application/json",
|
|
1850
|
+
},
|
|
1851
|
+
body: issueArchivalSyncRequest,
|
|
1852
|
+
})
|
|
1853
|
+
.then(this.getClientInstance().responseHandler({
|
|
1854
|
+
200: {
|
|
1855
|
+
"application/json": "json",
|
|
1856
|
+
},
|
|
1857
|
+
}))
|
|
1858
|
+
.then(commonHttpClient.castResponse())
|
|
1859
|
+
.then(validation_schema_storage_1.validationSchemaStorage.validator("IssuesService.unarchiveIssues.response"))
|
|
1860
|
+
.then(commonHttpClient.getBody);
|
|
1861
|
+
}
|
|
1862
|
+
static initialize() {
|
|
1863
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.getEvents.response", zod_1.z
|
|
1864
|
+
.object({
|
|
1865
|
+
status: zod_1.z.literal(200),
|
|
1866
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1867
|
+
body: zod_1.z.array(validation_schema_storage_1.validationSchemaStorage.lazy("IssueEvent")),
|
|
1868
|
+
})
|
|
1869
|
+
.describe("IssuesService.getEvents.response"));
|
|
1870
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.createIssue.response", zod_1.z
|
|
1871
|
+
.object({
|
|
1872
|
+
status: zod_1.z.literal(201),
|
|
1873
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1874
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("CreatedIssue"),
|
|
1875
|
+
})
|
|
1876
|
+
.describe("IssuesService.createIssue.response"));
|
|
1877
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.getIssue.response", zod_1.z
|
|
1878
|
+
.object({
|
|
1879
|
+
status: zod_1.z.literal(200),
|
|
1880
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1881
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("IssueBean"),
|
|
1882
|
+
})
|
|
1883
|
+
.describe("IssuesService.getIssue.response"));
|
|
1884
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.editIssue.response", zod_1.z
|
|
1885
|
+
.object({
|
|
1886
|
+
status: zod_1.z.number(),
|
|
1887
|
+
mediaType: zod_1.z.string(),
|
|
1888
|
+
body: zod_1.z.unknown(),
|
|
1889
|
+
})
|
|
1890
|
+
.superRefine(({ status: status, body: body }, ctx) => {
|
|
1891
|
+
if (status === 200 || status === 204) {
|
|
1892
|
+
zod_1.z.unknown().parse(body);
|
|
1893
|
+
}
|
|
1894
|
+
else {
|
|
1895
|
+
ctx.addIssue({
|
|
1896
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
1897
|
+
path: ["status"],
|
|
1898
|
+
message: `Unexpected status code: ${status}`,
|
|
1899
|
+
});
|
|
1900
|
+
}
|
|
1901
|
+
})
|
|
1902
|
+
.describe("IssuesService.editIssue.response"));
|
|
1903
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.assignIssue.response", zod_1.z
|
|
1904
|
+
.object({
|
|
1905
|
+
status: zod_1.z.literal(204),
|
|
1906
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1907
|
+
body: zod_1.z.unknown(),
|
|
1908
|
+
})
|
|
1909
|
+
.describe("IssuesService.assignIssue.response"));
|
|
1910
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.getChangeLogs.response", zod_1.z
|
|
1911
|
+
.object({
|
|
1912
|
+
status: zod_1.z.literal(200),
|
|
1913
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1914
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("PageBeanChangelog"),
|
|
1915
|
+
})
|
|
1916
|
+
.describe("IssuesService.getChangeLogs.response"));
|
|
1917
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.getChangeLogsByIds.response", zod_1.z
|
|
1918
|
+
.object({
|
|
1919
|
+
status: zod_1.z.literal(200),
|
|
1920
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1921
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("PageOfChangelogs"),
|
|
1922
|
+
})
|
|
1923
|
+
.describe("IssuesService.getChangeLogsByIds.response"));
|
|
1924
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.getEditIssueMeta.response", zod_1.z
|
|
1925
|
+
.object({
|
|
1926
|
+
status: zod_1.z.literal(200),
|
|
1927
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1928
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("IssueUpdateMetadata"),
|
|
1929
|
+
})
|
|
1930
|
+
.describe("IssuesService.getEditIssueMeta.response"));
|
|
1931
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.notify.response", zod_1.z
|
|
1932
|
+
.object({
|
|
1933
|
+
status: zod_1.z.literal(204),
|
|
1934
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1935
|
+
body: zod_1.z.unknown(),
|
|
1936
|
+
})
|
|
1937
|
+
.describe("IssuesService.notify.response"));
|
|
1938
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.getTransitions.response", zod_1.z
|
|
1939
|
+
.object({
|
|
1940
|
+
status: zod_1.z.literal(200),
|
|
1941
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1942
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("Transitions"),
|
|
1943
|
+
})
|
|
1944
|
+
.describe("IssuesService.getTransitions.response"));
|
|
1945
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.doTransition.response", zod_1.z
|
|
1946
|
+
.object({
|
|
1947
|
+
status: zod_1.z.literal(204),
|
|
1948
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1949
|
+
body: zod_1.z.unknown(),
|
|
1950
|
+
})
|
|
1951
|
+
.describe("IssuesService.doTransition.response"));
|
|
1952
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.archiveIssues.response", zod_1.z
|
|
1953
|
+
.object({
|
|
1954
|
+
status: zod_1.z.literal(200),
|
|
1955
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1956
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("IssueArchivalSyncResponse"),
|
|
1957
|
+
})
|
|
1958
|
+
.describe("IssuesService.archiveIssues.response"));
|
|
1959
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.archiveIssuesAsync.response", zod_1.z
|
|
1960
|
+
.object({
|
|
1961
|
+
status: zod_1.z.literal(202),
|
|
1962
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1963
|
+
body: zod_1.z.string(),
|
|
1964
|
+
})
|
|
1965
|
+
.describe("IssuesService.archiveIssuesAsync.response"));
|
|
1966
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.createIssues.response", zod_1.z
|
|
1967
|
+
.object({
|
|
1968
|
+
status: zod_1.z.literal(201),
|
|
1969
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1970
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("CreatedIssues"),
|
|
1971
|
+
})
|
|
1972
|
+
.describe("IssuesService.createIssues.response"));
|
|
1973
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.getCreateIssueMeta.response", zod_1.z
|
|
1974
|
+
.object({
|
|
1975
|
+
status: zod_1.z.literal(200),
|
|
1976
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1977
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("IssueCreateMetadata"),
|
|
1978
|
+
})
|
|
1979
|
+
.describe("IssuesService.getCreateIssueMeta.response"));
|
|
1980
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.getCreateIssueMetaIssueTypes.response", zod_1.z
|
|
1981
|
+
.object({
|
|
1982
|
+
status: zod_1.z.literal(200),
|
|
1983
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1984
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("PageOfCreateMetaIssueTypes"),
|
|
1985
|
+
})
|
|
1986
|
+
.describe("IssuesService.getCreateIssueMetaIssueTypes.response"));
|
|
1987
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.getCreateIssueMetaIssueTypeId.response", zod_1.z
|
|
1988
|
+
.object({
|
|
1989
|
+
status: zod_1.z.literal(200),
|
|
1990
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1991
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("PageOfCreateMetaIssueTypeWithField"),
|
|
1992
|
+
})
|
|
1993
|
+
.describe("IssuesService.getCreateIssueMetaIssueTypeId.response"));
|
|
1994
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.getIssueLimitReport.response", zod_1.z
|
|
1995
|
+
.object({
|
|
1996
|
+
status: zod_1.z.literal(200),
|
|
1997
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
1998
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("IssueLimitReportResponseBean"),
|
|
1999
|
+
})
|
|
2000
|
+
.describe("IssuesService.getIssueLimitReport.response"));
|
|
2001
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.unarchiveIssues.response", zod_1.z
|
|
2002
|
+
.object({
|
|
2003
|
+
status: zod_1.z.literal(200),
|
|
2004
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
2005
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("IssueArchivalSyncResponse"),
|
|
2006
|
+
})
|
|
2007
|
+
.describe("IssuesService.unarchiveIssues.response"));
|
|
2008
|
+
validation_schema_storage_1.validationSchemaStorage.registerExtensible("IssuesService.exportArchivedIssues.response", zod_1.z
|
|
2009
|
+
.object({
|
|
2010
|
+
status: zod_1.z.literal(202),
|
|
2011
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
2012
|
+
body: validation_schema_storage_1.validationSchemaStorage.lazy("ExportArchivedIssuesTaskProgressResponse"),
|
|
2013
|
+
})
|
|
2014
|
+
.describe("IssuesService.exportArchivedIssues.response"));
|
|
2015
|
+
validation_schema_storage_1.validationSchemaStorage.registerOnce([
|
|
2016
|
+
issues_1.registerIssuesValidationSchemas,
|
|
2017
|
+
common_1.registerCommonValidationSchemas,
|
|
2018
|
+
]);
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
exports.IssuesService = IssuesService;
|
|
2022
|
+
//# sourceMappingURL=issues-service.js.map
|