@thestarware/atlascli-jira 1.2.3 → 1.2.5
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/README.md +24 -108
- package/lib/commands/announcement-banner/get.js +13 -1
- package/lib/commands/announcement-banner/update.js +30 -1
- package/lib/commands/application-role/get-all.js +22 -2
- package/lib/commands/application-role/get.js +19 -1
- package/lib/commands/application-role/update.js +23 -1
- package/lib/commands/attachment/add.js +33 -1
- package/lib/commands/attachment/delete.js +16 -1
- package/lib/commands/attachment/get-content.js +18 -1
- package/lib/commands/attachment/get-jira-settings.js +14 -1
- package/lib/commands/attachment/get-metadata-for-zip.js +36 -1
- package/lib/commands/attachment/get-metadata.js +30 -1
- package/lib/commands/attachment/get-thumbnails.js +17 -1
- package/lib/commands/audit-record/get-associated.js +81 -1
- package/lib/commands/audit-record/get-changed.js +62 -1
- package/lib/commands/avatar/delete-universal-avatar.js +15 -1
- package/lib/commands/avatar/delete-user-avatar.js +21 -1
- package/lib/commands/avatar/get-all-user-avatars.js +22 -0
- package/lib/commands/avatar/get-image-by-id.js +17 -1
- package/lib/commands/avatar/get-image-by-owner.js +17 -1
- package/lib/commands/avatar/get-image-by-type.js +17 -1
- package/lib/commands/avatar/get-system-avatars.js +19 -1
- package/lib/commands/avatar/get-universal-avatars.js +16 -1
- package/lib/commands/avatar/set-user-avatar.js +21 -1
- package/lib/commands/avatar/upload-universal-avatar.js +32 -1
- package/lib/commands/avatar/upload-user-avatar.js +25 -1
- package/lib/commands/comment/add.js +25 -1
- package/lib/commands/comment/delete.js +14 -1
- package/lib/commands/comment/get-for-issue.js +32 -1
- package/lib/commands/comment/get-with-ids.js +31 -1
- package/lib/commands/comment/get.js +22 -1
- package/lib/commands/comment/update.js +26 -1
- package/lib/commands/comment-property/delete-property.js +14 -1
- package/lib/commands/comment-property/get-property-keys.js +15 -1
- package/lib/commands/comment-property/get-property.js +15 -1
- package/lib/commands/comment-property/set-property.js +14 -1
- package/lib/commands/config/add.js +119 -1
- package/lib/commands/config/delete.js +32 -1
- package/lib/commands/config/get-default.js +18 -1
- package/lib/commands/config/list.js +22 -1
- package/lib/commands/config/set-default.js +31 -1
- package/lib/commands/dashboard/add-edit-permission.js +43 -1
- package/lib/commands/dashboard/add-share-permission.js +24 -1
- package/lib/commands/dashboard/copy.js +16 -1
- package/lib/commands/dashboard/create.js +15 -1
- package/lib/commands/dashboard/delete.js +13 -1
- package/lib/commands/dashboard/get-all.js +26 -1
- package/lib/commands/dashboard/get-permissions.js +20 -1
- package/lib/commands/dashboard/get.js +30 -1
- package/lib/commands/dashboard/search.js +35 -1
- package/lib/commands/dashboard/update.js +16 -1
- package/lib/commands/dashboard-gadget/add.js +19 -1
- package/lib/commands/dashboard-gadget/get-availables.js +20 -1
- package/lib/commands/dashboard-gadget/remove.js +13 -1
- package/lib/commands/dashboard-gadget/search.js +16 -1
- package/lib/commands/dashboard-gadget/update.js +18 -1
- package/lib/commands/dashboard-item-property/delete.js +15 -1
- package/lib/commands/dashboard-item-property/get-keys.js +15 -1
- package/lib/commands/dashboard-item-property/get.js +15 -1
- package/lib/commands/dashboard-item-property/set.js +29 -1
- package/lib/commands/filter/add-favourite.js +18 -1
- package/lib/commands/filter/change-owner.js +24 -1
- package/lib/commands/filter/create.js +30 -1
- package/lib/commands/filter/delete.js +18 -1
- package/lib/commands/filter/get-columns.js +20 -1
- package/lib/commands/filter/get-details.js +25 -1
- package/lib/commands/filter/get-favourites.js +18 -1
- package/lib/commands/filter/get-my.js +19 -1
- package/lib/commands/filter/get.js +40 -1
- package/lib/commands/filter/remove-favourite.js +18 -1
- package/lib/commands/filter/reset-columns.js +18 -1
- package/lib/commands/filter/search.js +50 -1
- package/lib/commands/filter/set-columns.js +18 -1
- package/lib/commands/filter/update.js +34 -1
- package/lib/commands/filter-sharing/add-edit-permission.js +106 -1
- package/lib/commands/filter-sharing/add-share-permission.js +84 -1
- package/lib/commands/filter-sharing/delete-permission.js +21 -1
- package/lib/commands/filter-sharing/get-default-scope.js +12 -1
- package/lib/commands/filter-sharing/get-edit-permissions.js +21 -1
- package/lib/commands/filter-sharing/get-permission.js +24 -1
- package/lib/commands/filter-sharing/get-share-permissions.js +52 -1
- package/lib/commands/filter-sharing/set-default-scope.js +21 -1
- package/lib/commands/group/add-user.js +40 -1
- package/lib/commands/group/create.js +28 -1
- package/lib/commands/group/find-groups.js +19 -1
- package/lib/commands/group/get-all.js +24 -1
- package/lib/commands/group/get-users.js +32 -1
- package/lib/commands/group/get.js +58 -1
- package/lib/commands/group/remove-user.js +45 -1
- package/lib/commands/group/remove.js +45 -1
- package/lib/commands/group-and-user-picker/find-groups.js +62 -1
- package/lib/commands/group-and-user-picker/find-users.js +91 -1
- package/lib/commands/issue/archive.js +22 -1
- package/lib/commands/issue/assign.js +29 -1
- package/lib/commands/issue/create.js +306 -1
- package/lib/commands/issue/delete.js +20 -1
- package/lib/commands/issue/edit.js +49 -1
- package/lib/commands/issue/get-changelogs.js +42 -1
- package/lib/commands/issue/get-create-metadata.js +83 -1
- package/lib/commands/issue/get-edit-metadata.js +46 -1
- package/lib/commands/issue/get-events.js +13 -1
- package/lib/commands/issue/get-transitions.js +38 -1
- package/lib/commands/issue/get.js +52 -1
- package/lib/commands/issue/restore.js +15 -1
- package/lib/commands/issue/send-notifications.js +49 -1
- package/lib/commands/issue/transition.js +61 -1
- package/lib/commands/issue-field/create.js +18 -1
- package/lib/commands/issue-field/delete.js +31 -1
- package/lib/commands/issue-field/get-all.js +18 -1
- package/lib/commands/issue-field/move-trash.js +18 -1
- package/lib/commands/issue-field/restore-trash.js +18 -1
- package/lib/commands/issue-field/search-trash.js +23 -1
- package/lib/commands/issue-field/search.js +24 -1
- package/lib/commands/issue-field/update.js +18 -1
- package/lib/commands/issue-field-configuration/assign-issue-type.js +25 -1
- package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +24 -1
- package/lib/commands/issue-field-configuration/create-scheme.js +22 -1
- package/lib/commands/issue-field-configuration/create.js +22 -1
- package/lib/commands/issue-field-configuration/delete-scheme.js +18 -1
- package/lib/commands/issue-field-configuration/delete.js +18 -1
- package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +23 -1
- package/lib/commands/issue-field-configuration/get-all-schemes.js +24 -1
- package/lib/commands/issue-field-configuration/get-all.js +27 -1
- package/lib/commands/issue-field-configuration/get-items.js +24 -1
- package/lib/commands/issue-field-configuration/get-project-schemes.js +42 -1
- package/lib/commands/issue-field-configuration/remove-issue-types.js +23 -1
- package/lib/commands/issue-field-configuration/update-items.js +29 -1
- package/lib/commands/issue-field-configuration/update-scheme.js +23 -1
- package/lib/commands/issue-field-configuration/update.js +25 -1
- package/lib/commands/issue-field-context/add-issue-types.js +26 -1
- package/lib/commands/issue-field-context/assign-to-projects.js +30 -1
- package/lib/commands/issue-field-context/create.js +38 -1
- package/lib/commands/issue-field-context/delete.js +20 -1
- package/lib/commands/issue-field-context/get-all.js +27 -1
- package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +26 -1
- package/lib/commands/issue-field-context/get-default-values.js +29 -1
- package/lib/commands/issue-field-context/get-issue-types.js +27 -1
- package/lib/commands/issue-field-context/get-project-mappings.js +37 -1
- package/lib/commands/issue-field-context/remove-from-projects.js +31 -1
- package/lib/commands/issue-field-context/remove-issue-types.js +26 -1
- package/lib/commands/issue-field-context/set-default-values.js +31 -1
- package/lib/commands/issue-field-context/update.js +28 -1
- package/lib/commands/issue-field-option/create-for-context.js +26 -1
- package/lib/commands/issue-field-option/delete-for-context.js +22 -1
- package/lib/commands/issue-field-option/get-for-context.js +25 -1
- package/lib/commands/issue-field-option/get.js +34 -1
- package/lib/commands/issue-field-option/reorder-for-context.js +25 -1
- package/lib/commands/issue-field-option/update-for-context.js +26 -1
- package/lib/commands/issue-link/create.js +89 -1
- package/lib/commands/issue-link/delete.js +26 -1
- package/lib/commands/issue-link/get.js +48 -1
- package/lib/commands/issue-link-type/create.js +26 -1
- package/lib/commands/issue-link-type/delete.js +14 -1
- package/lib/commands/issue-link-type/get-all.js +14 -1
- package/lib/commands/issue-link-type/get.js +30 -1
- package/lib/commands/issue-link-type/update.js +24 -1
- package/lib/commands/issue-navigator-setting/get-columns.js +14 -1
- package/lib/commands/issue-navigator-setting/set-columns.js +14 -1
- package/lib/commands/issue-priority/create.js +35 -1
- package/lib/commands/issue-priority/delete.js +28 -1
- package/lib/commands/issue-priority/move.js +27 -1
- package/lib/commands/issue-priority/search.js +44 -1
- package/lib/commands/issue-priority/set-default.js +20 -1
- package/lib/commands/issue-priority/update.js +38 -1
- package/lib/commands/issue-property/delete-bulk.js +33 -1
- package/lib/commands/issue-property/delete.js +14 -1
- package/lib/commands/issue-property/get-keys.js +15 -1
- package/lib/commands/issue-property/get.js +21 -1
- package/lib/commands/issue-property/set-bulk.js +49 -1
- package/lib/commands/issue-property/set-by-issue-bulk.js +47 -1
- package/lib/commands/issue-property/set-by-list-bulk.js +34 -1
- package/lib/commands/issue-property/set.js +38 -1
- package/lib/commands/issue-remote-link/create.js +56 -1
- package/lib/commands/issue-remote-link/delete-by-global-id.js +16 -1
- package/lib/commands/issue-remote-link/delete.js +15 -1
- package/lib/commands/issue-remote-link/get-all.js +27 -1
- package/lib/commands/issue-remote-link/get.js +22 -1
- package/lib/commands/issue-remote-link/update.js +40 -1
- package/lib/commands/issue-resolution/create.js +20 -1
- package/lib/commands/issue-resolution/delete.js +28 -1
- package/lib/commands/issue-resolution/get-all.js +13 -1
- package/lib/commands/issue-resolution/get.js +33 -1
- package/lib/commands/issue-resolution/move.js +26 -1
- package/lib/commands/issue-resolution/search.js +40 -1
- package/lib/commands/issue-resolution/set-default.js +17 -1
- package/lib/commands/issue-resolution/update.js +25 -1
- package/lib/commands/issue-search/get-picker-suggestions.js +35 -1
- package/lib/commands/issue-search/search.js +39 -1
- package/lib/commands/issue-search/test-jql.js +29 -1
- package/lib/commands/issue-security-level/get-members.js +46 -1
- package/lib/commands/issue-security-level/get.js +34 -1
- package/lib/commands/issue-security-scheme/get-all.js +14 -1
- package/lib/commands/issue-security-scheme/get-levels.js +20 -1
- package/lib/commands/issue-security-scheme/get.js +34 -1
- package/lib/commands/issue-type/create.js +20 -1
- package/lib/commands/issue-type/delete.js +14 -1
- package/lib/commands/issue-type/get-all-for-projects.js +17 -1
- package/lib/commands/issue-type/get-all.js +14 -1
- package/lib/commands/issue-type/get-alternatives.js +15 -1
- package/lib/commands/issue-type/get.js +30 -1
- package/lib/commands/issue-type/set-avatar.js +14 -1
- package/lib/commands/issue-type/update.js +18 -1
- package/lib/commands/issue-type/upload-avatar.js +38 -1
- package/lib/commands/issue-type-property/delete.js +14 -1
- package/lib/commands/issue-type-property/get-keys.js +15 -1
- package/lib/commands/issue-type-property/get.js +16 -1
- package/lib/commands/issue-type-property/set.js +28 -1
- package/lib/commands/issue-type-scheme/add-issue-types.js +23 -1
- package/lib/commands/issue-type-scheme/assign-to-project.js +20 -1
- package/lib/commands/issue-type-scheme/create.js +20 -1
- package/lib/commands/issue-type-scheme/delete.js +14 -1
- package/lib/commands/issue-type-scheme/get-for-projects.js +32 -1
- package/lib/commands/issue-type-scheme/get-issue-types.js +20 -1
- package/lib/commands/issue-type-scheme/get-mappings.js +20 -1
- package/lib/commands/issue-type-scheme/get-projects.js +20 -1
- package/lib/commands/issue-type-scheme/move-issue-types.js +16 -1
- package/lib/commands/issue-type-scheme/remove-all-projects.js +14 -1
- package/lib/commands/issue-type-scheme/remove-issue-type.js +13 -1
- package/lib/commands/issue-type-scheme/remove-project.js +20 -1
- package/lib/commands/issue-type-scheme/search.js +47 -1
- package/lib/commands/issue-type-scheme/set-projects.js +20 -1
- package/lib/commands/issue-type-scheme/update.js +40 -1
- package/lib/commands/issue-type-screen-scheme/add-mappings.js +20 -1
- package/lib/commands/issue-type-screen-scheme/assign-to-project.js +16 -1
- package/lib/commands/issue-type-screen-scheme/create.js +27 -1
- package/lib/commands/issue-type-screen-scheme/delete.js +13 -1
- package/lib/commands/issue-type-screen-scheme/get-for-projects.js +32 -1
- package/lib/commands/issue-type-screen-scheme/get-items.js +25 -1
- package/lib/commands/issue-type-screen-scheme/get-projects.js +20 -1
- package/lib/commands/issue-type-screen-scheme/remove-mappings.js +13 -1
- package/lib/commands/issue-type-screen-scheme/search.js +27 -1
- package/lib/commands/issue-type-screen-scheme/set-default-screen.js +13 -1
- package/lib/commands/issue-type-screen-scheme/update.js +13 -1
- package/lib/commands/issue-vote/add.js +18 -1
- package/lib/commands/issue-vote/delete.js +18 -1
- package/lib/commands/issue-vote/get-all.js +27 -1
- package/lib/commands/issue-watcher/add.js +25 -1
- package/lib/commands/issue-watcher/delete.js +25 -1
- package/lib/commands/issue-watcher/get-all.js +27 -1
- package/lib/commands/issue-watcher/get-bulk.js +24 -1
- package/lib/commands/jira-expression/analyse.js +78 -1
- package/lib/commands/jira-expression/evaluate.js +103 -1
- package/lib/commands/jira-settings/get-advanced.js +14 -1
- package/lib/commands/jira-settings/get-globals.js +14 -1
- package/lib/commands/jira-settings/get-properties.js +19 -1
- package/lib/commands/jira-settings/set-property.js +15 -1
- package/lib/commands/jql/convert-user-identifiers.js +14 -1
- package/lib/commands/jql/get-auto-complete-suggestions.js +16 -1
- package/lib/commands/jql/get-reference-data.js +39 -1
- package/lib/commands/jql/parse.js +22 -1
- package/lib/commands/jql/sanitize.js +26 -1
- package/lib/commands/label/get-all.js +29 -1
- package/lib/commands/license/get.js +13 -1
- package/lib/commands/myself/change-password.js +21 -1
- package/lib/commands/myself/delete-preference.js +17 -1
- package/lib/commands/myself/get-locale.js +13 -1
- package/lib/commands/myself/get-preference.js +27 -1
- package/lib/commands/myself/get.js +21 -1
- package/lib/commands/myself/set-preference.js +37 -1
- package/lib/commands/myself/update-user.js +24 -1
- package/lib/commands/notification-scheme/add.js +75 -1
- package/lib/commands/notification-scheme/create.js +80 -1
- package/lib/commands/notification-scheme/delete-notification.js +22 -1
- package/lib/commands/notification-scheme/delete.js +18 -1
- package/lib/commands/notification-scheme/get-all.js +57 -1
- package/lib/commands/notification-scheme/get-projects.js +29 -1
- package/lib/commands/notification-scheme/get.js +75 -1
- package/lib/commands/notification-scheme/update.js +23 -1
- package/lib/commands/permission/check-global-permission.js +53 -1
- package/lib/commands/permission/check-issue-permission.js +60 -1
- package/lib/commands/permission/check-project-permission.js +65 -1
- package/lib/commands/permission/get-all.js +23 -1
- package/lib/commands/permission/get-my.js +33 -1
- package/lib/commands/permission/get-permitted.js +30 -1
- package/lib/commands/permission-scheme/create-grant.js +54 -1
- package/lib/commands/permission-scheme/create-scheme.js +21 -1
- package/lib/commands/permission-scheme/delete-grant.js +23 -1
- package/lib/commands/permission-scheme/delete-scheme.js +18 -1
- package/lib/commands/permission-scheme/get-all-grants.js +39 -1
- package/lib/commands/permission-scheme/get-all.js +38 -1
- package/lib/commands/permission-scheme/get-grant.js +65 -1
- package/lib/commands/permission-scheme/get.js +24 -1
- package/lib/commands/project/archive.js +15 -1
- package/lib/commands/project/create.js +26 -1
- package/lib/commands/project/delete.js +15 -1
- package/lib/commands/project/get-all-issue-types.js +16 -1
- package/lib/commands/project/get-all.js +16 -1
- package/lib/commands/project/get-issue-type-hierarchy.js +15 -1
- package/lib/commands/project/get-notification-schema.js +16 -1
- package/lib/commands/project/get.js +31 -1
- package/lib/commands/project/project.js +40 -1
- package/lib/commands/project/restore.js +18 -1
- package/lib/commands/project/search.js +28 -1
- package/lib/commands/project/unarchive.js +18 -1
- package/lib/commands/project/update.js +38 -1
- package/lib/commands/project-avatar/delete.js +14 -1
- package/lib/commands/project-avatar/get-all.js +21 -1
- package/lib/commands/project-avatar/set.js +19 -1
- package/lib/commands/project-avatar/upload.js +51 -1
- package/lib/commands/project-category/create.js +16 -1
- package/lib/commands/project-category/delete.js +15 -1
- package/lib/commands/project-category/get-all.js +15 -1
- package/lib/commands/project-category/get.js +31 -1
- package/lib/commands/project-category/update.js +16 -1
- package/lib/commands/project-component/create.js +52 -1
- package/lib/commands/project-component/delete.js +15 -1
- package/lib/commands/project-component/get-all.js +21 -1
- package/lib/commands/project-component/get-issues-count.js +19 -1
- package/lib/commands/project-component/get.js +31 -1
- package/lib/commands/project-component/search.js +20 -1
- package/lib/commands/project-component/update.js +19 -1
- package/lib/commands/project-email/get-sender.js +17 -1
- package/lib/commands/project-email/set-sender.js +16 -1
- package/lib/commands/project-feature/get.js +36 -1
- package/lib/commands/project-feature/set.js +29 -1
- package/lib/commands/project-key-and-name-validation/get-valid-key.js +15 -1
- package/lib/commands/project-key-and-name-validation/get-valid-name.js +15 -1
- package/lib/commands/project-key-and-name-validation/validate-key.js +21 -1
- package/lib/commands/project-permission-scheme/get-issue-security-levels.js +17 -1
- package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +12 -1
- package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +16 -1
- package/lib/commands/project-permission-scheme/get-permissions.js +11 -1
- package/lib/commands/project-permission-scheme/get.js +16 -1
- package/lib/commands/project-permission-scheme/set.js +16 -1
- package/lib/commands/project-property/delete.js +15 -1
- package/lib/commands/project-property/get-keys.js +17 -1
- package/lib/commands/project-property/get.js +16 -1
- package/lib/commands/project-property/set.js +19 -1
- package/lib/commands/project-role/create.js +16 -1
- package/lib/commands/project-role/delete.js +15 -1
- package/lib/commands/project-role/get-all.js +16 -1
- package/lib/commands/project-role/get-role.js +34 -1
- package/lib/commands/project-role/get-roles-and-details.js +19 -1
- package/lib/commands/project-role/get-roles.js +19 -1
- package/lib/commands/project-role/get.js +31 -1
- package/lib/commands/project-role/project-role.js +15 -1
- package/lib/commands/project-role/update-partial.js +24 -1
- package/lib/commands/project-role/update.js +15 -1
- package/lib/commands/project-role-actor/add-actors.js +42 -1
- package/lib/commands/project-role-actor/add-default-actors.js +42 -1
- package/lib/commands/project-role-actor/delete-actors.js +35 -1
- package/lib/commands/project-role-actor/delete-default-actors.js +30 -1
- package/lib/commands/project-role-actor/get.js +35 -1
- package/lib/commands/project-role-actor/set-actors.js +37 -1
- package/lib/commands/project-type/check-accessible.js +15 -1
- package/lib/commands/project-type/get-all.js +14 -1
- package/lib/commands/project-type/get-licensed.js +14 -1
- package/lib/commands/project-type/get.js +30 -1
- package/lib/commands/project-type/update.js +18 -1
- package/lib/commands/project-version/create.js +19 -1
- package/lib/commands/project-version/delete-and-replace.js +25 -1
- package/lib/commands/project-version/get-all.js +16 -1
- package/lib/commands/project-version/get-related-issue-count.js +16 -1
- package/lib/commands/project-version/get-unresolved-issue-count.js +16 -1
- package/lib/commands/project-version/get.js +31 -1
- package/lib/commands/project-version/merge.js +15 -2
- package/lib/commands/project-version/move.js +15 -1
- package/lib/commands/project-version/search.js +19 -1
- package/lib/commands/project-version/update.js +16 -1
- package/lib/commands/screen/add-field-to-default-screen.js +18 -1
- package/lib/commands/screen/create.js +15 -1
- package/lib/commands/screen/delete.js +13 -1
- package/lib/commands/screen/get-all.js +44 -1
- package/lib/commands/screen/get-available-fields.js +19 -1
- package/lib/commands/screen/get-field-screens.js +24 -1
- package/lib/commands/screen/get-workflows.js +36 -1
- package/lib/commands/screen/update.js +16 -1
- package/lib/commands/screen-scheme/create.js +25 -1
- package/lib/commands/screen-scheme/delete.js +13 -1
- package/lib/commands/screen-scheme/get-all.js +30 -1
- package/lib/commands/screen-scheme/update.js +31 -1
- package/lib/commands/screen-tab/create.js +17 -1
- package/lib/commands/screen-tab/delete.js +14 -1
- package/lib/commands/screen-tab/get-all.js +17 -1
- package/lib/commands/screen-tab/move.js +14 -1
- package/lib/commands/screen-tab/update.js +15 -1
- package/lib/commands/screen-tab-field/add.js +19 -1
- package/lib/commands/screen-tab-field/get-all.js +17 -1
- package/lib/commands/screen-tab-field/move.js +16 -1
- package/lib/commands/screen-tab-field/remove.js +17 -1
- package/lib/commands/server-info/get.js +14 -1
- package/lib/commands/server-info/jmx.js +15 -1
- package/lib/commands/status/create.js +31 -1
- package/lib/commands/status/delete.js +24 -1
- package/lib/commands/status/get-usages.js +24 -1
- package/lib/commands/status/get.js +53 -1
- package/lib/commands/status/search.js +44 -1
- package/lib/commands/status/status-command.js +31 -1
- package/lib/commands/status/update.js +24 -1
- package/lib/commands/task/cancel.js +13 -1
- package/lib/commands/task/get.js +29 -1
- package/lib/commands/time-tracking/get-all.js +13 -1
- package/lib/commands/time-tracking/get-setting.js +13 -1
- package/lib/commands/time-tracking/get.js +13 -1
- package/lib/commands/time-tracking/select.js +19 -1
- package/lib/commands/time-tracking/set.js +31 -1
- package/lib/commands/user/add-user-to-application.js +21 -1
- package/lib/commands/user/change-password.js +18 -1
- package/lib/commands/user/create.js +45 -1
- package/lib/commands/user/delete.js +24 -1
- package/lib/commands/user/get-all.js +32 -1
- package/lib/commands/user/get-default-columns.js +39 -1
- package/lib/commands/user/get-email.js +25 -1
- package/lib/commands/user/get-user-groups.js +26 -1
- package/lib/commands/user/get.js +40 -1
- package/lib/commands/user/remove-user-from-application.js +21 -1
- package/lib/commands/user/reset-default-columns.js +33 -1
- package/lib/commands/user/set-default-columns.js +26 -1
- package/lib/commands/user/update.js +30 -1
- package/lib/commands/user/user-command.js +22 -1
- package/lib/commands/user-property/delete.js +32 -1
- package/lib/commands/user-property/get-all-keys.js +32 -1
- package/lib/commands/user-property/get-user-property.js +34 -1
- package/lib/commands/user-property/set.js +39 -1
- package/lib/commands/user-search/accounts-with-query.js +27 -1
- package/lib/commands/user-search/assignable-users-bulk.js +21 -1
- package/lib/commands/user-search/assignable-users.js +21 -1
- package/lib/commands/user-search/find.js +23 -1
- package/lib/commands/user-search/with-permission.js +24 -1
- package/lib/commands/user-search/with-query.js +27 -1
- package/lib/commands/workflow/create.js +36 -1
- package/lib/commands/workflow/delete.js +13 -1
- package/lib/commands/workflow/get-projects.js +14 -1
- package/lib/commands/workflow/get-schemes.js +14 -1
- package/lib/commands/workflow/get-statuses-properties.js +26 -1
- package/lib/commands/workflow/get-statuses.js +14 -1
- package/lib/commands/workflow/get-transitions-rules.js +44 -1
- package/lib/commands/workflow/get-transitions.js +21 -1
- package/lib/commands/workflow/search.js +66 -1
- package/lib/commands/workflow-scheme/create.js +59 -3
- package/lib/commands/workflow-scheme/delete-default-workflow.js +15 -1
- package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +16 -1
- package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +16 -1
- package/lib/commands/workflow-scheme/delete.js +14 -1
- package/lib/commands/workflow-scheme/get-all.js +20 -1
- package/lib/commands/workflow-scheme/get-default-workflow.js +15 -1
- package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +30 -1
- package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +15 -1
- package/lib/commands/workflow-scheme/get.js +31 -1
- package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +21 -1
- package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +27 -1
- package/lib/commands/workflow-scheme/update-default-workflow.js +15 -1
- package/lib/commands/workflow-scheme/update.js +61 -3
- package/lib/commands/workflow-scheme-draft/create.js +15 -1
- package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +15 -1
- package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +16 -1
- package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +16 -1
- package/lib/commands/workflow-scheme-draft/delete.js +14 -1
- package/lib/commands/workflow-scheme-draft/get-default-workflow.js +15 -1
- package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +30 -1
- package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +15 -1
- package/lib/commands/workflow-scheme-draft/get.js +30 -1
- package/lib/commands/workflow-scheme-draft/publish.js +21 -1
- package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +21 -1
- package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +27 -1
- package/lib/commands/workflow-scheme-draft/update-default-workflow.js +15 -1
- package/lib/commands/workflow-scheme-draft/update.js +61 -3
- package/lib/commands/workflow-scheme-project-association/assign.js +18 -1
- package/lib/commands/workflow-scheme-project-association/get-all.js +30 -1
- package/lib/commands/workflow-status/get-all.js +14 -1
- package/lib/commands/workflow-status/get.js +30 -1
- package/lib/commands/workflow-status-category/get-all.js +14 -1
- package/lib/commands/workflow-status-category/get.js +15 -1
- package/lib/commands/workflow-transition-property/create.js +17 -1
- package/lib/commands/workflow-transition-property/delete.js +16 -1
- package/lib/commands/workflow-transition-property/get.js +20 -1
- package/lib/commands/workflow-transition-property/update.js +17 -1
- package/lib/commands/worklog/add.js +40 -1
- package/lib/commands/worklog/delete.js +21 -1
- package/lib/commands/worklog/get-deleted.js +21 -1
- package/lib/commands/worklog/get-for-issue.js +28 -1
- package/lib/commands/worklog/get-updated.js +17 -1
- package/lib/commands/worklog/get-with-ids.js +30 -1
- package/lib/commands/worklog/get.js +38 -1
- package/lib/commands/worklog/update.js +23 -1
- package/lib/commands/worklog-property/delete.js +14 -1
- package/lib/commands/worklog-property/get-keys.js +15 -1
- package/lib/commands/worklog-property/get.js +15 -1
- package/lib/commands/worklog-property/set-property.js +14 -1
- package/lib/index.js +5 -1
- package/lib/oclif-config.js +8 -0
- package/package.json +32 -27
- package/lib/commands/avatar/get-all-user-avatar.js +0 -1
- package/lib/commands/issue-security-scheme/associate-security-scheme.js +0 -1
|
@@ -1 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
class GetIssuePropertyKeys extends atlascli_common_1.CommandWithSite {
|
|
6
|
+
async runWithSite(site) {
|
|
7
|
+
const { flags } = await this.parse(GetIssuePropertyKeys);
|
|
8
|
+
const jira = this.getJira(site, flags);
|
|
9
|
+
const res = await jira.issuePropertyManager.getIssuePropertyKeys(flags.issue);
|
|
10
|
+
this.display(flags, res.keys);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = GetIssuePropertyKeys;
|
|
14
|
+
GetIssuePropertyKeys.description = "Gets the URLs and keys of an issue's properties. This operation can be accessed anonymously.";
|
|
15
|
+
GetIssuePropertyKeys.flags = Object.assign({ issue: core_1.Flags.string({ description: 'The key or ID of the issue.', required: true }) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.modifyPropertyResponseForDisplay = void 0;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
+
function modifyPropertyResponseForDisplay(response) {
|
|
7
|
+
response.value = JSON.stringify(response.value);
|
|
8
|
+
return response;
|
|
9
|
+
}
|
|
10
|
+
exports.modifyPropertyResponseForDisplay = modifyPropertyResponseForDisplay;
|
|
11
|
+
class GetIssueProperty extends atlascli_common_1.CommandWithSite {
|
|
12
|
+
async runWithSite(site) {
|
|
13
|
+
const { flags } = await this.parse(GetIssueProperty);
|
|
14
|
+
const jira = this.getJira(site, flags);
|
|
15
|
+
const res = await jira.issuePropertyManager.getIssueProperty(flags.issue, flags.key);
|
|
16
|
+
this.display(flags, modifyPropertyResponseForDisplay(res));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = GetIssueProperty;
|
|
20
|
+
GetIssueProperty.description = "Gets the key and value of an issue's property.";
|
|
21
|
+
GetIssueProperty.flags = Object.assign({ issue: core_1.Flags.string({ description: 'The key or ID of the issue.', required: true }), key: core_1.Flags.string({ description: 'The key of the property.', required: true }) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,49 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
const set_1 = require("./set");
|
|
6
|
+
class SetIssuePropertyBulk extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
7
|
+
async runWithCloudSite(site, jira) {
|
|
8
|
+
const { flags, args } = await this.parse(SetIssuePropertyBulk);
|
|
9
|
+
if (flags.show) {
|
|
10
|
+
this.showSampleJsonBody(flags);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
if (flags.key === undefined)
|
|
14
|
+
this.error('Missing required flag:\n --key KEY The key of the property.\nSee more help with --help');
|
|
15
|
+
let request = args.jsonBody;
|
|
16
|
+
if (typeof request === 'undefined') {
|
|
17
|
+
request = await (0, atlascli_common_1.readStdin)();
|
|
18
|
+
if (!request || request.length === 0) {
|
|
19
|
+
throw new Error('You should provide a valid JSON for the issue! You can use `jira issue-property:set-bulk --show` command to generate a valid JSON body.');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const res = await jira.issuePropertyManager.bulkSetIssueProperty(flags.key, (0, set_1.isJson)(request) ? JSON.parse(request) : request);
|
|
23
|
+
this.display(flags, res);
|
|
24
|
+
if (!flags.silent)
|
|
25
|
+
await this.showProgressBar(res, jira, 'Setting properties...');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
showSampleJsonBody(flags) {
|
|
29
|
+
const newObject = { expression: 'Jira Expression' };
|
|
30
|
+
newObject.value = {
|
|
31
|
+
owner: 'admin',
|
|
32
|
+
weight: 100,
|
|
33
|
+
};
|
|
34
|
+
newObject.filter = {
|
|
35
|
+
hasProperty: true,
|
|
36
|
+
entityIds: [10100, 10010],
|
|
37
|
+
currentValue: {
|
|
38
|
+
owner: 'admin',
|
|
39
|
+
weight: 50,
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
flags.json = true;
|
|
43
|
+
this.display(flags, newObject);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.default = SetIssuePropertyBulk;
|
|
47
|
+
SetIssuePropertyBulk.description = 'Sets a property value on multiple issues. This operation is asynchronous. You can use `jira task:get` command to obtain any updates.';
|
|
48
|
+
SetIssuePropertyBulk.flags = Object.assign({ key: core_1.Flags.string({ description: 'The key of the property. (Required)' }), show: core_1.Flags.boolean({ description: 'Prepare a sample JSON output for command.' }), silent: core_1.Flags.boolean({ description: "If you activate this flag progress bar will not be shown and you won't wait for the process. If you want to get details about task you can simply call `jira task:get` command." }) }, atlascli_common_1.CommandWithSite.flags);
|
|
49
|
+
SetIssuePropertyBulk.args = [{ name: 'jsonBody', description: 'Bulk set request in JSON format.' }];
|
|
@@ -1 +1,47 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
const set_1 = require("./set");
|
|
6
|
+
class BulkSetIssuePropertiesByIssue extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
7
|
+
async runWithCloudSite(site, jira) {
|
|
8
|
+
const { flags, args } = await this.parse(BulkSetIssuePropertiesByIssue);
|
|
9
|
+
if (flags.show) {
|
|
10
|
+
this.showSampleJsonBody(flags);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
let request = args.jsonBody;
|
|
14
|
+
if (typeof request === 'undefined') {
|
|
15
|
+
request = await (0, atlascli_common_1.readStdin)();
|
|
16
|
+
if (!request || request.length === 0) {
|
|
17
|
+
throw new Error('You should provide a valid JSON for the issue! You can use `jira issue-property:set-by-issue-bulk --show` command to generate a valid JSON body.');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const res = await jira.issuePropertyManager.bulkSetIssuePropertiesByIssue((0, set_1.isJson)(request) ? JSON.parse(request) : request);
|
|
21
|
+
this.display(flags, res);
|
|
22
|
+
if (!flags.silent)
|
|
23
|
+
await this.showProgressBar(res, jira, 'Setting properties...');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
showSampleJsonBody(flags) {
|
|
27
|
+
const newObject = { issues: [] };
|
|
28
|
+
newObject.issues.push({
|
|
29
|
+
issueID: 1000,
|
|
30
|
+
properties: {
|
|
31
|
+
myProperties: { owner: 'admin', weight: 100 },
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
newObject.issues.push({
|
|
35
|
+
issueID: 1001,
|
|
36
|
+
properties: {
|
|
37
|
+
myOtherProperties: { cost: 150, transportation: 'car' },
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
flags.json = true;
|
|
41
|
+
this.display(flags, newObject);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.default = BulkSetIssuePropertiesByIssue;
|
|
45
|
+
BulkSetIssuePropertiesByIssue.description = 'Sets or updates entity property values on issues. Up to 10 entity properties can be specified for each issue and up to 100 issues included in the request. This operation is asynchronous. You can use `jira task:get` command to obtain any updates.';
|
|
46
|
+
BulkSetIssuePropertiesByIssue.flags = Object.assign({ show: core_1.Flags.boolean({ description: 'Prepare a sample JSON output for command.' }), silent: core_1.Flags.boolean({ description: "If you activate this flag progress bar will not be shown and you won't wait for the process. If you want to get details about task you can simply call `jira task:get` command." }) }, atlascli_common_1.CommandWithSite.flags);
|
|
47
|
+
BulkSetIssuePropertiesByIssue.args = [{ name: 'jsonBody', description: 'Bulk set issue properties by issue request in JSON format.' }];
|
|
@@ -1 +1,34 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
const set_1 = require("./set");
|
|
6
|
+
class BulkSetIssuePropertiesByList extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
7
|
+
async runWithCloudSite(site, jira) {
|
|
8
|
+
const { flags, args } = await this.parse(BulkSetIssuePropertiesByList);
|
|
9
|
+
if (flags.show) {
|
|
10
|
+
flags.json = true;
|
|
11
|
+
this.display(flags, {
|
|
12
|
+
entitiesIds: [2154, 2153],
|
|
13
|
+
properties: {},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
let request = args.jsonBody;
|
|
18
|
+
if (typeof request === 'undefined') {
|
|
19
|
+
request = await (0, atlascli_common_1.readStdin)();
|
|
20
|
+
if (!request || request.length === 0) {
|
|
21
|
+
throw new Error('You should provide a valid JSON for the issue! You can use `jira issue-property:set-by-list-bulk --show` command to generate a valid JSON body.');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const res = await jira.issuePropertyManager.bulkSetIssuesPropertiesByList((0, set_1.isJson)(request) ? JSON.parse(request) : request);
|
|
25
|
+
this.display(flags, res);
|
|
26
|
+
if (!flags.silent)
|
|
27
|
+
await this.showProgressBar(res, jira, 'Setting properties...');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.default = BulkSetIssuePropertiesByList;
|
|
32
|
+
BulkSetIssuePropertiesByList.description = 'Sets or updates a list of entity property values on issues. A list of up to 10 entity properties can be specified along with up to 10,000 issues on which to set or update that list of entity properties. This operation is asynchronous. You can use `jira task:get` command to obtain any updates.';
|
|
33
|
+
BulkSetIssuePropertiesByList.flags = Object.assign({ show: core_1.Flags.boolean({ description: 'Prepare a sample JSON output for command.' }), silent: core_1.Flags.boolean({ description: 'If you activate this flag progress bar will not be shown and you will not wait for the process. If you want to get details about task you can simply call `jira task:get` command.' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
34
|
+
BulkSetIssuePropertiesByList.args = [{ name: 'jsonBody', description: 'Bulk set issue properties by list request in JSON format.' }];
|
|
@@ -1 +1,38 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isJson = void 0;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
+
function isJson(value) {
|
|
7
|
+
try {
|
|
8
|
+
JSON.parse(value);
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
catch (error) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.isJson = isJson;
|
|
16
|
+
class SetProperty extends atlascli_common_1.CommandWithSite {
|
|
17
|
+
async runWithSite(site) {
|
|
18
|
+
const { flags, args } = await this.parse(SetProperty);
|
|
19
|
+
const jira = this.getJira(site, flags);
|
|
20
|
+
let request = args.jsonBody;
|
|
21
|
+
if (typeof request === 'undefined') {
|
|
22
|
+
request = await (0, atlascli_common_1.readStdin)();
|
|
23
|
+
if (!request || request.length === 0) {
|
|
24
|
+
throw new Error('You should provide a valid JSON!');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
await jira.issuePropertyManager.setIssueProperty(flags.issue, flags.key, isJson(request) ? JSON.parse(request) : request);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = SetProperty;
|
|
31
|
+
SetProperty.description = "Sets the value of an issue's property. Use this resource to store custom data against an issue. The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters.";
|
|
32
|
+
SetProperty.flags = Object.assign({ issue: core_1.Flags.string({ description: 'The key or ID of the issue.', required: true }), key: core_1.Flags.string({ description: 'The key of the property.', required: true }) }, atlascli_common_1.CommandWithSite.flags);
|
|
33
|
+
SetProperty.args = [
|
|
34
|
+
{
|
|
35
|
+
name: 'jsonBody',
|
|
36
|
+
description: 'Issue property set request in JSON format.',
|
|
37
|
+
},
|
|
38
|
+
];
|
|
@@ -1 +1,56 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
const set_1 = require("../issue-property/set");
|
|
6
|
+
class CreateRemoteLink extends atlascli_common_1.BaseCommandWithSite {
|
|
7
|
+
async runWithSite(site) {
|
|
8
|
+
const { flags, args } = await this.parse(CreateRemoteLink);
|
|
9
|
+
const jira = this.getJira(site, flags);
|
|
10
|
+
if (flags.show) {
|
|
11
|
+
this.showSampleCreateRequest(flags);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
if (!flags.issue)
|
|
15
|
+
this.error('You must specify issue ID or Key.');
|
|
16
|
+
await this.createRemoteIssueLink(flags, args, jira);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
async createRemoteIssueLink(flags, args, jira) {
|
|
20
|
+
let request = args.issueRemoteLinkBody;
|
|
21
|
+
if (typeof request === 'undefined') {
|
|
22
|
+
request = await (0, atlascli_common_1.readStdin)();
|
|
23
|
+
if (!request || request.length === 0 || !(0, set_1.isJson)(request)) {
|
|
24
|
+
throw new Error('You should provide a valid JSON for the remote link! You can use `jira issue-remote-link:create --show` command to generate a valid JSON body.');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const res = await jira.issueRemoteLinkManager.createOrUpdateRemoteLink(flags.issue, JSON.parse(request));
|
|
28
|
+
this.display(flags, res);
|
|
29
|
+
}
|
|
30
|
+
showSampleCreateRequest(flags) {
|
|
31
|
+
const sampleCreationRequest = { object: { url: 'http://www.mycompany.com/support?id=1', title: 'TSTSUP-111', summary: 'Customer support issue' } };
|
|
32
|
+
sampleCreationRequest.object.icon = { url16x16: 'http://www.mycompany.com/support/ticket.png', title: 'Support Ticket' };
|
|
33
|
+
sampleCreationRequest.object.status = {
|
|
34
|
+
icon: {
|
|
35
|
+
url16x16: 'http://www.mycompany.com/support/resolved.png',
|
|
36
|
+
link: 'http://www.mycompany.com/support?id=1&details=closed',
|
|
37
|
+
title: 'Case Closed',
|
|
38
|
+
},
|
|
39
|
+
resolved: true,
|
|
40
|
+
};
|
|
41
|
+
sampleCreationRequest.globalId = 'system=http://www.mycompany.com/support&id=1';
|
|
42
|
+
sampleCreationRequest.application = { name: 'My Acme Tracker', type: 'com.acme.tracker' };
|
|
43
|
+
sampleCreationRequest.relationship = 'causes';
|
|
44
|
+
flags.json = true;
|
|
45
|
+
this.display(flags, sampleCreationRequest);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.default = CreateRemoteLink;
|
|
49
|
+
CreateRemoteLink.description = 'Creates or updates a remote issue link for an issue. You must provide request body as JSON using STDIN.\nNOTE: If a globalId is provided and a remote issue link with that global ID is found it is updated. Any fields without values in the request are set to null. Otherwise, the remote issue link is created.';
|
|
50
|
+
CreateRemoteLink.flags = Object.assign({ issue: core_1.Flags.string({ char: 'i', description: 'Issue ID or Key.' }), show: core_1.Flags.boolean({ description: 'Prepare a sample JSON output for issue remote link creation.' }) }, atlascli_common_1.BaseCommandWithSite.flags);
|
|
51
|
+
CreateRemoteLink.args = [
|
|
52
|
+
{
|
|
53
|
+
name: 'issueRemoteLinkBody',
|
|
54
|
+
description: 'Issue remote link creation request body in JSON format.',
|
|
55
|
+
},
|
|
56
|
+
];
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
+
class DeletRemoteLinkByGlobalId extends atlascli_common_1.BaseCommandWithSite {
|
|
7
|
+
async runWithSite(site) {
|
|
8
|
+
const { flags } = await this.parse(DeletRemoteLinkByGlobalId);
|
|
9
|
+
const jira = this.getJira(site, flags);
|
|
10
|
+
const _a = this.removeFlagsFromBase(flags), { issue } = _a, query = tslib_1.__rest(_a, ["issue"]);
|
|
11
|
+
await jira.issueRemoteLinkManager.deleteRemoteLinkByGlobalId(issue, query);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.default = DeletRemoteLinkByGlobalId;
|
|
15
|
+
DeletRemoteLinkByGlobalId.description = "Deletes the remote issue link from the issue using the link's global ID.";
|
|
16
|
+
DeletRemoteLinkByGlobalId.flags = Object.assign({ issue: core_1.Flags.string({ char: 'i', description: 'Issue ID or Key.', required: true }), globalId: core_1.Flags.string({ description: 'The global ID of the remote issue link.', required: true }) }, atlascli_common_1.BaseCommandWithSite.flags);
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
const get_1 = tslib_1.__importDefault(require("./get"));
|
|
6
|
+
class DeletRemoteLink extends atlascli_common_1.BaseCommandWithSite {
|
|
7
|
+
async runWithSite(site) {
|
|
8
|
+
const { flags } = await this.parse(DeletRemoteLink);
|
|
9
|
+
const jira = this.getJira(site, flags);
|
|
10
|
+
await jira.issueRemoteLinkManager.deleteRemoteLinkById(flags.issue, flags.linkId);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = DeletRemoteLink;
|
|
14
|
+
DeletRemoteLink.description = 'Deletes a remote issue link from an issue.';
|
|
15
|
+
DeletRemoteLink.flags = get_1.default.flags;
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
+
class GetRemoteLinks extends atlascli_common_1.BaseCommandWithSite {
|
|
7
|
+
async runWithSite(site) {
|
|
8
|
+
const { flags } = await this.parse(GetRemoteLinks);
|
|
9
|
+
const jira = this.getJira(site, flags);
|
|
10
|
+
const _a = this.removeFlagsFromBase(flags), { issue } = _a, query = tslib_1.__rest(_a, ["issue"]);
|
|
11
|
+
const res = await jira.issueRemoteLinkManager.getRemoteLinks(issue, query);
|
|
12
|
+
this.display(flags, this.modifyResponse(res), (o, newO) => {
|
|
13
|
+
newO.summary = o.object.summary || '';
|
|
14
|
+
newO.url = o.object.url;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
modifyResponse(res) {
|
|
18
|
+
res.map((link) => {
|
|
19
|
+
link.title = link.object.title;
|
|
20
|
+
return link;
|
|
21
|
+
});
|
|
22
|
+
return res;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.default = GetRemoteLinks;
|
|
26
|
+
GetRemoteLinks.description = 'Returns the remote issue links for an issue.\nNOTE: When a remote issue link global ID is provided the record with that global ID is returned, otherwise all remote issue links are returned. Where a global ID includes reserved URL characters these must be escaped in the request. For example, pass system=http://www.mycompany.com/support&id=1 as system%3Dhttp%3A%2F%2Fwww.mycompany.com%2Fsupport%26id%3D1.';
|
|
27
|
+
GetRemoteLinks.flags = Object.assign({ issue: core_1.Flags.string({ char: 'i', description: 'Issue ID or Key.' }), globalId: core_1.Flags.string({ description: 'The global ID of the remote issue link.' }) }, atlascli_common_1.BaseCommandWithSite.flags);
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
class GetRemoteLink extends atlascli_common_1.BaseCommandWithSite {
|
|
6
|
+
async runWithSite(site) {
|
|
7
|
+
const { flags } = await this.parse(GetRemoteLink);
|
|
8
|
+
const jira = this.getJira(site, flags);
|
|
9
|
+
const res = await jira.issueRemoteLinkManager.getRemoteLinkById(flags.issue, flags.linkId);
|
|
10
|
+
this.display(flags, this.modifyResponse(res), (o, newO) => {
|
|
11
|
+
newO.summary = o.object.summary || '';
|
|
12
|
+
newO.url = o.object.url;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
modifyResponse(res) {
|
|
16
|
+
res.title = res.object.title;
|
|
17
|
+
return res;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = GetRemoteLink;
|
|
21
|
+
GetRemoteLink.description = 'Returns a remote issue link for an issue.';
|
|
22
|
+
GetRemoteLink.flags = Object.assign({ issue: core_1.Flags.string({ char: 'i', description: 'Issue ID or Key.', required: true }), linkId: core_1.Flags.string({ description: 'The ID of the remote issue link.', required: true }) }, atlascli_common_1.BaseCommandWithSite.flags);
|
|
@@ -1 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
+
const set_1 = require("../issue-property/set");
|
|
7
|
+
const create_1 = tslib_1.__importDefault(require("./create"));
|
|
8
|
+
class UpdateRemoteLink extends create_1.default {
|
|
9
|
+
async runWithSite(site) {
|
|
10
|
+
const { flags, args } = await this.parse(UpdateRemoteLink);
|
|
11
|
+
const jira = this.getJira(site, flags);
|
|
12
|
+
if (flags.show) {
|
|
13
|
+
this.showSampleCreateRequest(flags);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
if (!flags.issue && !flags.linkId)
|
|
17
|
+
this.error('You must specify both issue Id or Key and remote link ID.');
|
|
18
|
+
await this.updateRemoteIssueLink(flags, args, jira);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
async updateRemoteIssueLink(flags, args, jira) {
|
|
22
|
+
let request = args.issueRemoteLinkBody;
|
|
23
|
+
if (typeof request === 'undefined') {
|
|
24
|
+
request = await (0, atlascli_common_1.readStdin)();
|
|
25
|
+
if (!request || request.length === 0 || !(0, set_1.isJson)(request)) {
|
|
26
|
+
throw new Error('You should provide a valid JSON for the remote link! You can use `jira issue-remote-link:update --show` command to generate a valid JSON body.');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
await jira.issueRemoteLinkManager.updateRemoteLinkById(flags.issue, flags.linkId, JSON.parse(request));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.default = UpdateRemoteLink;
|
|
33
|
+
UpdateRemoteLink.description = 'Updates a remote issue link for an issue.';
|
|
34
|
+
UpdateRemoteLink.flags = Object.assign({ linkId: core_1.Flags.string({ description: 'The ID of the remote issue link.' }) }, create_1.default.flags);
|
|
35
|
+
UpdateRemoteLink.args = [
|
|
36
|
+
{
|
|
37
|
+
name: 'issueRemoteLinkBody',
|
|
38
|
+
description: 'Issue remote link update request body in JSON format.',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
@@ -1 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
class CreateIssueResolution extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
6
|
+
async runWithCloudSite(site, jira) {
|
|
7
|
+
const { flags } = await this.parse(CreateIssueResolution);
|
|
8
|
+
const res = await jira.issueResolutionManager.createIssueResolution(this.removeFlagsFromBase(flags));
|
|
9
|
+
this.display(flags, res);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = CreateIssueResolution;
|
|
13
|
+
CreateIssueResolution.description = 'Creates an issue resolution. Only for cloud';
|
|
14
|
+
CreateIssueResolution.flags = Object.assign({ name: core_1.Flags.string({
|
|
15
|
+
char: 'n',
|
|
16
|
+
description: 'The name of the resolution. Must be unique (case-insensitive).',
|
|
17
|
+
required: true,
|
|
18
|
+
}), description: core_1.Flags.string({
|
|
19
|
+
description: 'The description of the resolution.',
|
|
20
|
+
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,28 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
+
class DeleteIssueResolution extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
7
|
+
async runWithCloudSite(site, jira) {
|
|
8
|
+
const { flags } = await this.parse(DeleteIssueResolution);
|
|
9
|
+
const _a = this.removeFlagsFromBase(flags), { id } = _a, parsedFlags = tslib_1.__rest(_a, ["id"]);
|
|
10
|
+
const res = await jira.issueResolutionManager.deleteIssueResolution(id, parsedFlags);
|
|
11
|
+
await this.display(flags, res);
|
|
12
|
+
if (!flags.silent)
|
|
13
|
+
await this.showProgressBar(res, jira, 'The resolution is deleting...');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.default = DeleteIssueResolution;
|
|
17
|
+
DeleteIssueResolution.description = 'Deletes an issue resolution.';
|
|
18
|
+
DeleteIssueResolution.flags = Object.assign({ id: core_1.Flags.string({
|
|
19
|
+
char: 'i',
|
|
20
|
+
description: 'The ID of the issue resolution.',
|
|
21
|
+
required: true,
|
|
22
|
+
}), replaceWith: core_1.Flags.string({
|
|
23
|
+
char: 'r',
|
|
24
|
+
description: 'The ID of the issue resolution that will replace the currently selected resolution.',
|
|
25
|
+
required: true,
|
|
26
|
+
}), silent: core_1.Flags.boolean({
|
|
27
|
+
description: 'If you activate this flag progress bar will not be shown.',
|
|
28
|
+
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
4
|
+
class GetAllIssueResolutions extends atlascli_common_1.BaseCommandWithServerSite {
|
|
5
|
+
async runWithServerSite(site, jira) {
|
|
6
|
+
const { flags } = await this.parse(GetAllIssueResolutions);
|
|
7
|
+
const res = await jira.issueResolutionManager.getIssueResolutions();
|
|
8
|
+
this.display(flags, res);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.default = GetAllIssueResolutions;
|
|
12
|
+
GetAllIssueResolutions.description = 'Returns a list of all resolutions. Only for server.';
|
|
13
|
+
GetAllIssueResolutions.flags = Object.assign({}, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,33 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
class GetPriority extends atlascli_common_1.BaseCommandWithServerSite {
|
|
6
|
+
async runWithServerSite(site, jira) {
|
|
7
|
+
const issueResolutionIds = [];
|
|
8
|
+
const { flags, argv } = await this.parse(GetPriority);
|
|
9
|
+
issueResolutionIds.push(...(flags.id || []));
|
|
10
|
+
issueResolutionIds.push(...(Array.isArray(argv) ? argv : typeof argv === 'string' ? [argv] : []));
|
|
11
|
+
if (issueResolutionIds.length === 0)
|
|
12
|
+
this.error('No issue resolution id is specified.');
|
|
13
|
+
const promises = issueResolutionIds.sort().map(issueResolutionId => jira.issueResolutionManager.getIssueResolution(issueResolutionId));
|
|
14
|
+
await Promise.all(promises).then(resolutions => {
|
|
15
|
+
if (resolutions.length > 0)
|
|
16
|
+
this.display(flags, resolutions);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = GetPriority;
|
|
21
|
+
GetPriority.strict = false;
|
|
22
|
+
GetPriority.description = 'Returns a resolution. Only for server';
|
|
23
|
+
GetPriority.flags = Object.assign({ id: core_1.Flags.string({
|
|
24
|
+
char: 'i',
|
|
25
|
+
description: 'Id of issue-resolution.',
|
|
26
|
+
multiple: true,
|
|
27
|
+
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
28
|
+
GetPriority.args = [
|
|
29
|
+
{
|
|
30
|
+
name: 'id',
|
|
31
|
+
description: 'Id of issue-resolution.',
|
|
32
|
+
},
|
|
33
|
+
];
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
+
class MoveIssueResolution extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
7
|
+
async runWithCloudSite(site, jira) {
|
|
8
|
+
const { flags } = await this.parse(MoveIssueResolution);
|
|
9
|
+
const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
|
|
10
|
+
parsedFlags.ids = flags.ids.split(',');
|
|
11
|
+
await jira.issueResolutionManager.moveIssueResolution(parsedFlags);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.default = MoveIssueResolution;
|
|
15
|
+
MoveIssueResolution.description = 'Changes the order of issue resolutions.';
|
|
16
|
+
MoveIssueResolution.flags = Object.assign({ ids: core_1.Flags.string({
|
|
17
|
+
char: 'i',
|
|
18
|
+
description: 'The list of resolution IDs to be reordered. Cannot contain duplicates nor after ID. Example usage: --id=1,2,3',
|
|
19
|
+
required: true,
|
|
20
|
+
}), after: core_1.Flags.string({
|
|
21
|
+
char: 'a',
|
|
22
|
+
description: "The ID of the resolution. Required if position isn't provided",
|
|
23
|
+
}), position: core_1.Flags.string({
|
|
24
|
+
char: 'p',
|
|
25
|
+
description: "The position for issue resolutions to be moved to. Required if after isn't provided.",
|
|
26
|
+
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
+
const atlascli_common_2 = require("@thestarware/atlascli-common");
|
|
7
|
+
class SearchIssueResolution extends atlascli_common_2.BaseCommandWithCloudOrServerSite {
|
|
8
|
+
async runWithCloudSite(site, jira) {
|
|
9
|
+
var _a;
|
|
10
|
+
const { flags } = await this.parse(SearchIssueResolution);
|
|
11
|
+
const _b = this.removeFlagsFromBase(flags), { all } = _b, parsedFlags = tslib_1.__rest(_b, ["all"]);
|
|
12
|
+
parsedFlags.id = (_a = flags.id) === null || _a === void 0 ? void 0 : _a.split(',');
|
|
13
|
+
const res = await jira.issueResolutionManager.searchIssueResolution(parsedFlags);
|
|
14
|
+
if (all)
|
|
15
|
+
res.values = await (0, atlascli_common_1.getAllPaginatedResponseValues)(res, parsedFlags, jira.issueResolutionManager.searchIssueResolution.bind(jira.issueResolutionManager));
|
|
16
|
+
this.display(flags, res.values);
|
|
17
|
+
}
|
|
18
|
+
async runWithServerSite(site, jira) {
|
|
19
|
+
var _a;
|
|
20
|
+
const { flags } = await this.parse(SearchIssueResolution);
|
|
21
|
+
const _b = this.removeFlagsFromBase(flags), { all } = _b, parsedFlags = tslib_1.__rest(_b, ["all"]);
|
|
22
|
+
parsedFlags.id = (_a = flags.id) === null || _a === void 0 ? void 0 : _a.split(',');
|
|
23
|
+
const res = await jira.issueResolutionManager.getPaginatedIssueResolution(parsedFlags);
|
|
24
|
+
if (all)
|
|
25
|
+
res.values = await (0, atlascli_common_1.getAllPaginatedResponseValues)(res, parsedFlags, jira.issueResolutionManager.getPaginatedIssueResolution.bind(jira.issueResolutionManager));
|
|
26
|
+
this.display(flags, res.values);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.default = SearchIssueResolution;
|
|
30
|
+
SearchIssueResolution.description = 'Returns a paginated list of resolutions.';
|
|
31
|
+
SearchIssueResolution.flags = Object.assign(Object.assign(Object.assign({}, atlascli_common_1.getStartAtAndMaxFlags), { id: core_1.Flags.string({
|
|
32
|
+
char: 'i',
|
|
33
|
+
description: 'The list of resolutions IDs to be filtered out.Example usage: --id=1,2,3',
|
|
34
|
+
}), onlyDefault: core_1.Flags.boolean({
|
|
35
|
+
description: 'When set to true, return default only,when IDs provided, if none of them is default, return empty page.',
|
|
36
|
+
default: false,
|
|
37
|
+
}), query: core_1.Flags.string({
|
|
38
|
+
char: 'q',
|
|
39
|
+
description: 'The string that status names will be matched with',
|
|
40
|
+
}), all: core_1.Flags.boolean({ description: 'Whether all responses are returned.', default: false, exclusive: ['startAt', 'maxResults'] }) }), atlascli_common_1.CommandWithSite.flags);
|