@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,22 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserCommand = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const base_command_with_cloud_or_server_site_1 = tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site"));
|
|
6
|
+
class UserCommand extends base_command_with_cloud_or_server_site_1.default {
|
|
7
|
+
dislayUser(flags, user) {
|
|
8
|
+
this.display(flags, [user], (u, newU) => {
|
|
9
|
+
var _a, _b, _c, _d;
|
|
10
|
+
newU.applicationRolesOneLine = (_b = (_a = u.applicationRoles) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b.map(ar => ar.name).join(',');
|
|
11
|
+
newU.groupsOneLine = (_d = (_c = u.groups) === null || _c === void 0 ? void 0 : _c.items) === null || _d === void 0 ? void 0 : _d.map(ar => ar.name).join(',');
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
dislayUsers(flags, users) {
|
|
15
|
+
this.display(flags, users, (u, newU) => {
|
|
16
|
+
var _a, _b, _c, _d;
|
|
17
|
+
newU.applicationRolesOneLine = (_b = (_a = u.applicationRoles) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b.map(ar => ar.name).join(',');
|
|
18
|
+
newU.groupsOneLine = (_d = (_c = u.groups) === null || _c === void 0 ? void 0 : _c.items) === null || _d === void 0 ? void 0 : _d.map(ar => ar.name).join(',');
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.UserCommand = UserCommand;
|
|
@@ -1 +1,32 @@
|
|
|
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 project_1 = require("../project/project");
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
|
+
const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
|
|
8
|
+
class IssuePropertyDelete extends project_1.ProjectCommand {
|
|
9
|
+
async runWithSite(site) {
|
|
10
|
+
const { flags } = await this.parse(IssuePropertyDelete);
|
|
11
|
+
const jira = this.getJira(site, flags);
|
|
12
|
+
const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
|
|
13
|
+
const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
|
|
14
|
+
parsedFlags.accountId = normalizedUserQuery.accountId;
|
|
15
|
+
parsedFlags.username = normalizedUserQuery.username;
|
|
16
|
+
delete parsedFlags.user;
|
|
17
|
+
if (site.cloud) {
|
|
18
|
+
if (parsedFlags.accountId) {
|
|
19
|
+
await jira.userPropertyManager.deleteUserProperty(parsedFlags.key, parsedFlags.accountId);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
throw new Error('accountId is required for cloud');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
await jira.userPropertyManager.deleteUserProperty(parsedFlags.key, parsedFlags.username, parsedFlags.userKey);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = IssuePropertyDelete;
|
|
31
|
+
IssuePropertyDelete.description = 'Deletes a property from a user.';
|
|
32
|
+
IssuePropertyDelete.flags = Object.assign({ key: core_1.Flags.string({ required: true, char: 'k', description: "The key of the user's property." }), userKey: core_1.Flags.string({ exclusive: ['user'], description: 'The user key. Only applicable to server.' }), user: core_1.Flags.string({ char: 'u', description: 'Username for Server/DC and accountId or username or email for Cloud' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,32 @@
|
|
|
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 project_1 = require("../project/project");
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
|
+
const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
|
|
8
|
+
class UserPropertyGetAllKeys extends project_1.ProjectCommand {
|
|
9
|
+
async runWithSite(site) {
|
|
10
|
+
const { flags } = await this.parse(UserPropertyGetAllKeys);
|
|
11
|
+
const jira = this.getJira(site, flags);
|
|
12
|
+
const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
|
|
13
|
+
const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
|
|
14
|
+
parsedFlags.accountId = normalizedUserQuery.accountId;
|
|
15
|
+
parsedFlags.username = normalizedUserQuery.username;
|
|
16
|
+
delete parsedFlags.user;
|
|
17
|
+
let result;
|
|
18
|
+
if (site.cloud) {
|
|
19
|
+
if (!parsedFlags.accountId) {
|
|
20
|
+
throw new Error('--accountId is required for Cloud!');
|
|
21
|
+
}
|
|
22
|
+
result = await jira.userPropertyManager.getUserPropertyKeys(parsedFlags.accountId);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
result = await jira.userPropertyManager.getUserPropertyKeys(parsedFlags.username, parsedFlags.userKey);
|
|
26
|
+
}
|
|
27
|
+
this.display(flags, result.keys);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = UserPropertyGetAllKeys;
|
|
31
|
+
UserPropertyGetAllKeys.description = 'Returns the keys of all properties for a user.';
|
|
32
|
+
UserPropertyGetAllKeys.flags = Object.assign({ userKey: core_1.Flags.string({ exclusive: ['user'], description: 'The user key. Only applicable to server.' }), user: core_1.Flags.string({ char: 'u', description: 'Username for Server/DC and accountId or username or email for Cloud' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,34 @@
|
|
|
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 project_1 = require("../project/project");
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
|
+
const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
|
|
8
|
+
class GetUserProperty extends project_1.ProjectCommand {
|
|
9
|
+
async runWithSite(site) {
|
|
10
|
+
const { flags } = await this.parse(GetUserProperty);
|
|
11
|
+
const jira = this.getJira(site, flags);
|
|
12
|
+
let result;
|
|
13
|
+
const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
|
|
14
|
+
const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
|
|
15
|
+
parsedFlags.accountId = normalizedUserQuery.accountId;
|
|
16
|
+
parsedFlags.username = normalizedUserQuery.username;
|
|
17
|
+
delete parsedFlags.user;
|
|
18
|
+
if (site.cloud) {
|
|
19
|
+
if (parsedFlags.accountId) {
|
|
20
|
+
result = await jira.userPropertyManager.getUserProperty(parsedFlags.key, parsedFlags.accountId);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
throw new Error('accountId is required for cloud');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
result = await jira.userPropertyManager.getUserProperty(parsedFlags.key, parsedFlags.username, parsedFlags.userKey);
|
|
28
|
+
}
|
|
29
|
+
this.display(flags, result);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.default = GetUserProperty;
|
|
33
|
+
GetUserProperty.description = "Returns the value of a user's property. If no property key is provided Get user property keys is called.";
|
|
34
|
+
GetUserProperty.flags = Object.assign({ key: core_1.Flags.string({ required: true, char: 'k', description: "The key of the user's property." }), userKey: core_1.Flags.string({ exclusive: ['user'], description: 'The user key. Only applicable to server.' }), user: core_1.Flags.string({ char: 'u', description: 'Username for Server/DC and accountId or username or email for Cloud' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,39 @@
|
|
|
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 project_1 = require("../project/project");
|
|
6
|
+
const core_1 = require("@oclif/core");
|
|
7
|
+
const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
|
|
8
|
+
class Get extends project_1.ProjectCommand {
|
|
9
|
+
async runWithSite(site) {
|
|
10
|
+
const { flags, args } = await this.parse(Get);
|
|
11
|
+
const jira = this.getJira(site, flags);
|
|
12
|
+
const value = flags.value || args.value;
|
|
13
|
+
const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
|
|
14
|
+
const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
|
|
15
|
+
parsedFlags.accountId = normalizedUserQuery.accountId;
|
|
16
|
+
parsedFlags.username = normalizedUserQuery.username;
|
|
17
|
+
delete parsedFlags.user;
|
|
18
|
+
if (site.cloud) {
|
|
19
|
+
if (parsedFlags.accountId) {
|
|
20
|
+
await jira.userPropertyManager.setUserProperty(parsedFlags.key, value, parsedFlags.accountId);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
throw new Error('accountId is required for cloud');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
await jira.userPropertyManager.setUserProperty(parsedFlags.key, parsedFlags.value, parsedFlags.username, parsedFlags.userKey);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.default = Get;
|
|
32
|
+
Get.description = "Sets the value of a user's property.";
|
|
33
|
+
Get.flags = Object.assign({ key: core_1.Flags.string({ required: true, char: 'k', description: "The key of the user's property." }), value: core_1.Flags.string({ required: true, char: 'v', description: "The value of the user's property." }), userKey: core_1.Flags.string({ exclusive: ['user'], description: 'The user key. Only applicable to server.' }), user: core_1.Flags.string({ char: 'u', description: 'Username for Server/DC and accountId or username or email for Cloud' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
34
|
+
Get.args = [
|
|
35
|
+
{
|
|
36
|
+
name: 'value',
|
|
37
|
+
description: "The value of the user's property.",
|
|
38
|
+
},
|
|
39
|
+
];
|
|
@@ -1 +1,27 @@
|
|
|
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 core_1 = require("@oclif/core");
|
|
6
|
+
const user_command_1 = require("../user/user-command");
|
|
7
|
+
class FindAccountsWithQuery extends user_command_1.UserCommand {
|
|
8
|
+
async runWithCloudSite(site, jira) {
|
|
9
|
+
const { flags } = await this.parse(FindAccountsWithQuery);
|
|
10
|
+
const _a = this.removeFlagsFromBase(this.modifyQuery(flags)), { all } = _a, query = tslib_1.__rest(_a, ["all"]);
|
|
11
|
+
const users = await jira.userSearchManager.findUserAccountIDsWithQuery(query);
|
|
12
|
+
if (all)
|
|
13
|
+
users.values = await (0, atlascli_common_1.getAllPaginatedResponseValues)(users, query, jira.userSearchManager.findUserAccountIDsWithQuery.bind(jira.userManager));
|
|
14
|
+
this.display(flags, users.values.map(user => ({ accounId: user.accountId })));
|
|
15
|
+
}
|
|
16
|
+
async runWithServerSite(_site, _jira) {
|
|
17
|
+
throw new Error('This command is only available for Jira Cloud!');
|
|
18
|
+
}
|
|
19
|
+
modifyQuery(query) {
|
|
20
|
+
query.query = query.search;
|
|
21
|
+
delete query.search;
|
|
22
|
+
return query;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.default = FindAccountsWithQuery;
|
|
26
|
+
FindAccountsWithQuery.description = 'Finds account IDs with a structured query.';
|
|
27
|
+
FindAccountsWithQuery.flags = Object.assign(Object.assign(Object.assign(Object.assign({}, (0, atlascli_common_1.getStartAtAndMaxFlags)()), { search: core_1.Flags.string({ required: true, description: 'The search string. Ex: is assignee of PROJ' }) }), atlascli_common_1.CommandWithSite.flags), { all: core_1.Flags.boolean({ description: 'Whether all responses are returned.', default: false, exclusive: ['startAt', 'maxResults'] }) });
|
|
@@ -1 +1,21 @@
|
|
|
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 user_command_1 = require("../user/user-command");
|
|
6
|
+
class FindAssignableUsersBulk extends user_command_1.UserCommand {
|
|
7
|
+
async runWithSiteImp(site, jira) {
|
|
8
|
+
const { flags } = await this.parse(FindAssignableUsersBulk);
|
|
9
|
+
const users = await jira.userSearchManager.findAssignableUsersBulk(flags.project, flags.search, flags.startAt, flags.maxResults);
|
|
10
|
+
this.dislayUsers(flags, users);
|
|
11
|
+
}
|
|
12
|
+
async runWithServerSite(site, jira) {
|
|
13
|
+
await this.runWithSiteImp(site, jira);
|
|
14
|
+
}
|
|
15
|
+
async runWithCloudSite(site, jira) {
|
|
16
|
+
await this.runWithSiteImp(site, jira);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = FindAssignableUsersBulk;
|
|
20
|
+
FindAssignableUsersBulk.description = 'Returns a list of users that match the search string and can be assigned issues for all the given projects.';
|
|
21
|
+
FindAssignableUsersBulk.flags = Object.assign(Object.assign(Object.assign({}, (0, atlascli_common_1.getStartAtAndMaxFlags)()), { search: core_1.Flags.string({ required: false, description: 'The search string.' }), project: core_1.Flags.string({ required: true, multiple: true, description: 'The key of the projects we are finding assignable users for.' }) }), atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,21 @@
|
|
|
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 user_command_1 = require("../user/user-command");
|
|
6
|
+
class FindAssignableUsersBulk extends user_command_1.UserCommand {
|
|
7
|
+
async runWithSiteImp(jira) {
|
|
8
|
+
const { flags } = await this.parse(FindAssignableUsersBulk);
|
|
9
|
+
const users = await jira.userSearchManager.findAssignableUsers(flags.issue, flags.project, flags.actionDescriptorId, flags.search, flags.startAt, flags.maxResults);
|
|
10
|
+
this.dislayUsers(flags, users);
|
|
11
|
+
}
|
|
12
|
+
async runWithServerSite(site, jira) {
|
|
13
|
+
await this.runWithSiteImp(jira);
|
|
14
|
+
}
|
|
15
|
+
async runWithCloudSite(site, jira) {
|
|
16
|
+
await this.runWithSiteImp(jira);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = FindAssignableUsersBulk;
|
|
20
|
+
FindAssignableUsersBulk.description = 'Returns a list of users that match the search string. Call with an issue key when a list of assignable users is retrieved for editing. For create only a project key should be supplied.';
|
|
21
|
+
FindAssignableUsersBulk.flags = Object.assign(Object.assign(Object.assign({}, (0, atlascli_common_1.getStartAtAndMaxFlags)()), { search: core_1.Flags.string({ required: false, description: 'The search string.' }), actionDescriptorId: core_1.Flags.integer({ description: 'The ID of the workflow transition.' }), project: core_1.Flags.string({ exclusive: ['issue'], description: 'The key of the projects we are finding assignable users for.' }), issue: core_1.Flags.string({ exclusive: ['project'], description: 'The issue key for the issue being edited we need to find assignable users for.' }) }), atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
+
const user_command_1 = require("../user/user-command");
|
|
6
|
+
class Find extends user_command_1.UserCommand {
|
|
7
|
+
async runWithCloudSite(site, jira) {
|
|
8
|
+
const { flags } = await this.parse(Find);
|
|
9
|
+
const users = await jira.userSearchManager.findUsers(flags.search, flags.property, flags.startAt, flags.maxResults);
|
|
10
|
+
this.dislayUsers(flags, users);
|
|
11
|
+
}
|
|
12
|
+
async runWithServerSite(site, jira) {
|
|
13
|
+
const { flags } = await this.parse(Find);
|
|
14
|
+
const users = await jira.userSearchManager.findUsers(flags.search, flags.includeActive, flags.includeInActive, flags.startAt, flags.maxResults);
|
|
15
|
+
this.dislayUsers(flags, users);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.default = Find;
|
|
19
|
+
Find.description = 'Returns a list of users that match the search string. This resource cannot be accessed anonymously.';
|
|
20
|
+
Find.flags = Object.assign(Object.assign(Object.assign({}, (0, atlascli_common_1.getStartAtAndMaxFlags)()), { search: core_1.Flags.string({ required: true, description: 'The search string.' }), property: core_1.Flags.string({
|
|
21
|
+
required: false,
|
|
22
|
+
description: 'Applicable to only Cloud. A query string used to search properties. To search for the value of nested from {"something":{"nested":1,"other":2}} use thepropertykey.something.nested=1.',
|
|
23
|
+
}), includeActive: core_1.Flags.boolean({ allowNo: true, required: false, default: true, description: 'Applicable to only Server and DC. If true, then active users are included in the results (default true).' }), includeInActive: core_1.Flags.boolean({ allowNo: true, required: false, default: false, description: 'Applicable to only Server and DC. If true, then inactive users are included in the results (default false).' }) }), atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
+
const user_command_1 = require("../user/user-command");
|
|
6
|
+
class FindUsersWithPermission extends user_command_1.UserCommand {
|
|
7
|
+
async runWithSiteImp(site, jira) {
|
|
8
|
+
const { flags } = await this.parse(FindUsersWithPermission);
|
|
9
|
+
if (!flags.project && !flags.issue) {
|
|
10
|
+
throw new Error('You should either speciy projectKey or issueKey!');
|
|
11
|
+
}
|
|
12
|
+
const users = await jira.userSearchManager.findUsersWithAllPermissions(flags.permission, flags.search, flags.issue, flags.project, flags.startAt, flags.maxResults);
|
|
13
|
+
this.dislayUsers(flags, users);
|
|
14
|
+
}
|
|
15
|
+
async runWithCloudSite(site, jira) {
|
|
16
|
+
await this.runWithSiteImp(site, jira);
|
|
17
|
+
}
|
|
18
|
+
async runWithServerSite(site, jira) {
|
|
19
|
+
await this.runWithSiteImp(site, jira);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = FindUsersWithPermission;
|
|
23
|
+
FindUsersWithPermission.description = 'Returns a list of active users that match the search string and have all specified permissions for the project or issue.';
|
|
24
|
+
FindUsersWithPermission.flags = Object.assign(Object.assign(Object.assign({}, (0, atlascli_common_1.getStartAtAndMaxFlags)()), { search: core_1.Flags.string({ required: false, description: 'The search string.' }), permission: core_1.Flags.string({ required: true, char: 'p', multiple: true, description: 'Permission key. This flag can be repeated.' }), issue: core_1.Flags.string({ char: 'i', description: 'The issue key for the issue for which returned users have specified permissions.' }), project: core_1.Flags.string({ description: 'The optional project key to search for users with if no issueKey is supplied.' }) }), atlascli_common_1.CommandWithSite.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 atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
|
+
const user_command_1 = require("../user/user-command");
|
|
7
|
+
class FindUsersWithQuery extends user_command_1.UserCommand {
|
|
8
|
+
async runWithCloudSite(site, jira) {
|
|
9
|
+
const { flags } = await this.parse(FindUsersWithQuery);
|
|
10
|
+
const _a = this.removeFlagsFromBase(this.modifyQuery(flags)), { all } = _a, query = tslib_1.__rest(_a, ["all"]);
|
|
11
|
+
const users = await jira.userSearchManager.findUsersWithQuery(query);
|
|
12
|
+
if (all)
|
|
13
|
+
users.values = await (0, atlascli_common_1.getAllPaginatedResponseValues)(users, query, jira.userSearchManager.findUsersWithQuery.bind(jira.userManager));
|
|
14
|
+
this.dislayUsers(flags, users.values);
|
|
15
|
+
}
|
|
16
|
+
async runWithServerSite(_site, _jira) {
|
|
17
|
+
throw new Error('This command is only available for Jira Cloud!');
|
|
18
|
+
}
|
|
19
|
+
modifyQuery(query) {
|
|
20
|
+
query.query = query.search;
|
|
21
|
+
delete query.search;
|
|
22
|
+
return query;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.default = FindUsersWithQuery;
|
|
26
|
+
FindUsersWithQuery.description = 'Finds users with a structured query and returns a paginated list of user details.';
|
|
27
|
+
FindUsersWithQuery.flags = Object.assign(Object.assign(Object.assign(Object.assign({}, (0, atlascli_common_1.getStartAtAndMaxFlags)()), { search: core_1.Flags.string({ required: true, description: 'The search string. Ex: is assignee of PROJ' }) }), atlascli_common_1.CommandWithSite.flags), { all: core_1.Flags.boolean({ description: 'Whether all responses are returned.', default: false, exclusive: ['startAt', 'maxResults'] }) });
|
|
@@ -1 +1,36 @@
|
|
|
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 CreateWorkflow extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
6
|
+
async runWithCloudSite(site, jira) {
|
|
7
|
+
const { flags, args } = await this.parse(CreateWorkflow);
|
|
8
|
+
let request = args.workflowBody;
|
|
9
|
+
if (typeof request === 'undefined') {
|
|
10
|
+
request = await (0, atlascli_common_1.readStdin)();
|
|
11
|
+
if (!request || request.length === 0) {
|
|
12
|
+
throw new Error('You should provide a valid JSON for the workflow! You can get more details in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-post');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
const res = await jira.workflowManager.createWorkflow(JSON.parse(request));
|
|
16
|
+
flags.extended = true;
|
|
17
|
+
this.display(flags, this.modifyResponseForDisplay(res));
|
|
18
|
+
}
|
|
19
|
+
modifyResponseForDisplay(response) {
|
|
20
|
+
const r = [];
|
|
21
|
+
const newObject = {};
|
|
22
|
+
newObject.entityId = response.entityId;
|
|
23
|
+
newObject.name = response.name;
|
|
24
|
+
r.push(newObject);
|
|
25
|
+
return r;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = CreateWorkflow;
|
|
29
|
+
CreateWorkflow.description = 'Creates workflow.';
|
|
30
|
+
CreateWorkflow.flags = Object.assign({ workflowBody: core_1.Flags.string({ description: 'Workflow creation request in JSON format. You can get more details in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-post' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
31
|
+
CreateWorkflow.args = [
|
|
32
|
+
{
|
|
33
|
+
name: 'workflowBody',
|
|
34
|
+
description: 'Workflow creation request in JSON format.',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
@@ -1 +1,13 @@
|
|
|
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 DeleteInactiveWorkflow extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
6
|
+
async runWithCloudSite(site, jira) {
|
|
7
|
+
const { flags } = await this.parse(DeleteInactiveWorkflow);
|
|
8
|
+
await jira.workflowManager.deleteInactiveWorkflow(flags.entityId);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.default = DeleteInactiveWorkflow;
|
|
12
|
+
DeleteInactiveWorkflow.description = 'Deletes inactive workflow.';
|
|
13
|
+
DeleteInactiveWorkflow.flags = Object.assign({ entityId: core_1.Flags.string({ char: 'i', description: 'The entity ID of the workflow.', required: true }) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const get_transitions_1 = tslib_1.__importDefault(require("./get-transitions"));
|
|
5
|
+
class GetProjects extends get_transitions_1.default {
|
|
6
|
+
async runWithCloudSite(site, jira) {
|
|
7
|
+
const { flags } = await this.parse(GetProjects);
|
|
8
|
+
const res = await jira.workflowManager.searchWorkflows({ workflowName: [flags.workflowName], expand: 'projects' });
|
|
9
|
+
this.display(flags, res.values[0].projects);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = GetProjects;
|
|
13
|
+
GetProjects.description = 'Gets information about the projects the workflow is assigned to, through workflow schemes.';
|
|
14
|
+
GetProjects.flags = Object.assign({}, get_transitions_1.default.flags);
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const get_transitions_1 = tslib_1.__importDefault(require("./get-transitions"));
|
|
5
|
+
class GetSchemes extends get_transitions_1.default {
|
|
6
|
+
async runWithCloudSite(site, jira) {
|
|
7
|
+
const { flags } = await this.parse(GetSchemes);
|
|
8
|
+
const res = await jira.workflowManager.searchWorkflows({ workflowName: [flags.workflowName], expand: 'schemes' });
|
|
9
|
+
this.display(flags, res.values[0].schemes);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = GetSchemes;
|
|
13
|
+
GetSchemes.description = 'Gets information about the workflow schemes the workflow is assigned to.';
|
|
14
|
+
GetSchemes.flags = Object.assign({}, get_transitions_1.default.flags);
|
|
@@ -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 get_transitions_1 = tslib_1.__importDefault(require("./get-transitions"));
|
|
6
|
+
class GetStatusesProperties extends get_transitions_1.default {
|
|
7
|
+
async runWithCloudSite(site, jira) {
|
|
8
|
+
const { flags } = await this.parse(GetStatusesProperties);
|
|
9
|
+
const res = await jira.workflowManager.searchWorkflows({ workflowName: [flags.workflowName], expand: 'statuses.properties' });
|
|
10
|
+
this.display(flags, this.modifyStatusForDisplay(res.values[0].statuses, flags.statusIds));
|
|
11
|
+
}
|
|
12
|
+
modifyStatusForDisplay(response, statusIds) {
|
|
13
|
+
const newArray = [];
|
|
14
|
+
if (statusIds)
|
|
15
|
+
response = response.filter((status) => statusIds.split(',').includes(status.id));
|
|
16
|
+
response.forEach((status) => {
|
|
17
|
+
const newObject = Object.assign({}, status);
|
|
18
|
+
newObject.properties = JSON.stringify(status.properties);
|
|
19
|
+
newArray.push(newObject);
|
|
20
|
+
});
|
|
21
|
+
return newArray;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = GetStatusesProperties;
|
|
25
|
+
GetStatusesProperties.description = 'For each workflow status, gets information about its properties.';
|
|
26
|
+
GetStatusesProperties.flags = Object.assign({ statusIds: core_1.Flags.string({ description: "Workflow's status Id. You can provide multiple Ids by separeting them with comma to filter the statuses.\nExample usage: statusIds=1,2,4" }) }, get_transitions_1.default.flags);
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const get_transitions_1 = tslib_1.__importDefault(require("./get-transitions"));
|
|
5
|
+
class GetStatuses extends get_transitions_1.default {
|
|
6
|
+
async runWithCloudSite(site, jira) {
|
|
7
|
+
const { flags } = await this.parse(GetStatuses);
|
|
8
|
+
const res = await jira.workflowManager.searchWorkflows({ workflowName: [flags.workflowName], expand: 'statuses' });
|
|
9
|
+
this.display(flags, res.values[0].statuses);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.default = GetStatuses;
|
|
13
|
+
GetStatuses.description = 'Gets information about the statuses inside the workflow';
|
|
14
|
+
GetStatuses.flags = Object.assign({}, get_transitions_1.default.flags);
|
|
@@ -1 +1,44 @@
|
|
|
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 GetTranstionRules extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
6
|
+
async runWithCloudSite(site, jira) {
|
|
7
|
+
const { flags } = await this.parse(GetTranstionRules);
|
|
8
|
+
const res = await jira.workflowManager.searchWorkflows({ expand: 'transitions.rules' });
|
|
9
|
+
this.display(flags, this.modifyResponseForDisplay(res.values, flags));
|
|
10
|
+
}
|
|
11
|
+
modifyResponseForDisplay(response, flags) {
|
|
12
|
+
const newArray = [];
|
|
13
|
+
if (flags.transitionIds)
|
|
14
|
+
response[0].transitions = response[0].transitions.filter((transition) => flags.transitionIds.split(',').includes(transition.id));
|
|
15
|
+
response[0].transitions.forEach((transition) => {
|
|
16
|
+
const transitionId = transition.id;
|
|
17
|
+
Object.keys(transition.rules).forEach(rule => {
|
|
18
|
+
if (rule === flags.ruleType) {
|
|
19
|
+
if (flags.ruleType === 'conditionsTree') {
|
|
20
|
+
if (!flags.json && !flags.yaml && !flags.output)
|
|
21
|
+
flags.json = true;
|
|
22
|
+
if (flags.output === 'csv') {
|
|
23
|
+
return this.error('conditionsTree rule type can not be shown in tabular or csv format. It can only be shown in JSON or YAML format.');
|
|
24
|
+
}
|
|
25
|
+
newArray.push(Object.assign({ transitionId: transitionId }, transition.rules[rule]));
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
transition.rules[rule].forEach((value) => {
|
|
29
|
+
const newObject = {};
|
|
30
|
+
newObject.transitionId = transitionId;
|
|
31
|
+
newObject.type = value.type;
|
|
32
|
+
newObject.configuration = JSON.stringify(value.configuration) || '';
|
|
33
|
+
newArray.push(newObject);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
return newArray;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.default = GetTranstionRules;
|
|
43
|
+
GetTranstionRules.description = "Gets given workflow's transition rules";
|
|
44
|
+
GetTranstionRules.flags = Object.assign({ workflowName: core_1.Flags.string({ char: 'n', description: 'The name of the workflow that the transition rules belongs to.' }), transitionIds: core_1.Flags.string({ description: "Workflow's transition Id. You can provide multiple Ids by separeting them with comma to filter the transitions.\nExample usage: transitionIds=1,2,4" }), ruleType: core_1.Flags.string({ options: ['conditionsTree', 'validators', 'postFunctions'] }) }, atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1 +1,21 @@
|
|
|
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 GetTransitions extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
6
|
+
async runWithCloudSite(site, jira) {
|
|
7
|
+
const { flags } = await this.parse(GetTransitions);
|
|
8
|
+
const res = await jira.workflowManager.searchWorkflows({ workflowName: [flags.workflowName], expand: 'transitions' });
|
|
9
|
+
this.display(flags, this.modifyResponseForDisplay(res.values[0]));
|
|
10
|
+
}
|
|
11
|
+
modifyResponseForDisplay(response) {
|
|
12
|
+
const newArray = [];
|
|
13
|
+
response.transitions.forEach((transition) => {
|
|
14
|
+
newArray.push({ id: transition.id, name: transition.name, type: transition.type, from: transition.from.join(','), to: transition.to, description: transition.description });
|
|
15
|
+
});
|
|
16
|
+
return newArray;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = GetTransitions;
|
|
20
|
+
GetTransitions.description = "Gets given workflow's transitions";
|
|
21
|
+
GetTransitions.flags = Object.assign({ workflowName: core_1.Flags.string({ char: 'n', description: 'The name of the workflow that the transitions belongs to.', required: true }) }, atlascli_common_1.CommandWithSite.flags);
|