@thestarware/atlascli-jira 1.2.4 → 1.2.6
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,20 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
class DeleteIssue extends atlascli_common_1.CommandWithSite {
|
|
6
|
+
async runWithSite(site) {
|
|
7
|
+
const { flags, args } = await this.parse(DeleteIssue);
|
|
8
|
+
const jira = this.getJira(site, flags);
|
|
9
|
+
await jira.issueManager.deleteIssue(flags.issue || args.issue);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = DeleteIssue;
|
|
13
|
+
DeleteIssue.description = 'If the issue has subtasks you must set the parameter deleteSubtasks=true to delete the issue. You cannot delete an issue without its subtasks also being deleted.';
|
|
14
|
+
DeleteIssue.flags = Object.assign({ issue: core_1.Flags.string({ description: 'Issue ID or key.' }), deleteSubtasks: core_1.Flags.boolean({ description: 'Whether to delete subtasks of the issue or not.' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
15
|
+
DeleteIssue.args = [
|
|
16
|
+
{
|
|
17
|
+
name: 'issue',
|
|
18
|
+
description: 'Issue ID or key.',
|
|
19
|
+
},
|
|
20
|
+
];
|
|
@@ -1 +1,49 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notifyUsersFlag = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
|
+
const create_1 = require("./create");
|
|
8
|
+
exports.notifyUsersFlag = core_1.Flags.boolean({ allowNo: true, description: 'Whether a notification email about the issue update is sent to all watchers.', default: true });
|
|
9
|
+
class EditIssue extends atlascli_common_1.CommandWithSite {
|
|
10
|
+
async runWithSite(site) {
|
|
11
|
+
const { flags, args } = await this.parse(EditIssue);
|
|
12
|
+
const jira = this.getJira(site, flags);
|
|
13
|
+
(0, create_1.isSimpleRequest)(flags, args) ? await this.runEditIssueSimple(flags, args, jira, site) : await this.runEditIssue(flags, args, jira, site);
|
|
14
|
+
}
|
|
15
|
+
async runEditIssueSimple(flags, args, jira, site) {
|
|
16
|
+
flags.issueIdOrKey = flags.issue;
|
|
17
|
+
const _a = this.removeFlagsFromBase(flags), { updateHistory, notifyUsers, overrideEditableFlag, overrideScreenSecurity, issueIdOrKey } = _a, issue = tslib_1.__rest(_a, ["updateHistory", "notifyUsers", "overrideEditableFlag", "overrideScreenSecurity", "issueIdOrKey"]);
|
|
18
|
+
if (site.cloud) {
|
|
19
|
+
await jira.issueManager.editIssueSimple(issueIdOrKey, issue, notifyUsers, updateHistory, overrideScreenSecurity, overrideEditableFlag);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
await jira.issueManager.editIssueSimple(issueIdOrKey, issue, notifyUsers);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
async runEditIssue(flags, args, jira, site) {
|
|
26
|
+
let request = flags.issueBody || args.issueBody;
|
|
27
|
+
if (typeof request === 'undefined') {
|
|
28
|
+
request = await (0, atlascli_common_1.readStdin)();
|
|
29
|
+
}
|
|
30
|
+
if (!request || request.length === 0) {
|
|
31
|
+
throw new Error('You should provide a valid JSON for the issue body!');
|
|
32
|
+
}
|
|
33
|
+
if (site.cloud) {
|
|
34
|
+
await jira.issueManager.editIssue(flags.issue, JSON.parse(request), flags.notifyUsers, flags.updateHistory, flags.overrideScreenSecurity, flags.overrideEditableFlag);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
await jira.issueManager.editIssue(flags.issue, JSON.parse(request), flags.notifyUsers);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.default = EditIssue;
|
|
42
|
+
EditIssue.description = 'Edits an issue. You can also provide issue body using STDIN.';
|
|
43
|
+
EditIssue.flags = Object.assign(Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), issueBody: core_1.Flags.string({ description: 'Issue edit request in JSON format.' }), notifyUsers: exports.notifyUsersFlag, updateHistory: core_1.Flags.boolean({ allowNo: true, description: "Whether to add issue to user's issue history. Only available for Jira Cloud. ", default: true }), overrideScreenSecurity: core_1.Flags.boolean({ allowNo: true, description: 'Whether hidden fields should be returned. Available to connect app users with admin permissions. Only available for Jira Cloud. ', default: false }), overrideEditableFlag: core_1.Flags.boolean({ allowNo: true, description: 'Whether non-editable fields should be returned. Available to connect app users with admin permissions. Only available for Jira Cloud. ', default: false }) }, (0, create_1.getSimpleRequestFlags)()), atlascli_common_1.CommandWithSite.flags);
|
|
44
|
+
EditIssue.args = [
|
|
45
|
+
{
|
|
46
|
+
name: 'issueBody',
|
|
47
|
+
description: 'Issue edit request in JSON format.',
|
|
48
|
+
},
|
|
49
|
+
];
|
|
@@ -1 +1,42 @@
|
|
|
1
|
-
|
|
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 core_1 = require("@oclif/core");
|
|
6
|
+
class GetChangeLogs extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
7
|
+
async runWithCloudSite(site, jira) {
|
|
8
|
+
const { flags } = await this.parse(GetChangeLogs);
|
|
9
|
+
const _a = this.removeFlagsFromBase(flags), { issue, all } = _a, query = tslib_1.__rest(_a, ["issue", "all"]);
|
|
10
|
+
const changelogBean = await jira.issueManager.getChangelogs(issue, query);
|
|
11
|
+
if (all)
|
|
12
|
+
changelogBean.values = await (0, atlascli_common_1.getAllPaginatedResponseValues)(changelogBean, query, jira.issueManager.getChangelogs.bind(jira.issueManager, issue));
|
|
13
|
+
if (this.isTabularOutput(flags)) {
|
|
14
|
+
const changelogs = changelogBean.values;
|
|
15
|
+
const result = [];
|
|
16
|
+
changelogs.forEach(cl => {
|
|
17
|
+
cl.items.forEach(ci => {
|
|
18
|
+
result.push({
|
|
19
|
+
id: cl.id,
|
|
20
|
+
create: cl.created,
|
|
21
|
+
authorId: cl.author.accountId || '',
|
|
22
|
+
authorName: cl.author.displayName || '',
|
|
23
|
+
field: ci.field || '',
|
|
24
|
+
fieldType: ci.fieldtype || '',
|
|
25
|
+
fieldId: ci.fieldId || '',
|
|
26
|
+
from: ci.from || '',
|
|
27
|
+
fromString: ci.fromString || '',
|
|
28
|
+
to: ci.to || '',
|
|
29
|
+
toString: ci.toString || '',
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
this.display(flags, result);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
this.display(flags, changelogBean);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.default = GetChangeLogs;
|
|
41
|
+
GetChangeLogs.description = 'Returns a list of all changelogs for an issue sorted by date, starting from the oldest.';
|
|
42
|
+
GetChangeLogs.flags = Object.assign(Object.assign(Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }) }, (0, atlascli_common_1.getStartAtAndMaxFlags)()), atlascli_common_1.CommandWithSite.flags), { all: core_1.Flags.boolean({ description: 'Whether all responses are returned.', default: false, exclusive: ['startAt', 'maxResults'] }) });
|
|
@@ -1 +1,83 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.metadataFlags = void 0;
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
|
+
const project_util_1 = require("@thestarware/atlascli-common/lib/project-util");
|
|
7
|
+
exports.metadataFlags = {
|
|
8
|
+
project: core_1.Flags.string({ multiple: true, description: 'The project id or key' }),
|
|
9
|
+
issueType: core_1.Flags.string({ multiple: true, description: 'The issue type id or name.' }),
|
|
10
|
+
};
|
|
11
|
+
class GetCreateMetaData extends atlascli_common_1.BaseCommandWithCloudOrServerSite {
|
|
12
|
+
async runWithCloudSite(site, jira) {
|
|
13
|
+
const { flags } = await this.parse(GetCreateMetaData);
|
|
14
|
+
const projectInfo = await (0, project_util_1.getProject)(jira, flags.project);
|
|
15
|
+
if (projectInfo.projectId)
|
|
16
|
+
projectInfo.projectId.map(id => Number.parseInt(id, 10));
|
|
17
|
+
const metadata = await jira.issueManager.getCreateIssueMetadata(projectInfo.projectId, [], flags.issueTypeId, flags.issueTypeName);
|
|
18
|
+
if ((typeof flags.output === 'undefined' || flags.output === 'table') && !flags.json) {
|
|
19
|
+
const result = this.reduce(metadata.projects);
|
|
20
|
+
this.display(flags, result);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
this.display(flags, metadata.projects);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
async runWithServerSite(site, jira) {
|
|
27
|
+
const { flags } = await this.parse(GetCreateMetaData);
|
|
28
|
+
const projectIdOrKey = flags.project;
|
|
29
|
+
if (!projectIdOrKey)
|
|
30
|
+
this.error('You have to specify the project.');
|
|
31
|
+
if (!flags.issueType)
|
|
32
|
+
this.error('You have to specify id or name for an issue type.');
|
|
33
|
+
let issueTypeId;
|
|
34
|
+
if (Number.isNaN(Number.parseInt(flags.issueType[0], 10))) {
|
|
35
|
+
issueTypeId = (await GetCreateMetaData.getIssueTypeInfo(flags.issueType[0], jira)).id.toString();
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
issueTypeId = flags.issueType[0];
|
|
39
|
+
}
|
|
40
|
+
console.log(issueTypeId);
|
|
41
|
+
const metadata = await jira.issueManager.getCreateIssueMetadataForIssueTypes(projectIdOrKey[0], issueTypeId, {});
|
|
42
|
+
this.display(flags, metadata.values.map(GetCreateMetaData.convertFieldMeta));
|
|
43
|
+
}
|
|
44
|
+
reduce(projects) {
|
|
45
|
+
var _a, _b, _c;
|
|
46
|
+
const result = [];
|
|
47
|
+
for (const projectMetadata of projects) {
|
|
48
|
+
const item = {
|
|
49
|
+
projectId: projectMetadata.id,
|
|
50
|
+
projectkey: projectMetadata.key,
|
|
51
|
+
};
|
|
52
|
+
for (const issuetypeMetadata of projectMetadata.issuetypes) {
|
|
53
|
+
for (const fieldKey in issuetypeMetadata.fields) {
|
|
54
|
+
if (Object.prototype.hasOwnProperty.call(issuetypeMetadata.fields, fieldKey)) {
|
|
55
|
+
const fieldMetadata = issuetypeMetadata.fields[fieldKey];
|
|
56
|
+
result.push(Object.assign(Object.assign(Object.assign({}, item), { typeId: issuetypeMetadata.id, typeName: issuetypeMetadata.name, typeSubtask: issuetypeMetadata.subtask, typeEntityId: issuetypeMetadata.entityId || '', typeScopeType: ((_a = issuetypeMetadata.scope) === null || _a === void 0 ? void 0 : _a.type) || '', typeScopeProject: ((_c = (_b = issuetypeMetadata.scope) === null || _b === void 0 ? void 0 : _b.project) === null || _c === void 0 ? void 0 : _c.key) || '', typeAvatarId: issuetypeMetadata.avatarId || '' }), GetCreateMetaData.convertFieldMeta(fieldMetadata)));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
static convertFieldMeta(fieldMetadata) {
|
|
64
|
+
return {
|
|
65
|
+
fieldName: fieldMetadata.name,
|
|
66
|
+
fieldKey: fieldMetadata.key || fieldMetadata.fieldId,
|
|
67
|
+
fieldRequired: fieldMetadata.required,
|
|
68
|
+
fieldHasDefaultValue: fieldMetadata.hasDefaultValue,
|
|
69
|
+
fieldType: fieldMetadata.schema.type,
|
|
70
|
+
fieldItemType: fieldMetadata.schema.items || '',
|
|
71
|
+
fieldOperations: fieldMetadata.operations.join(','),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
static async getIssueTypeInfo(issueTypeNameOrId, jira) {
|
|
75
|
+
const issueTypeInfo = (await jira.issueTypeManager.getAllIssueTypes()).filter(issueType => issueType.name === issueTypeNameOrId || issueType.id === issueTypeNameOrId);
|
|
76
|
+
if (issueTypeInfo.length === 0)
|
|
77
|
+
console.error('There is no such issue type with that id or name.');
|
|
78
|
+
return issueTypeInfo[0];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.default = GetCreateMetaData;
|
|
82
|
+
GetCreateMetaData.description = 'Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask.';
|
|
83
|
+
GetCreateMetaData.flags = Object.assign(Object.assign({}, exports.metadataFlags), atlascli_common_1.BaseCommandWithCloudOrServerSite.flags);
|
|
@@ -1 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
class GetEditMetaData extends atlascli_common_1.CommandWithSite {
|
|
6
|
+
async runWithSite(site) {
|
|
7
|
+
const { flags, args } = await this.parse(GetEditMetaData);
|
|
8
|
+
const jira = this.getJira(site, flags);
|
|
9
|
+
const issueIdOrKey = flags.issue || args.issue;
|
|
10
|
+
const metadata = await jira.issueManager.getEditIssueMetadata(issueIdOrKey, flags.overrideScreenSecurity, flags.overrideEditableFlag);
|
|
11
|
+
if (this.isTabularOutput(flags)) {
|
|
12
|
+
const result = this.reduce(metadata.fields);
|
|
13
|
+
this.display(flags, result);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
this.display(flags, metadata);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
reduce(fields) {
|
|
20
|
+
const result = [];
|
|
21
|
+
for (const fieldKey in fields) {
|
|
22
|
+
if (Object.prototype.hasOwnProperty.call(fields, fieldKey)) {
|
|
23
|
+
const fieldMetadata = fields[fieldKey];
|
|
24
|
+
result.push({
|
|
25
|
+
fieldName: fieldMetadata.name,
|
|
26
|
+
fieldKey: fieldMetadata.key || fieldMetadata.fieldId,
|
|
27
|
+
fieldRequired: fieldMetadata.required,
|
|
28
|
+
fieldHasDefaultValue: fieldMetadata.hasDefaultValue,
|
|
29
|
+
fieldType: fieldMetadata.schema.type,
|
|
30
|
+
fieldItemType: fieldMetadata.schema.items || '',
|
|
31
|
+
fieldOperations: fieldMetadata.operations.join(','),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return result;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.default = GetEditMetaData;
|
|
39
|
+
GetEditMetaData.description = 'Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask.';
|
|
40
|
+
GetEditMetaData.flags = Object.assign({ issue: core_1.Flags.string({ description: 'Issue ID or key.' }), overrideScreenSecurity: core_1.Flags.boolean({ allowNo: true, description: 'Whether hidden fields should be returned. Available to connect app users with admin permissions.', default: false }), overrideEditableFlag: core_1.Flags.boolean({ allowNo: true, description: 'Whether non-editable fields should be returned. Available to connect app users with admin permissions.', default: false }) }, atlascli_common_1.CommandWithSite.flags);
|
|
41
|
+
GetEditMetaData.args = [
|
|
42
|
+
{
|
|
43
|
+
name: 'issue',
|
|
44
|
+
description: 'Issue ID or key.',
|
|
45
|
+
},
|
|
46
|
+
];
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
4
|
+
class GetIssueEvents extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
5
|
+
async runWithCloudSite(site, jira) {
|
|
6
|
+
const { flags } = await this.parse(GetIssueEvents);
|
|
7
|
+
const res = await jira.issueManager.getEvents();
|
|
8
|
+
this.display(flags, res);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.default = GetIssueEvents;
|
|
12
|
+
GetIssueEvents.description = 'Returns all issue events.';
|
|
13
|
+
GetIssueEvents.flags = Object.assign({}, atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -1 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
class GetTransitions extends atlascli_common_1.CommandWithSite {
|
|
6
|
+
async runWithSite(site) {
|
|
7
|
+
const { flags } = await this.parse(GetTransitions);
|
|
8
|
+
const jira = this.getJira(site, flags);
|
|
9
|
+
const transitions = await jira.issueManager.getTransitions(flags.issue, flags.transitionId, flags.skipRemoteOnlyCondition, flags.includeUnavailableTransitions, flags.sortByOpsBarAndStatus);
|
|
10
|
+
if (this.isTabularOutput(flags)) {
|
|
11
|
+
this.display(flags, transitions.transitions.map(t => {
|
|
12
|
+
var _a, _b, _c, _d;
|
|
13
|
+
return {
|
|
14
|
+
id: t.id,
|
|
15
|
+
name: t.name,
|
|
16
|
+
hasScreen: t.hasScreen,
|
|
17
|
+
available: t.isAvailable,
|
|
18
|
+
conditional: t.isConditional,
|
|
19
|
+
initial: t.isInitial,
|
|
20
|
+
global: t.isGlobal,
|
|
21
|
+
looped: t.looped,
|
|
22
|
+
toStatusId: (_a = t.to) === null || _a === void 0 ? void 0 : _a.id,
|
|
23
|
+
toStatusName: (_b = t.to) === null || _b === void 0 ? void 0 : _b.name,
|
|
24
|
+
toStatusCategory: ((_d = (_c = t.to) === null || _c === void 0 ? void 0 : _c.statusCategory) === null || _d === void 0 ? void 0 : _d.name) || '',
|
|
25
|
+
fields: Object.keys(t.fields || [])
|
|
26
|
+
.map(key => t.fields[key].name)
|
|
27
|
+
.join(',') || '',
|
|
28
|
+
};
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.display(flags, transitions);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.default = GetTransitions;
|
|
37
|
+
GetTransitions.description = "Returns either all transitions or a transition that can be performed by the user on an issue, based on the issue's status.";
|
|
38
|
+
GetTransitions.flags = Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), transitionId: core_1.Flags.string({ required: false, description: 'Transition ID.' }), skipRemoteOnlyCondition: core_1.Flags.boolean({ allowNo: true, default: false, description: 'Whether transitions with the condition Hide From User Condition are included in the response.' }), includeUnavailableTransitions: core_1.Flags.boolean({ allowNo: true, default: false, description: 'Whether details of transitions that fail a condition are included in the response.' }), sortByOpsBarAndStatus: core_1.Flags.boolean({ allowNo: true, default: false, description: 'Whether the transitions are sorted by ops-bar sequence value first then category order (Todo, In Progress, Done) or only by ops-bar sequence value.' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,52 @@
|
|
|
1
|
-
|
|
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 core_1 = require("@oclif/core");
|
|
6
|
+
const create_1 = tslib_1.__importDefault(require("./create"));
|
|
7
|
+
class GetIssue extends atlascli_common_1.CommandWithSite {
|
|
8
|
+
async runWithSite(site) {
|
|
9
|
+
const issueIdOrKeys = [];
|
|
10
|
+
const { flags, argv } = await this.parse(GetIssue);
|
|
11
|
+
const jira = this.getJira(site, flags);
|
|
12
|
+
issueIdOrKeys.push(...(flags.issue || []));
|
|
13
|
+
issueIdOrKeys.push(...(Array.isArray(argv) ? argv : typeof argv === 'string' ? [argv] : []));
|
|
14
|
+
if (issueIdOrKeys.length === 0)
|
|
15
|
+
this.error('No issue id or key specified.');
|
|
16
|
+
const promises = issueIdOrKeys.map(iKey => jira.issueManager.getIssue(iKey));
|
|
17
|
+
await Promise.all(promises).then(issues => {
|
|
18
|
+
if (issues.length === 0) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (flags.output === 'json') {
|
|
22
|
+
this.display(flags, issues);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
const results = [];
|
|
26
|
+
issues.forEach(issue => {
|
|
27
|
+
const fields = Object.keys(issue.fields);
|
|
28
|
+
const result = {
|
|
29
|
+
id: issue.id,
|
|
30
|
+
self: issue.self,
|
|
31
|
+
key: issue.key,
|
|
32
|
+
};
|
|
33
|
+
for (const key of fields) {
|
|
34
|
+
result[issue.names[key]] = create_1.default.getValue(issue.fields[key]);
|
|
35
|
+
}
|
|
36
|
+
results.push(result);
|
|
37
|
+
});
|
|
38
|
+
this.display(flags, results);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.default = GetIssue;
|
|
44
|
+
GetIssue.strict = false;
|
|
45
|
+
GetIssue.description = 'Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask.';
|
|
46
|
+
GetIssue.flags = Object.assign({ issue: core_1.Flags.string({ char: 'i', description: 'Issue ID or key.', multiple: true }) }, atlascli_common_1.CommandWithSite.flags);
|
|
47
|
+
GetIssue.args = [
|
|
48
|
+
{
|
|
49
|
+
name: 'issue',
|
|
50
|
+
description: 'Issue ID or key.',
|
|
51
|
+
},
|
|
52
|
+
];
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const base_command_with_server_site_1 = tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-server-site"));
|
|
5
|
+
const archive_1 = tslib_1.__importDefault(require("./archive"));
|
|
6
|
+
class RestoreIssue extends base_command_with_server_site_1.default {
|
|
7
|
+
async runWithServerSite(site, jira) {
|
|
8
|
+
const { flags, args } = await this.parse(RestoreIssue);
|
|
9
|
+
await jira.issueManager.restoreIssue(flags.issue || args.issue, flags.notifyUsers);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = RestoreIssue;
|
|
13
|
+
RestoreIssue.description = 'Restores an issue.';
|
|
14
|
+
RestoreIssue.flags = archive_1.default.flags;
|
|
15
|
+
RestoreIssue.args = archive_1.default.args;
|
|
@@ -1 +1,49 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notifyUsersFlag = void 0;
|
|
4
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
|
+
const atlascli_common_2 = require("@thestarware/atlascli-common");
|
|
7
|
+
exports.notifyUsersFlag = core_1.Flags.boolean({ allowNo: true, description: 'Whether a notification email about the issue update is sent to all watchers.', default: true });
|
|
8
|
+
class SendNotifications extends atlascli_common_2.BaseCommandWithCloudSite {
|
|
9
|
+
async runWithCloudSite(site, jira) {
|
|
10
|
+
const { flags } = await this.parse(SendNotifications);
|
|
11
|
+
flags.htmlBody = flags.htmlBody || flags.textBody;
|
|
12
|
+
if (typeof flags.htmlBody === 'undefined') {
|
|
13
|
+
flags.htmlBody = await (0, atlascli_common_1.readStdin)();
|
|
14
|
+
}
|
|
15
|
+
const request = {
|
|
16
|
+
subject: flags.subject,
|
|
17
|
+
htmlBody: flags.htmlBody,
|
|
18
|
+
textBody: flags.textBody,
|
|
19
|
+
to: this.getRecipients(flags.notifyAssignee, flags.notifyReporter, flags.notifyVoters, flags.notifyWatchers, flags.recipientUser, flags.recipientUserGroup),
|
|
20
|
+
restrict: this.getRestriction(flags.onlyInUserGroup, flags.onlyWithPermission),
|
|
21
|
+
};
|
|
22
|
+
await jira.issueManager.sendNotifications(flags.issue, request);
|
|
23
|
+
}
|
|
24
|
+
getRecipients(notifyAssignee, notifyReporter, notifyVoters, notifyWatchers, users, groups) {
|
|
25
|
+
return {
|
|
26
|
+
users: users ? users.map(accountId => ({ accountId })) : undefined,
|
|
27
|
+
groups: groups ? groups.map(name => ({ name })) : undefined,
|
|
28
|
+
assignee: notifyAssignee,
|
|
29
|
+
reporter: notifyReporter,
|
|
30
|
+
voters: notifyVoters,
|
|
31
|
+
watchers: notifyWatchers,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
getRestriction(onlyInUserGroup, onlyWithPermission) {
|
|
35
|
+
const groupRestriction = typeof onlyInUserGroup !== 'undefined';
|
|
36
|
+
const permissionRestriction = typeof onlyWithPermission !== 'undefined';
|
|
37
|
+
if (!groupRestriction && !permissionRestriction)
|
|
38
|
+
return undefined;
|
|
39
|
+
return {
|
|
40
|
+
// @ts-ignore Not possible because of groupRestriction check
|
|
41
|
+
groups: groupRestriction ? onlyInUserGroup.map(gn => ({ name: gn })) : undefined,
|
|
42
|
+
// @ts-ignore Not possible because of permissionRestriction check
|
|
43
|
+
permissions: permissionRestriction ? onlyWithPermission.map(key => ({ key })) : undefined,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.default = SendNotifications;
|
|
48
|
+
SendNotifications.description = 'Edits an issue. You can also provide message body using STDIN.';
|
|
49
|
+
SendNotifications.flags = Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), subject: core_1.Flags.string({ description: 'Subject of email notification. Defaults to issue key and summary.' }), htmlBody: core_1.Flags.string({ description: 'HTML body of email notification.' }), textBody: core_1.Flags.string({ description: 'Text body of email notification.' }), recipientUser: core_1.Flags.string({ multiple: true, description: 'AccountID of user who will be notified.' }), recipientUserGroup: core_1.Flags.string({ multiple: true, description: 'User groups to be notified.' }), onlyWithPermission: core_1.Flags.string({ multiple: true, description: 'Key of permission. Restricts the notifications to users with the specified permissions.' }), onlyInUserGroup: core_1.Flags.string({ multiple: true, description: 'Name of user group. Restricts the notifications to users in the user group.' }), notifyReporter: core_1.Flags.boolean({ description: "Whether the notification should be sent to the issue's reporter.", default: false }), notifyAssignee: core_1.Flags.boolean({ description: "Whether the notification should be sent to the issue's assignee.", default: false }), notifyWatchers: core_1.Flags.boolean({ description: "Whether the notification should be sent to the issue's watchers.", default: false }), notifyVoters: core_1.Flags.boolean({ description: "Whether the notification should be sent to the issue's voters.", default: false }) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,61 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
|
+
const create_1 = require("./create");
|
|
8
|
+
class GetTransitions extends atlascli_common_1.CommandWithSite {
|
|
9
|
+
async runWithSite(site) {
|
|
10
|
+
const { flags, args } = await this.parse(GetTransitions);
|
|
11
|
+
const jira = this.getJira(site, flags);
|
|
12
|
+
if (flags.transitionId) {
|
|
13
|
+
const _b = this.removeFlagsFromBase(flags), { issue, transitionId, looped } = _b, parsedFlags = tslib_1.__rest(_b, ["issue", "transitionId", "looped"]);
|
|
14
|
+
const requestBody = this.prepareBodyForTransition(transitionId, parsedFlags);
|
|
15
|
+
requestBody.transition.looped = looped;
|
|
16
|
+
await jira.issueManager.transitionIssue(issue, requestBody);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
let request = flags.transitionBody || args.transitionBody;
|
|
20
|
+
if (typeof request === 'undefined') {
|
|
21
|
+
request = await (0, atlascli_common_1.readStdin)();
|
|
22
|
+
}
|
|
23
|
+
if (!request || request.length === 0) {
|
|
24
|
+
throw new Error('You should provide a valid JSON for transition!');
|
|
25
|
+
}
|
|
26
|
+
await jira.issueManager.transitionIssue(flags.issue, JSON.parse(request));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
prepareBodyForTransition(transitionId, flags) {
|
|
30
|
+
const newBody = { transition: { id: transitionId } };
|
|
31
|
+
Object.keys(flags).forEach(k => {
|
|
32
|
+
if (k === 'requestProps') {
|
|
33
|
+
Object.keys(flags.requestProps).forEach(k => (flags.requestProps[k] = this.detectPropertyIsIntegerOrNot(flags.requestProps[k]) ? { id: Number.parseInt(flags.requestProps[k], 10) } : { name: flags.requestProps[k] }));
|
|
34
|
+
newBody.transition = Object.assign(Object.assign({}, newBody.transition), flags.requestProps);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
newBody.transition[k] = flags[k];
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
console.log(newBody);
|
|
41
|
+
return newBody;
|
|
42
|
+
}
|
|
43
|
+
detectPropertyIsIntegerOrNot(prop) {
|
|
44
|
+
return Number.isFinite(Number.parseInt(prop, 10));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.default = GetTransitions;
|
|
48
|
+
_a = GetTransitions;
|
|
49
|
+
GetTransitions.description = "Returns either all transitions or a transition that can be performed by the user on an issue, based on the issue's status.";
|
|
50
|
+
GetTransitions.flags = Object.assign(Object.assign(Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), transitionBody: core_1.Flags.string({ exclusive: ['transitionId'], description: 'Issue transition request in JSON format.' }), transitionId: core_1.Flags.integer({ exclusive: ['transitionBody'], description: 'Execute a simple issue transition with just transition ID.' }), looped: core_1.Flags.boolean({ description: '' }) }, (0, create_1.getSimpleRequestFlags)()), {
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
requestProps: core_1.Flags.string({
|
|
53
|
+
description: 'Additional properties for the request. \nExample Usage: requestProps=resolution=resolutionName,myField=myValue',
|
|
54
|
+
parse: async (input) => (0, atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(input)[0],
|
|
55
|
+
}) }), atlascli_common_1.CommandWithSite.flags);
|
|
56
|
+
GetTransitions.args = [
|
|
57
|
+
{
|
|
58
|
+
name: 'transitionBody',
|
|
59
|
+
description: 'Issue transition request in JSON format.',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
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 core_1 = require("@oclif/core");
|
|
6
|
+
const get_all_1 = tslib_1.__importDefault(require("./get-all"));
|
|
7
|
+
// noinspection JSUnusedGlobalSymbols
|
|
8
|
+
class Create extends atlascli_common_1.CommandWithSite {
|
|
9
|
+
async runWithSite(site) {
|
|
10
|
+
const { flags } = await this.parse(Create);
|
|
11
|
+
const jira = this.getJira(site, flags);
|
|
12
|
+
const field = await jira.fieldManager.createField(flags.name, flags.type, flags.searcher, flags.description);
|
|
13
|
+
this.displayAlternativeForTable(flags, field, get_all_1.default.convertFieldDetails(field, site.cloud));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.default = Create;
|
|
17
|
+
Create.description = 'Creates a custom field.';
|
|
18
|
+
Create.flags = Object.assign(Object.assign({}, atlascli_common_1.CommandWithSite.flags), { name: core_1.Flags.string({ required: true, description: 'The name of the custom field, which is displayed in Jira. This is not the unique identifier.' }), type: core_1.Flags.string({ required: true, description: 'The type of the custom field.' }), searcher: core_1.Flags.string({ description: 'The searcher defines the way the field is searched in Jira. Get more details:\nhttps://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/#api-rest-api-3-field-post' }), description: core_1.Flags.string({ description: 'The description of the custom field, which is displayed in Jira.' }) });
|
|
@@ -1 +1,31 @@
|
|
|
1
|
-
|
|
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 DeleteIssueField extends atlascli_common_1.BaseCommandWithCloudOrServerSite {
|
|
6
|
+
async runWithCloudSite(site, jira) {
|
|
7
|
+
const { flags } = await this.parse(DeleteIssueField);
|
|
8
|
+
if (flags.id.length > 1) {
|
|
9
|
+
this.error('You can only delete multiple custom field on the same request on Server/DC.');
|
|
10
|
+
}
|
|
11
|
+
const res = await jira.fieldManager.deleteCustomField(flags.id[0]);
|
|
12
|
+
this.display(flags, res);
|
|
13
|
+
if (!flags.silent)
|
|
14
|
+
await this.showProgressBar(res, jira, 'Deleting customfield...');
|
|
15
|
+
}
|
|
16
|
+
async runWithServerSite(site, jira) {
|
|
17
|
+
const { flags } = await this.parse(DeleteIssueField);
|
|
18
|
+
if (flags.silent)
|
|
19
|
+
this.error('Progress bar is available only for Cloud. Therefore you can not specify the silent flag.');
|
|
20
|
+
const res = await jira.fieldManager.deleteCustomFields({ ids: flags.id });
|
|
21
|
+
this.log(res.message);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = DeleteIssueField;
|
|
25
|
+
DeleteIssueField.description = 'Deletes issue field. CLOUD ONLY -> This operation is asynchronous. You can use `jira task:get` command to obtain any updates.';
|
|
26
|
+
DeleteIssueField.flags = Object.assign(Object.assign({}, atlascli_common_1.CommandWithSite.flags), { id: core_1.Flags.string({
|
|
27
|
+
char: 'i',
|
|
28
|
+
description: 'Field Id.',
|
|
29
|
+
multiple: true,
|
|
30
|
+
required: true,
|
|
31
|
+
}), silent: core_1.Flags.boolean({ description: 'If you activate this flag progress bar will not be shown.' }) });
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
4
|
+
const mapper_utils_1 = require("@thestarware/atlascli-common/lib/util/mapper-utils");
|
|
5
|
+
class GetAll extends atlascli_common_1.CommandWithSite {
|
|
6
|
+
async runWithSite(site) {
|
|
7
|
+
const { flags } = await this.parse(GetAll);
|
|
8
|
+
const jira = this.getJira(site, flags);
|
|
9
|
+
const fields = await jira.fieldManager.getFields();
|
|
10
|
+
this.displayAlternativeForTable(flags, fields, fields.map(f => GetAll.convertFieldDetails(f, site.cloud)));
|
|
11
|
+
}
|
|
12
|
+
static convertFieldDetails(fieldDetails, isCloud) {
|
|
13
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, fieldDetails), { clauseNames: fieldDetails.clauseNames.join(',') }), (0, mapper_utils_1.withPrefix)(fieldDetails.schema, 'schema')), (isCloud ? (0, mapper_utils_1.mapToScope)(fieldDetails) : {}));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.default = GetAll;
|
|
17
|
+
GetAll.description = 'Returns system and custom issue fields.';
|
|
18
|
+
GetAll.flags = Object.assign({}, atlascli_common_1.CommandWithSite.flags);
|