@thestarware/atlascli-jira 1.2.5 → 1.2.7
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 +108 -24
- package/lib/commands/announcement-banner/get.js +1 -13
- package/lib/commands/announcement-banner/update.js +1 -30
- package/lib/commands/application-role/get-all.js +2 -22
- package/lib/commands/application-role/get.js +1 -19
- package/lib/commands/application-role/update.js +1 -23
- package/lib/commands/attachment/add.js +1 -33
- package/lib/commands/attachment/delete.js +1 -16
- package/lib/commands/attachment/get-content.js +1 -18
- package/lib/commands/attachment/get-jira-settings.js +1 -14
- package/lib/commands/attachment/get-metadata-for-zip.js +1 -36
- package/lib/commands/attachment/get-metadata.js +1 -30
- package/lib/commands/attachment/get-thumbnails.js +1 -17
- package/lib/commands/audit-record/get-associated.js +1 -81
- package/lib/commands/audit-record/get-changed.js +1 -62
- package/lib/commands/avatar/delete-universal-avatar.js +1 -15
- package/lib/commands/avatar/delete-user-avatar.js +1 -21
- package/lib/commands/avatar/get-all-user-avatar.js +1 -0
- package/lib/commands/avatar/get-image-by-id.js +1 -17
- package/lib/commands/avatar/get-image-by-owner.js +1 -17
- package/lib/commands/avatar/get-image-by-type.js +1 -17
- package/lib/commands/avatar/get-system-avatars.js +1 -19
- package/lib/commands/avatar/get-universal-avatars.js +1 -16
- package/lib/commands/avatar/set-user-avatar.js +1 -21
- package/lib/commands/avatar/upload-universal-avatar.js +1 -32
- package/lib/commands/avatar/upload-user-avatar.js +1 -25
- package/lib/commands/comment/add.js +1 -25
- package/lib/commands/comment/delete.js +1 -14
- package/lib/commands/comment/get-for-issue.js +1 -32
- package/lib/commands/comment/get-with-ids.js +1 -31
- package/lib/commands/comment/get.js +1 -22
- package/lib/commands/comment/update.js +1 -26
- package/lib/commands/comment-property/delete-property.js +1 -14
- package/lib/commands/comment-property/get-property-keys.js +1 -15
- package/lib/commands/comment-property/get-property.js +1 -15
- package/lib/commands/comment-property/set-property.js +1 -14
- package/lib/commands/config/add.js +1 -119
- package/lib/commands/config/delete.js +1 -32
- package/lib/commands/config/get-default.js +1 -18
- package/lib/commands/config/list.js +1 -22
- package/lib/commands/config/set-default.js +1 -31
- package/lib/commands/dashboard/add-edit-permission.js +1 -43
- package/lib/commands/dashboard/add-share-permission.js +1 -24
- package/lib/commands/dashboard/copy.js +1 -16
- package/lib/commands/dashboard/create.js +1 -15
- package/lib/commands/dashboard/delete.js +1 -13
- package/lib/commands/dashboard/get-all.js +1 -26
- package/lib/commands/dashboard/get-permissions.js +1 -20
- package/lib/commands/dashboard/get.js +1 -30
- package/lib/commands/dashboard/search.js +1 -35
- package/lib/commands/dashboard/update.js +1 -16
- package/lib/commands/dashboard-gadget/add.js +1 -19
- package/lib/commands/dashboard-gadget/get-availables.js +1 -20
- package/lib/commands/dashboard-gadget/remove.js +1 -13
- package/lib/commands/dashboard-gadget/search.js +1 -16
- package/lib/commands/dashboard-gadget/update.js +1 -18
- package/lib/commands/dashboard-item-property/delete.js +1 -15
- package/lib/commands/dashboard-item-property/get-keys.js +1 -15
- package/lib/commands/dashboard-item-property/get.js +1 -15
- package/lib/commands/dashboard-item-property/set.js +1 -29
- package/lib/commands/filter/add-favourite.js +1 -18
- package/lib/commands/filter/change-owner.js +1 -24
- package/lib/commands/filter/create.js +1 -30
- package/lib/commands/filter/delete.js +1 -18
- package/lib/commands/filter/get-columns.js +1 -20
- package/lib/commands/filter/get-details.js +1 -25
- package/lib/commands/filter/get-favourites.js +1 -18
- package/lib/commands/filter/get-my.js +1 -19
- package/lib/commands/filter/get.js +1 -40
- package/lib/commands/filter/remove-favourite.js +1 -18
- package/lib/commands/filter/reset-columns.js +1 -18
- package/lib/commands/filter/search.js +1 -50
- package/lib/commands/filter/set-columns.js +1 -18
- package/lib/commands/filter/update.js +1 -34
- package/lib/commands/filter-sharing/add-edit-permission.js +1 -106
- package/lib/commands/filter-sharing/add-share-permission.js +1 -84
- package/lib/commands/filter-sharing/delete-permission.js +1 -21
- package/lib/commands/filter-sharing/get-default-scope.js +1 -12
- package/lib/commands/filter-sharing/get-edit-permissions.js +1 -21
- package/lib/commands/filter-sharing/get-permission.js +1 -24
- package/lib/commands/filter-sharing/get-share-permissions.js +1 -52
- package/lib/commands/filter-sharing/set-default-scope.js +1 -21
- package/lib/commands/group/add-user.js +1 -40
- package/lib/commands/group/create.js +1 -28
- package/lib/commands/group/find-groups.js +1 -19
- package/lib/commands/group/get-all.js +1 -24
- package/lib/commands/group/get-users.js +1 -32
- package/lib/commands/group/get.js +1 -58
- package/lib/commands/group/remove-user.js +1 -45
- package/lib/commands/group/remove.js +1 -45
- package/lib/commands/group-and-user-picker/find-groups.js +1 -62
- package/lib/commands/group-and-user-picker/find-users.js +1 -91
- package/lib/commands/issue/archive.js +1 -22
- package/lib/commands/issue/assign.js +1 -29
- package/lib/commands/issue/create.js +1 -306
- package/lib/commands/issue/delete.js +1 -20
- package/lib/commands/issue/edit.js +1 -49
- package/lib/commands/issue/get-changelogs.js +1 -42
- package/lib/commands/issue/get-create-metadata.js +1 -83
- package/lib/commands/issue/get-edit-metadata.js +1 -46
- package/lib/commands/issue/get-events.js +1 -13
- package/lib/commands/issue/get-transitions.js +1 -38
- package/lib/commands/issue/get.js +1 -52
- package/lib/commands/issue/restore.js +1 -15
- package/lib/commands/issue/send-notifications.js +1 -49
- package/lib/commands/issue/transition.js +1 -61
- package/lib/commands/issue-field/create.js +1 -18
- package/lib/commands/issue-field/delete.js +1 -31
- package/lib/commands/issue-field/get-all.js +1 -18
- package/lib/commands/issue-field/move-trash.js +1 -18
- package/lib/commands/issue-field/restore-trash.js +1 -18
- package/lib/commands/issue-field/search-trash.js +1 -23
- package/lib/commands/issue-field/search.js +1 -24
- package/lib/commands/issue-field/update.js +1 -18
- package/lib/commands/issue-field-configuration/assign-issue-type.js +1 -25
- package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +1 -24
- package/lib/commands/issue-field-configuration/create-scheme.js +1 -22
- package/lib/commands/issue-field-configuration/create.js +1 -22
- package/lib/commands/issue-field-configuration/delete-scheme.js +1 -18
- package/lib/commands/issue-field-configuration/delete.js +1 -18
- package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +1 -23
- package/lib/commands/issue-field-configuration/get-all-schemes.js +1 -24
- package/lib/commands/issue-field-configuration/get-all.js +1 -27
- package/lib/commands/issue-field-configuration/get-items.js +1 -24
- package/lib/commands/issue-field-configuration/get-project-schemes.js +1 -42
- package/lib/commands/issue-field-configuration/remove-issue-types.js +1 -23
- package/lib/commands/issue-field-configuration/update-items.js +1 -29
- package/lib/commands/issue-field-configuration/update-scheme.js +1 -23
- package/lib/commands/issue-field-configuration/update.js +1 -25
- package/lib/commands/issue-field-context/add-issue-types.js +1 -26
- package/lib/commands/issue-field-context/assign-to-projects.js +1 -30
- package/lib/commands/issue-field-context/create.js +1 -38
- package/lib/commands/issue-field-context/delete.js +1 -20
- package/lib/commands/issue-field-context/get-all.js +1 -27
- package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +1 -26
- package/lib/commands/issue-field-context/get-default-values.js +1 -29
- package/lib/commands/issue-field-context/get-issue-types.js +1 -27
- package/lib/commands/issue-field-context/get-project-mappings.js +1 -37
- package/lib/commands/issue-field-context/remove-from-projects.js +1 -31
- package/lib/commands/issue-field-context/remove-issue-types.js +1 -26
- package/lib/commands/issue-field-context/set-default-values.js +1 -31
- package/lib/commands/issue-field-context/update.js +1 -28
- package/lib/commands/issue-field-option/create-for-context.js +1 -26
- package/lib/commands/issue-field-option/delete-for-context.js +1 -22
- package/lib/commands/issue-field-option/get-for-context.js +1 -25
- package/lib/commands/issue-field-option/get.js +1 -34
- package/lib/commands/issue-field-option/reorder-for-context.js +1 -25
- package/lib/commands/issue-field-option/update-for-context.js +1 -26
- package/lib/commands/issue-link/create.js +1 -89
- package/lib/commands/issue-link/delete.js +1 -26
- package/lib/commands/issue-link/get.js +1 -48
- package/lib/commands/issue-link-type/create.js +1 -26
- package/lib/commands/issue-link-type/delete.js +1 -14
- package/lib/commands/issue-link-type/get-all.js +1 -14
- package/lib/commands/issue-link-type/get.js +1 -30
- package/lib/commands/issue-link-type/update.js +1 -24
- package/lib/commands/issue-navigator-setting/get-columns.js +1 -14
- package/lib/commands/issue-navigator-setting/set-columns.js +1 -14
- package/lib/commands/issue-priority/create.js +1 -35
- package/lib/commands/issue-priority/delete.js +1 -28
- package/lib/commands/issue-priority/move.js +1 -27
- package/lib/commands/issue-priority/search.js +1 -44
- package/lib/commands/issue-priority/set-default.js +1 -20
- package/lib/commands/issue-priority/update.js +1 -38
- package/lib/commands/issue-property/delete-bulk.js +1 -33
- package/lib/commands/issue-property/delete.js +1 -14
- package/lib/commands/issue-property/get-keys.js +1 -15
- package/lib/commands/issue-property/get.js +1 -21
- package/lib/commands/issue-property/set-bulk.js +1 -49
- package/lib/commands/issue-property/set-by-issue-bulk.js +1 -47
- package/lib/commands/issue-property/set-by-list-bulk.js +1 -34
- package/lib/commands/issue-property/set.js +1 -38
- package/lib/commands/issue-remote-link/create.js +1 -56
- package/lib/commands/issue-remote-link/delete-by-global-id.js +1 -16
- package/lib/commands/issue-remote-link/delete.js +1 -15
- package/lib/commands/issue-remote-link/get-all.js +1 -27
- package/lib/commands/issue-remote-link/get.js +1 -22
- package/lib/commands/issue-remote-link/update.js +1 -40
- package/lib/commands/issue-resolution/create.js +1 -20
- package/lib/commands/issue-resolution/delete.js +1 -28
- package/lib/commands/issue-resolution/get-all.js +1 -13
- package/lib/commands/issue-resolution/get.js +1 -33
- package/lib/commands/issue-resolution/move.js +1 -26
- package/lib/commands/issue-resolution/search.js +1 -40
- package/lib/commands/issue-resolution/set-default.js +1 -17
- package/lib/commands/issue-resolution/update.js +1 -25
- package/lib/commands/issue-search/get-picker-suggestions.js +1 -35
- package/lib/commands/issue-search/search.js +1 -39
- package/lib/commands/issue-search/test-jql.js +1 -29
- package/lib/commands/issue-security-level/get-members.js +1 -46
- package/lib/commands/issue-security-level/get.js +1 -34
- package/lib/commands/issue-security-scheme/associate-security-scheme.js +1 -0
- package/lib/commands/issue-security-scheme/get-all.js +1 -14
- package/lib/commands/issue-security-scheme/get-levels.js +1 -20
- package/lib/commands/issue-security-scheme/get.js +1 -34
- package/lib/commands/issue-type/create.js +1 -20
- package/lib/commands/issue-type/delete.js +1 -14
- package/lib/commands/issue-type/get-all-for-projects.js +1 -17
- package/lib/commands/issue-type/get-all.js +1 -14
- package/lib/commands/issue-type/get-alternatives.js +1 -15
- package/lib/commands/issue-type/get.js +1 -30
- package/lib/commands/issue-type/set-avatar.js +1 -14
- package/lib/commands/issue-type/update.js +1 -18
- package/lib/commands/issue-type/upload-avatar.js +1 -38
- package/lib/commands/issue-type-property/delete.js +1 -14
- package/lib/commands/issue-type-property/get-keys.js +1 -15
- package/lib/commands/issue-type-property/get.js +1 -16
- package/lib/commands/issue-type-property/set.js +1 -28
- package/lib/commands/issue-type-scheme/add-issue-types.js +1 -23
- package/lib/commands/issue-type-scheme/assign-to-project.js +1 -20
- package/lib/commands/issue-type-scheme/create.js +1 -20
- package/lib/commands/issue-type-scheme/delete.js +1 -14
- package/lib/commands/issue-type-scheme/get-for-projects.js +1 -32
- package/lib/commands/issue-type-scheme/get-issue-types.js +1 -20
- package/lib/commands/issue-type-scheme/get-mappings.js +1 -20
- package/lib/commands/issue-type-scheme/get-projects.js +1 -20
- package/lib/commands/issue-type-scheme/move-issue-types.js +1 -16
- package/lib/commands/issue-type-scheme/remove-all-projects.js +1 -14
- package/lib/commands/issue-type-scheme/remove-issue-type.js +1 -13
- package/lib/commands/issue-type-scheme/remove-project.js +1 -20
- package/lib/commands/issue-type-scheme/search.js +1 -47
- package/lib/commands/issue-type-scheme/set-projects.js +1 -20
- package/lib/commands/issue-type-scheme/update.js +1 -40
- package/lib/commands/issue-type-screen-scheme/add-mappings.js +1 -20
- package/lib/commands/issue-type-screen-scheme/assign-to-project.js +1 -16
- package/lib/commands/issue-type-screen-scheme/create.js +1 -27
- package/lib/commands/issue-type-screen-scheme/delete.js +1 -13
- package/lib/commands/issue-type-screen-scheme/get-for-projects.js +1 -32
- package/lib/commands/issue-type-screen-scheme/get-items.js +1 -25
- package/lib/commands/issue-type-screen-scheme/get-projects.js +1 -20
- package/lib/commands/issue-type-screen-scheme/remove-mappings.js +1 -13
- package/lib/commands/issue-type-screen-scheme/search.js +1 -27
- package/lib/commands/issue-type-screen-scheme/set-default-screen.js +1 -13
- package/lib/commands/issue-type-screen-scheme/update.js +1 -13
- package/lib/commands/issue-vote/add.js +1 -18
- package/lib/commands/issue-vote/delete.js +1 -18
- package/lib/commands/issue-vote/get-all.js +1 -27
- package/lib/commands/issue-watcher/add.js +1 -25
- package/lib/commands/issue-watcher/delete.js +1 -25
- package/lib/commands/issue-watcher/get-all.js +1 -27
- package/lib/commands/issue-watcher/get-bulk.js +1 -24
- package/lib/commands/jira-expression/analyse.js +1 -78
- package/lib/commands/jira-expression/evaluate.js +1 -103
- package/lib/commands/jira-settings/get-advanced.js +1 -14
- package/lib/commands/jira-settings/get-globals.js +1 -14
- package/lib/commands/jira-settings/get-properties.js +1 -19
- package/lib/commands/jira-settings/set-property.js +1 -15
- package/lib/commands/jql/convert-user-identifiers.js +1 -14
- package/lib/commands/jql/get-auto-complete-suggestions.js +1 -16
- package/lib/commands/jql/get-reference-data.js +1 -39
- package/lib/commands/jql/parse.js +1 -22
- package/lib/commands/jql/sanitize.js +1 -26
- package/lib/commands/label/get-all.js +1 -29
- package/lib/commands/license/get.js +1 -13
- package/lib/commands/myself/change-password.js +1 -21
- package/lib/commands/myself/delete-preference.js +1 -17
- package/lib/commands/myself/get-locale.js +1 -13
- package/lib/commands/myself/get-preference.js +1 -27
- package/lib/commands/myself/get.js +1 -21
- package/lib/commands/myself/set-preference.js +1 -37
- package/lib/commands/myself/update-user.js +1 -24
- package/lib/commands/notification-scheme/add.js +1 -75
- package/lib/commands/notification-scheme/create.js +1 -80
- package/lib/commands/notification-scheme/delete-notification.js +1 -22
- package/lib/commands/notification-scheme/delete.js +1 -18
- package/lib/commands/notification-scheme/get-all.js +1 -57
- package/lib/commands/notification-scheme/get-projects.js +1 -29
- package/lib/commands/notification-scheme/get.js +1 -75
- package/lib/commands/notification-scheme/update.js +1 -23
- package/lib/commands/permission/check-global-permission.js +1 -53
- package/lib/commands/permission/check-issue-permission.js +1 -60
- package/lib/commands/permission/check-project-permission.js +1 -65
- package/lib/commands/permission/get-all.js +1 -23
- package/lib/commands/permission/get-my.js +1 -33
- package/lib/commands/permission/get-permitted.js +1 -30
- package/lib/commands/permission-scheme/create-grant.js +1 -54
- package/lib/commands/permission-scheme/create-scheme.js +1 -21
- package/lib/commands/permission-scheme/delete-grant.js +1 -23
- package/lib/commands/permission-scheme/delete-scheme.js +1 -18
- package/lib/commands/permission-scheme/get-all-grants.js +1 -39
- package/lib/commands/permission-scheme/get-all.js +1 -38
- package/lib/commands/permission-scheme/get-grant.js +1 -65
- package/lib/commands/permission-scheme/get.js +1 -24
- package/lib/commands/project/archive.js +1 -15
- package/lib/commands/project/create.js +1 -26
- package/lib/commands/project/delete.js +1 -15
- package/lib/commands/project/get-all-issue-types.js +1 -16
- package/lib/commands/project/get-all.js +1 -16
- package/lib/commands/project/get-issue-type-hierarchy.js +1 -15
- package/lib/commands/project/get-notification-schema.js +1 -16
- package/lib/commands/project/get.js +1 -31
- package/lib/commands/project/project.js +1 -40
- package/lib/commands/project/restore.js +1 -18
- package/lib/commands/project/search.js +1 -28
- package/lib/commands/project/unarchive.js +1 -18
- package/lib/commands/project/update.js +1 -38
- package/lib/commands/project-avatar/delete.js +1 -14
- package/lib/commands/project-avatar/get-all.js +1 -21
- package/lib/commands/project-avatar/set.js +1 -19
- package/lib/commands/project-avatar/upload.js +1 -51
- package/lib/commands/project-category/create.js +1 -16
- package/lib/commands/project-category/delete.js +1 -15
- package/lib/commands/project-category/get-all.js +1 -15
- package/lib/commands/project-category/get.js +1 -31
- package/lib/commands/project-category/update.js +1 -16
- package/lib/commands/project-component/create.js +1 -52
- package/lib/commands/project-component/delete.js +1 -15
- package/lib/commands/project-component/get-all.js +1 -21
- package/lib/commands/project-component/get-issues-count.js +1 -19
- package/lib/commands/project-component/get.js +1 -31
- package/lib/commands/project-component/search.js +1 -20
- package/lib/commands/project-component/update.js +1 -19
- package/lib/commands/project-email/get-sender.js +1 -17
- package/lib/commands/project-email/set-sender.js +1 -16
- package/lib/commands/project-feature/get.js +1 -36
- package/lib/commands/project-feature/set.js +1 -29
- package/lib/commands/project-key-and-name-validation/get-valid-key.js +1 -15
- package/lib/commands/project-key-and-name-validation/get-valid-name.js +1 -15
- package/lib/commands/project-key-and-name-validation/validate-key.js +1 -21
- package/lib/commands/project-permission-scheme/get-issue-security-levels.js +1 -17
- package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +1 -12
- package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +1 -16
- package/lib/commands/project-permission-scheme/get-permissions.js +1 -11
- package/lib/commands/project-permission-scheme/get.js +1 -16
- package/lib/commands/project-permission-scheme/set.js +1 -16
- package/lib/commands/project-property/delete.js +1 -15
- package/lib/commands/project-property/get-keys.js +1 -17
- package/lib/commands/project-property/get.js +1 -16
- package/lib/commands/project-property/set.js +1 -19
- package/lib/commands/project-role/create.js +1 -16
- package/lib/commands/project-role/delete.js +1 -15
- package/lib/commands/project-role/get-all.js +1 -16
- package/lib/commands/project-role/get-role.js +1 -34
- package/lib/commands/project-role/get-roles-and-details.js +1 -19
- package/lib/commands/project-role/get-roles.js +1 -19
- package/lib/commands/project-role/get.js +1 -31
- package/lib/commands/project-role/project-role.js +1 -15
- package/lib/commands/project-role/update-partial.js +1 -24
- package/lib/commands/project-role/update.js +1 -15
- package/lib/commands/project-role-actor/add-actors.js +1 -42
- package/lib/commands/project-role-actor/add-default-actors.js +1 -42
- package/lib/commands/project-role-actor/delete-actors.js +1 -35
- package/lib/commands/project-role-actor/delete-default-actors.js +1 -30
- package/lib/commands/project-role-actor/get.js +1 -35
- package/lib/commands/project-role-actor/set-actors.js +1 -37
- package/lib/commands/project-type/check-accessible.js +1 -15
- package/lib/commands/project-type/get-all.js +1 -14
- package/lib/commands/project-type/get-licensed.js +1 -14
- package/lib/commands/project-type/get.js +1 -30
- package/lib/commands/project-type/update.js +1 -18
- package/lib/commands/project-version/create.js +1 -19
- package/lib/commands/project-version/delete-and-replace.js +1 -25
- package/lib/commands/project-version/get-all.js +1 -16
- package/lib/commands/project-version/get-related-issue-count.js +1 -16
- package/lib/commands/project-version/get-unresolved-issue-count.js +1 -16
- package/lib/commands/project-version/get.js +1 -31
- package/lib/commands/project-version/merge.js +2 -15
- package/lib/commands/project-version/move.js +1 -15
- package/lib/commands/project-version/search.js +1 -19
- package/lib/commands/project-version/update.js +1 -16
- package/lib/commands/screen/add-field-to-default-screen.js +1 -18
- package/lib/commands/screen/create.js +1 -15
- package/lib/commands/screen/delete.js +1 -13
- package/lib/commands/screen/get-all.js +1 -44
- package/lib/commands/screen/get-available-fields.js +1 -19
- package/lib/commands/screen/get-field-screens.js +1 -24
- package/lib/commands/screen/get-workflows.js +1 -36
- package/lib/commands/screen/update.js +1 -16
- package/lib/commands/screen-scheme/create.js +1 -25
- package/lib/commands/screen-scheme/delete.js +1 -13
- package/lib/commands/screen-scheme/get-all.js +1 -30
- package/lib/commands/screen-scheme/update.js +1 -31
- package/lib/commands/screen-tab/create.js +1 -17
- package/lib/commands/screen-tab/delete.js +1 -14
- package/lib/commands/screen-tab/get-all.js +1 -17
- package/lib/commands/screen-tab/move.js +1 -14
- package/lib/commands/screen-tab/update.js +1 -15
- package/lib/commands/screen-tab-field/add.js +1 -19
- package/lib/commands/screen-tab-field/get-all.js +1 -17
- package/lib/commands/screen-tab-field/move.js +1 -16
- package/lib/commands/screen-tab-field/remove.js +1 -17
- package/lib/commands/server-info/get.js +1 -14
- package/lib/commands/server-info/jmx.js +1 -15
- package/lib/commands/status/create.js +1 -31
- package/lib/commands/status/delete.js +1 -24
- package/lib/commands/status/get-usages.js +1 -24
- package/lib/commands/status/get.js +1 -53
- package/lib/commands/status/search.js +1 -44
- package/lib/commands/status/status-command.js +1 -31
- package/lib/commands/status/update.js +1 -24
- package/lib/commands/task/cancel.js +1 -13
- package/lib/commands/task/get.js +1 -29
- package/lib/commands/time-tracking/get-all.js +1 -13
- package/lib/commands/time-tracking/get-setting.js +1 -13
- package/lib/commands/time-tracking/get.js +1 -13
- package/lib/commands/time-tracking/select.js +1 -19
- package/lib/commands/time-tracking/set.js +1 -31
- package/lib/commands/user/add-user-to-application.js +1 -21
- package/lib/commands/user/change-password.js +1 -18
- package/lib/commands/user/create.js +1 -45
- package/lib/commands/user/delete.js +1 -24
- package/lib/commands/user/get-all.js +1 -32
- package/lib/commands/user/get-default-columns.js +1 -39
- package/lib/commands/user/get-email.js +1 -25
- package/lib/commands/user/get-user-groups.js +1 -26
- package/lib/commands/user/get.js +1 -40
- package/lib/commands/user/remove-user-from-application.js +1 -21
- package/lib/commands/user/reset-default-columns.js +1 -33
- package/lib/commands/user/set-default-columns.js +1 -26
- package/lib/commands/user/update.js +1 -30
- package/lib/commands/user/user-command.js +1 -22
- package/lib/commands/user-property/delete.js +1 -32
- package/lib/commands/user-property/get-all-keys.js +1 -32
- package/lib/commands/user-property/get-user-property.js +1 -34
- package/lib/commands/user-property/set.js +1 -39
- package/lib/commands/user-search/accounts-with-query.js +1 -27
- package/lib/commands/user-search/assignable-users-bulk.js +1 -21
- package/lib/commands/user-search/assignable-users.js +1 -21
- package/lib/commands/user-search/find.js +1 -23
- package/lib/commands/user-search/with-permission.js +1 -24
- package/lib/commands/user-search/with-query.js +1 -27
- package/lib/commands/workflow/create.js +1 -36
- package/lib/commands/workflow/delete.js +1 -13
- package/lib/commands/workflow/get-projects.js +1 -14
- package/lib/commands/workflow/get-schemes.js +1 -14
- package/lib/commands/workflow/get-statuses-properties.js +1 -26
- package/lib/commands/workflow/get-statuses.js +1 -14
- package/lib/commands/workflow/get-transitions-rules.js +1 -44
- package/lib/commands/workflow/get-transitions.js +1 -21
- package/lib/commands/workflow/search.js +1 -66
- package/lib/commands/workflow-scheme/create.js +3 -59
- package/lib/commands/workflow-scheme/delete-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +1 -16
- package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +1 -16
- package/lib/commands/workflow-scheme/delete.js +1 -14
- package/lib/commands/workflow-scheme/get-all.js +1 -20
- package/lib/commands/workflow-scheme/get-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +1 -30
- package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +1 -15
- package/lib/commands/workflow-scheme/get.js +1 -31
- package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +1 -21
- package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +1 -27
- package/lib/commands/workflow-scheme/update-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme/update.js +3 -61
- package/lib/commands/workflow-scheme-draft/create.js +1 -15
- package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +1 -16
- package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +1 -16
- package/lib/commands/workflow-scheme-draft/delete.js +1 -14
- package/lib/commands/workflow-scheme-draft/get-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +1 -30
- package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +1 -15
- package/lib/commands/workflow-scheme-draft/get.js +1 -30
- package/lib/commands/workflow-scheme-draft/publish.js +1 -21
- package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +1 -21
- package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +1 -27
- package/lib/commands/workflow-scheme-draft/update-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme-draft/update.js +3 -61
- package/lib/commands/workflow-scheme-project-association/assign.js +1 -18
- package/lib/commands/workflow-scheme-project-association/get-all.js +1 -30
- package/lib/commands/workflow-status/get-all.js +1 -14
- package/lib/commands/workflow-status/get.js +1 -30
- package/lib/commands/workflow-status-category/get-all.js +1 -14
- package/lib/commands/workflow-status-category/get.js +1 -15
- package/lib/commands/workflow-transition-property/create.js +1 -17
- package/lib/commands/workflow-transition-property/delete.js +1 -16
- package/lib/commands/workflow-transition-property/get.js +1 -20
- package/lib/commands/workflow-transition-property/update.js +1 -17
- package/lib/commands/worklog/add.js +1 -40
- package/lib/commands/worklog/delete.js +1 -21
- package/lib/commands/worklog/get-deleted.js +1 -21
- package/lib/commands/worklog/get-for-issue.js +1 -28
- package/lib/commands/worklog/get-updated.js +1 -17
- package/lib/commands/worklog/get-with-ids.js +1 -30
- package/lib/commands/worklog/get.js +1 -38
- package/lib/commands/worklog/update.js +1 -23
- package/lib/commands/worklog-property/delete.js +1 -14
- package/lib/commands/worklog-property/get-keys.js +1 -15
- package/lib/commands/worklog-property/get.js +1 -15
- package/lib/commands/worklog-property/set-property.js +1 -14
- package/lib/index.js +1 -5
- package/package.json +27 -32
- package/lib/commands/avatar/get-all-user-avatars.js +0 -22
- package/lib/oclif-config.js +0 -8
|
@@ -1,40 +1 @@
|
|
|
1
|
-
"
|
|
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 worklogs_1 = require("@thestarware/atlassian-typescript-client/dist/jira/common/worklogs");
|
|
7
|
-
const get_1 = tslib_1.__importDefault(require("./get"));
|
|
8
|
-
class Add extends atlascli_common_1.CommandWithSite {
|
|
9
|
-
async runWithSite(site) {
|
|
10
|
-
const { flags } = await this.parse(Add);
|
|
11
|
-
const jira = this.getJira(site, flags);
|
|
12
|
-
if (flags.adjustEstimate === worklogs_1.AdjustEstimate.NEW && typeof flags.newEstimate === 'undefined') {
|
|
13
|
-
throw new Error('--newEstimate is required when --adjustEstime=new!');
|
|
14
|
-
}
|
|
15
|
-
else if (flags.adjustEstimate === worklogs_1.AdjustEstimate.MANUAL && typeof flags.reduceBy === 'undefined') {
|
|
16
|
-
throw new Error('--reduceBy is required when --adjustEstime=manual!');
|
|
17
|
-
}
|
|
18
|
-
if (typeof flags.timeSpent === 'undefined' && typeof flags.timeSpentSeconds === 'undefined') {
|
|
19
|
-
throw new Error('Either --timeSpent or --timeSpentSeconds is required!');
|
|
20
|
-
}
|
|
21
|
-
const request = Add.flagsToWorklogRequest(flags, site.cloud);
|
|
22
|
-
const worklog = await jira.worklogManager.addWorklog(flags.issue, request, flags.adjustEstimate, flags.newEstimate, flags.reduceBy, flags.notifyUsers);
|
|
23
|
-
this.displayAlternativeForTable(flags, worklog, get_1.default.mapWorklog(worklog, site.cloud));
|
|
24
|
-
}
|
|
25
|
-
static flagsToWorklogRequest(flags, cloud) {
|
|
26
|
-
var _a;
|
|
27
|
-
return {
|
|
28
|
-
comment: typeof flags.comment !== 'undefined' ? (0, atlascli_common_1.getComment)(flags.comment, cloud) : undefined,
|
|
29
|
-
visibility: (0, atlascli_common_1.getVisibility)(flags),
|
|
30
|
-
started: flags.started,
|
|
31
|
-
timeSpent: flags.timeSpent,
|
|
32
|
-
timeSpentSeconds: flags.timeSpentSeconds,
|
|
33
|
-
properties: (_a = flags.property) === null || _a === void 0 ? void 0 : _a.map((kv) => kv.split('/')).map((pair) => ({ key: pair[0], value: pair[1] })),
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.default = Add;
|
|
38
|
-
Add.description = 'Adds a worklog to an issue.';
|
|
39
|
-
Add.requestBodyFlags = Object.assign(Object.assign({ comment: core_1.Flags.string({ description: 'A acomment about worklog. In ADF for Cloud and simple string for Server/DC. ' }) }, (0, atlascli_common_1.getVisibilityFlags)()), { started: core_1.Flags.string({ description: 'The datetime on which the worklog effort was started. Example: 2014-03-19T18:45:42.000+0200' }), timeSpent: core_1.Flags.string({ exclusive: ['timeSpentSeconds'], description: 'The time spent working on the issue as days (#d), hours (#h), or minutes (#m or #). Cannot be provided if timeSpentSecond is provided. ' }), timeSpentSeconds: core_1.Flags.integer({ exclusive: ['timeSpent'], description: 'The time in seconds spent working on the issue. Cannot be provided if timeSpent is provided. ' }), property: core_1.Flags.string({ multiple: true, description: 'An entity property in the form of key/value. This parameter can be repeated.' }) });
|
|
40
|
-
Add.flags = Object.assign(Object.assign(Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }) }, Add.requestBodyFlags), { adjustEstimate: core_1.Flags.string({ description: "Defines how to update the issue's time estimate. Defaults to 'auto'.", options: ['new', 'leave', 'manual', 'auto'] }), newEstimate: core_1.Flags.string({ dependsOn: ['adjustEstimate'], description: "The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new." }), reduceBy: core_1.Flags.string({ dependsOn: ['adjustEstimate'], description: "The amount to reduce the issue's remaining estimate by, as days (#d), hours (#h), or minutes (#m). For example, 2d. Required when adjustEstimate is manual." }), notifyUsers: core_1.Flags.boolean({ description: 'notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud.' }) }), atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),worklogs_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/worklogs"),get_1=tslib_1.__importDefault(require("./get"));class Add extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(Add)).flags,s=this.getJira(e,t);if(t.adjustEstimate===worklogs_1.AdjustEstimate.NEW&&void 0===t.newEstimate)throw new Error("--newEstimate is required when --adjustEstime=new!");if(t.adjustEstimate===worklogs_1.AdjustEstimate.MANUAL&&void 0===t.reduceBy)throw new Error("--reduceBy is required when --adjustEstime=manual!");if(void 0===t.timeSpent&&void 0===t.timeSpentSeconds)throw new Error("Either --timeSpent or --timeSpentSeconds is required!");var i=Add.flagsToWorklogRequest(t,e.cloud),s=await s.worklogManager.addWorklog(t.issue,i,t.adjustEstimate,t.newEstimate,t.reduceBy,t.notifyUsers);this.displayAlternativeForTable(t,s,get_1.default.mapWorklog(s,e.cloud))}static flagsToWorklogRequest(e,t){return{comment:void 0!==e.comment?(0,atlascli_common_1.getComment)(e.comment,t):void 0,visibility:(0,atlascli_common_1.getVisibility)(e),started:e.started,timeSpent:e.timeSpent,timeSpentSeconds:e.timeSpentSeconds,properties:null==(t=e.property)?void 0:t.map(e=>e.split("/")).map(e=>({key:e[0],value:e[1]}))}}}(exports.default=Add).description="Adds a worklog to an issue.",Add.requestBodyFlags=Object.assign(Object.assign({comment:core_1.Flags.string({description:"A a comment about worklog. In ADF for Cloud and simple string for Server/DC. "})},(0,atlascli_common_1.getVisibilityFlags)()),{started:core_1.Flags.string({description:"The datetime on which the worklog effort was started. Example: 2014-03-19T18:45:42.000+0200"}),timeSpent:core_1.Flags.string({exclusive:["timeSpentSeconds"],description:"The time spent working on the issue as days (#d), hours (#h), or minutes (#m or #). Cannot be provided if timeSpentSecond is provided. "}),timeSpentSeconds:core_1.Flags.integer({exclusive:["timeSpent"],description:"The time in seconds spent working on the issue. Cannot be provided if timeSpent is provided. "}),property:core_1.Flags.string({multiple:!0,description:"An entity property in the form of key/value. This parameter can be repeated."})}),Add.flags=Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."})},Add.requestBodyFlags),{adjustEstimate:core_1.Flags.string({description:"Defines how to update the issue's time estimate. Defaults to 'auto'.",options:["new","leave","manual","auto"]}),newEstimate:core_1.Flags.string({dependsOn:["adjustEstimate"],description:"The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new."}),reduceBy:core_1.Flags.string({dependsOn:["adjustEstimate"],description:"The amount to reduce the issue's remaining estimate by, as days (#d), hours (#h), or minutes (#m). For example, 2d. Required when adjustEstimate is manual."}),notifyUsers:core_1.Flags.boolean({description:"notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud."})}),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
"
|
|
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 worklogs_1 = require("@thestarware/atlassian-typescript-client/dist/jira/common/worklogs");
|
|
6
|
-
class WorklogDelete extends atlascli_common_1.CommandWithSite {
|
|
7
|
-
async runWithSite(site) {
|
|
8
|
-
const { flags } = await this.parse(WorklogDelete);
|
|
9
|
-
const jira = this.getJira(site, flags);
|
|
10
|
-
if (flags.adjustEstimate === worklogs_1.AdjustEstimate.NEW && typeof flags.newEstimate === 'undefined') {
|
|
11
|
-
throw new Error('--newEstimate is required when --adjustEstime=new!');
|
|
12
|
-
}
|
|
13
|
-
else if (flags.adjustEstimate === worklogs_1.AdjustEstimate.MANUAL && typeof flags.increaseBy === 'undefined') {
|
|
14
|
-
throw new Error('--increaseBy is required when --adjustEstime=manual!');
|
|
15
|
-
}
|
|
16
|
-
await jira.worklogManager.deleteWorklog(flags.issue, flags.worklogId, flags.adjustEstimate, flags.newEstimate, flags.increaseBy, flags.notifyUsers);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.default = WorklogDelete;
|
|
20
|
-
WorklogDelete.description = 'Deletes a worklog.';
|
|
21
|
-
WorklogDelete.flags = Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), worklogId: core_1.Flags.integer({ required: true, description: 'ID of Worklog' }), adjustEstimate: core_1.Flags.string({ description: "Defines how to update the issue's time estimate. Defaults to 'auto'.", options: ['new', 'leave', 'manual', 'auto'] }), newEstimate: core_1.Flags.string({ description: "The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new." }), increaseBy: core_1.Flags.string({ description: "TThe amount to increase the issue's remaining estimate by, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is manual." }), notifyUsers: core_1.Flags.boolean({ description: 'notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud.' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),worklogs_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/worklogs");class WorklogDelete extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(WorklogDelete)).flags,e=this.getJira(e,s);if(s.adjustEstimate===worklogs_1.AdjustEstimate.NEW&&void 0===s.newEstimate)throw new Error("--newEstimate is required when --adjustEstime=new!");if(s.adjustEstimate===worklogs_1.AdjustEstimate.MANUAL&&void 0===s.increaseBy)throw new Error("--increaseBy is required when --adjustEstime=manual!");await e.worklogManager.deleteWorklog(s.issue,s.worklogId,s.adjustEstimate,s.newEstimate,s.increaseBy,s.notifyUsers)}}(exports.default=WorklogDelete).description="Deletes a worklog.",WorklogDelete.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.integer({required:!0,description:"ID of Worklog"}),adjustEstimate:core_1.Flags.string({description:"Defines how to update the issue's time estimate. Defaults to 'auto'.",options:["new","leave","manual","auto"]}),newEstimate:core_1.Flags.string({description:"The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new."}),increaseBy:core_1.Flags.string({description:"TThe amount to increase the issue's remaining estimate by, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is manual."}),notifyUsers:core_1.Flags.boolean({description:"notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
"
|
|
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 WorklogGetDeleted extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags, args } = await this.parse(WorklogGetDeleted);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
const deletedWorklogs = await jira.worklogManager.getDeletedWorklogs(flags.since || args.since);
|
|
10
|
-
this.displayAlternativeForTable(flags, deletedWorklogs, deletedWorklogs.values);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = WorklogGetDeleted;
|
|
14
|
-
WorklogGetDeleted.description = 'Returns a list of IDs and delete timestamps for worklogs deleted after a date and time.';
|
|
15
|
-
WorklogGetDeleted.flags = Object.assign({ since: core_1.Flags.string({ description: 'The date and time, as a UNIX timestamp in milliseconds or ISDO Date Time, after which deleted worklogs are returned.' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
16
|
-
WorklogGetDeleted.args = [
|
|
17
|
-
{
|
|
18
|
-
name: 'since',
|
|
19
|
-
description: WorklogGetDeleted.flags.since.description,
|
|
20
|
-
},
|
|
21
|
-
];
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class WorklogGetDeleted extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(WorklogGetDeleted),e=await this.getJira(e,t).worklogManager.getDeletedWorklogs(t.since||a.since);this.displayAlternativeForTable(t,e,e.values)}}(exports.default=WorklogGetDeleted).description="Returns a list of IDs and delete timestamps for worklogs deleted after a date and time.",WorklogGetDeleted.flags=Object.assign({since:core_1.Flags.string({description:"The date and time, as a UNIX timestamp in milliseconds or ISDO Date Time, after which deleted worklogs are returned."})},atlascli_common_1.CommandWithSite.flags),WorklogGetDeleted.args=[{name:"since",description:WorklogGetDeleted.flags.since.description}];
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
"
|
|
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_1 = tslib_1.__importDefault(require("./get"));
|
|
7
|
-
class GetIssueWorklogs extends atlascli_common_1.CommandWithSite {
|
|
8
|
-
async runWithSite(site) {
|
|
9
|
-
const { flags } = await this.parse(GetIssueWorklogs);
|
|
10
|
-
const jira = this.getJira(site, flags);
|
|
11
|
-
let epochStartAfter = Number.parseInt(flags.startedAfter || '', 10);
|
|
12
|
-
if (flags.startedAfter) {
|
|
13
|
-
if (Number(epochStartAfter).toString(10) !== flags.startedAfter) {
|
|
14
|
-
epochStartAfter = new Date(flags.startedAfter).getTime();
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
const worklogs = await jira.worklogManager.getIssueWorklogs(flags.issue, flags.startAt, flags.maxResults, epochStartAfter);
|
|
18
|
-
if (this.isTabularOutput(flags)) {
|
|
19
|
-
this.display(flags, worklogs.worklogs.map(w => get_1.default.mapWorklog(w, site.cloud)));
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
this.display(flags, worklogs);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.default = GetIssueWorklogs;
|
|
27
|
-
GetIssueWorklogs.description = 'Returns worklogs for an issue, starting from the oldest worklog or from the worklog started on or after a date and time.';
|
|
28
|
-
GetIssueWorklogs.flags = Object.assign(Object.assign(Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }) }, (0, atlascli_common_1.getStartAtAndMaxFlags)()), { startedAfter: core_1.Flags.string({ description: 'The worklog start date and time. Can be an ISO Date Time or a UNIX timestamp in milliseconds, after which worklogs are returned.' }) }), atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),get_1=tslib_1.__importDefault(require("./get"));class GetIssueWorklogs extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(GetIssueWorklogs)).flags,s=this.getJira(t,e);let r=Number.parseInt(e.startedAfter||"",10);e.startedAfter&&Number(r).toString(10)!==e.startedAfter&&(r=new Date(e.startedAfter).getTime());s=await s.worklogManager.getIssueWorklogs(e.issue,e.startAt,e.maxResults,r);this.isTabularOutput(e)?this.display(e,s.worklogs.map(e=>get_1.default.mapWorklog(e,t.cloud))):this.display(e,s)}}(exports.default=GetIssueWorklogs).description="Returns worklogs for an issue, starting from the oldest worklog or from the worklog started on or after a date and time.",GetIssueWorklogs.flags=Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{startedAfter:core_1.Flags.string({description:"The worklog start date and time. Can be an ISO Date Time or a UNIX timestamp in milliseconds, after which worklogs are returned."})}),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
const get_deleted_1 = tslib_1.__importDefault(require("./get-deleted"));
|
|
6
|
-
class WorklogGetUpdated extends atlascli_common_1.CommandWithSite {
|
|
7
|
-
async runWithSite(site) {
|
|
8
|
-
const { flags, args } = await this.parse(WorklogGetUpdated);
|
|
9
|
-
const jira = this.getJira(site, flags);
|
|
10
|
-
const updated = await jira.worklogManager.getUpdatedWorklogs(flags.since || args.since);
|
|
11
|
-
this.displayAlternativeForTable(flags, updated, updated.values);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.default = WorklogGetUpdated;
|
|
15
|
-
WorklogGetUpdated.description = 'Returns a list of IDs and update timestamps for worklogs updated after a date and time.';
|
|
16
|
-
WorklogGetUpdated.flags = get_deleted_1.default.flags;
|
|
17
|
-
WorklogGetUpdated.args = get_deleted_1.default.args;
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_deleted_1=tslib_1.__importDefault(require("./get-deleted"));class WorklogGetUpdated extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(WorklogGetUpdated),e=await this.getJira(e,t).worklogManager.getUpdatedWorklogs(t.since||a.since);this.displayAlternativeForTable(t,e,e.values)}}(exports.default=WorklogGetUpdated).description="Returns a list of IDs and update timestamps for worklogs updated after a date and time.",WorklogGetUpdated.flags=get_deleted_1.default.flags,WorklogGetUpdated.args=get_deleted_1.default.args;
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
"
|
|
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_1 = tslib_1.__importDefault(require("./get"));
|
|
7
|
-
class GetWorklogs extends atlascli_common_1.CommandWithSite {
|
|
8
|
-
async runWithSite(site) {
|
|
9
|
-
const { flags, args } = await this.parse(GetWorklogs);
|
|
10
|
-
const jira = this.getJira(site, flags);
|
|
11
|
-
flags.worklogId = flags.worklogId || [];
|
|
12
|
-
args.worklogId = args.worklogId ? [args.worklogId] : [];
|
|
13
|
-
const worklogs = await jira.worklogManager.getWorklogs(...flags.worklogId, ...args.worklogId);
|
|
14
|
-
if (this.isTabularOutput(flags)) {
|
|
15
|
-
this.display(flags, worklogs);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
this.display(flags, worklogs.map(w => get_1.default.mapWorklog(w, site.cloud)));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.default = GetWorklogs;
|
|
23
|
-
GetWorklogs.description = 'Returns worklog details for a list of worklog IDs.';
|
|
24
|
-
GetWorklogs.flags = Object.assign({ worklogId: core_1.Flags.integer({ multiple: true, description: 'ID of Worklog' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
25
|
-
GetWorklogs.args = [
|
|
26
|
-
{
|
|
27
|
-
name: 'worklogId',
|
|
28
|
-
description: 'ID of Worklog',
|
|
29
|
-
},
|
|
30
|
-
];
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),get_1=tslib_1.__importDefault(require("./get"));class GetWorklogs extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:o,args:r}=await this.parse(GetWorklogs),t=this.getJira(e,o),t=(o.worklogId=o.worklogId||[],r.worklogId=r.worklogId?[r.worklogId]:[],await t.worklogManager.getWorklogs(...o.worklogId,...r.worklogId));this.isTabularOutput(o)?this.display(o,t):this.display(o,t.map(o=>get_1.default.mapWorklog(o,e.cloud)))}}(exports.default=GetWorklogs).description="Returns worklog details for a list of worklog IDs.",GetWorklogs.flags=Object.assign({worklogId:core_1.Flags.integer({multiple:!0,description:"ID of Worklog"})},atlascli_common_1.CommandWithSite.flags),GetWorklogs.args=[{name:"worklogId",description:"ID of Worklog"}];
|
|
@@ -1,38 +1 @@
|
|
|
1
|
-
"
|
|
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 mapper_utils_1 = require("@thestarware/atlascli-common/lib/util/mapper-utils");
|
|
6
|
-
class GetWorklog extends atlascli_common_1.CommandWithSite {
|
|
7
|
-
async runWithSite(site) {
|
|
8
|
-
const { flags } = await this.parse(GetWorklog);
|
|
9
|
-
const jira = this.getJira(site, flags);
|
|
10
|
-
const worklog = await jira.worklogManager.getWorklog(flags.issue, flags.worklogId);
|
|
11
|
-
if (this.isTabularOutput(flags)) {
|
|
12
|
-
this.display(flags, GetWorklog.mapWorklog(worklog, site.cloud));
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
this.display(flags, worklog);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
static mapWorklog(w, cloud) {
|
|
19
|
-
return Object.assign(Object.assign(Object.assign({ id: w.id, self: w.self, timeSpent: w.timeSpent, timeSpentSeconds: w.timeSpentSeconds }, (0, mapper_utils_1.mapToUser)(w.author, cloud)), { comment: GetWorklog.getComment(w.comment), created: w.created, started: w.started, updated: w.updated }), (0, mapper_utils_1.mapToUser)(w.updateAuthor, cloud, 'updateAuthor'));
|
|
20
|
-
}
|
|
21
|
-
static getComment(c) {
|
|
22
|
-
if (typeof c === 'string') {
|
|
23
|
-
return c;
|
|
24
|
-
}
|
|
25
|
-
if (typeof c === 'object') {
|
|
26
|
-
if (Array.isArray(c.content) && c.content.length > 0) {
|
|
27
|
-
const content = c.content[0];
|
|
28
|
-
if (Array.isArray(content.content) && content.content.length > 0) {
|
|
29
|
-
return content.content[0].text;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return c;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.default = GetWorklog;
|
|
37
|
-
GetWorklog.description = 'Returns a specific worklog.';
|
|
38
|
-
GetWorklog.flags = Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), worklogId: core_1.Flags.integer({ required: true, description: 'ID of Worklog' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class GetWorklog extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetWorklog)).flags,r=await this.getJira(e,t).worklogManager.getWorklog(t.issue,t.worklogId);this.isTabularOutput(t)?this.display(t,GetWorklog.mapWorklog(r,e.cloud)):this.display(t,r)}static mapWorklog(e,t){return Object.assign(Object.assign(Object.assign({id:e.id,self:e.self,timeSpent:e.timeSpent,timeSpentSeconds:e.timeSpentSeconds},(0,mapper_utils_1.mapToUser)(e.author,t)),{comment:GetWorklog.getComment(e.comment),created:e.created,started:e.started,updated:e.updated}),(0,mapper_utils_1.mapToUser)(e.updateAuthor,t,"updateAuthor"))}static getComment(e){if("string"!=typeof e&&"object"==typeof e&&Array.isArray(e.content)&&0<e.content.length){var t=e.content[0];if(Array.isArray(t.content)&&0<t.content.length)return t.content[0].text}return e}}(exports.default=GetWorklog).description="Returns a specific worklog.",GetWorklog.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.integer({required:!0,description:"ID of Worklog"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
"
|
|
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 worklogs_1 = require("@thestarware/atlassian-typescript-client/dist/jira/common/worklogs");
|
|
7
|
-
const add_1 = tslib_1.__importDefault(require("./add"));
|
|
8
|
-
const get_1 = tslib_1.__importDefault(require("./get"));
|
|
9
|
-
class WorklogUpdate extends atlascli_common_1.CommandWithSite {
|
|
10
|
-
async runWithSite(site) {
|
|
11
|
-
const { flags } = await this.parse(WorklogUpdate);
|
|
12
|
-
const jira = this.getJira(site, flags);
|
|
13
|
-
if (flags.adjustEstimate === worklogs_1.AdjustEstimate.NEW && typeof flags.newEstimate === 'undefined') {
|
|
14
|
-
throw new Error('--newEstimate is required when --adjustEstime=new!');
|
|
15
|
-
}
|
|
16
|
-
const request = add_1.default.flagsToWorklogRequest(flags, site.cloud);
|
|
17
|
-
const worklog = await jira.worklogManager.updateWorklog(flags.issue, flags.worklogId, request, flags.adjustEstimate, flags.newEstimate, flags.notifyUsers);
|
|
18
|
-
this.displayAlternativeForTable(flags, worklog, get_1.default.mapWorklog(worklog, site.cloud));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.default = WorklogUpdate;
|
|
22
|
-
WorklogUpdate.description = 'Adds a worklog to an issue.';
|
|
23
|
-
WorklogUpdate.flags = Object.assign(Object.assign(Object.assign(Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), worklogId: core_1.Flags.integer({ required: true, description: 'ID of Worklog' }) }, add_1.default.requestBodyFlags), { adjustEstimate: core_1.Flags.string({ description: "Defines how to update the issue's time estimate. Defaults to 'auto'.", options: ['new', 'leave', 'auto'] }), newEstimate: core_1.Flags.string({ dependsOn: ['adjustEstimate'], description: "The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new." }), notifyUsers: core_1.Flags.boolean({ dependsOn: ['adjustEstimate'], description: 'notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud.' }) }), (0, atlascli_common_1.getVisibilityFlags)()), atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),worklogs_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/worklogs"),add_1=tslib_1.__importDefault(require("./add")),get_1=tslib_1.__importDefault(require("./get"));class WorklogUpdate extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(WorklogUpdate)).flags,s=this.getJira(e,t);if(t.adjustEstimate===worklogs_1.AdjustEstimate.NEW&&void 0===t.newEstimate)throw new Error("--newEstimate is required when --adjustEstime=new!");var a=add_1.default.flagsToWorklogRequest(t,e.cloud),s=await s.worklogManager.updateWorklog(t.issue,t.worklogId,a,t.adjustEstimate,t.newEstimate,t.notifyUsers);this.displayAlternativeForTable(t,s,get_1.default.mapWorklog(s,e.cloud))}}(exports.default=WorklogUpdate).description="Adds a worklog to an issue.",WorklogUpdate.flags=Object.assign(Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.integer({required:!0,description:"ID of Worklog"})},add_1.default.requestBodyFlags),{adjustEstimate:core_1.Flags.string({description:"Defines how to update the issue's time estimate. Defaults to 'auto'.",options:["new","leave","auto"]}),newEstimate:core_1.Flags.string({dependsOn:["adjustEstimate"],description:"The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new."}),notifyUsers:core_1.Flags.boolean({dependsOn:["adjustEstimate"],description:"notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud."})}),(0,atlascli_common_1.getVisibilityFlags)()),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
"
|
|
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 atlascli_common_2 = require("@thestarware/atlascli-common");
|
|
6
|
-
class SetWorklogProperty extends atlascli_common_2.BaseCommandWithCloudSite {
|
|
7
|
-
async runWithCloudSite(site, jira) {
|
|
8
|
-
const { flags } = await this.parse(SetWorklogProperty);
|
|
9
|
-
await jira.worklogPropertyManager.deleteWorklogProperty(flags.issue, flags.worklogId, flags.key);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.default = SetWorklogProperty;
|
|
13
|
-
SetWorklogProperty.description = 'Deletes a property for a worklog.';
|
|
14
|
-
SetWorklogProperty.flags = Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), worklogId: core_1.Flags.string({ required: true, description: 'Worklog ID.' }), key: core_1.Flags.string({ required: true, description: 'Property key.' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class SetWorklogProperty extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var o=(await this.parse(SetWorklogProperty)).flags;await r.worklogPropertyManager.deleteWorklogProperty(o.issue,o.worklogId,o.key)}}(exports.default=SetWorklogProperty).description="Deletes a property for a worklog.",SetWorklogProperty.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"
|
|
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 atlascli_common_2 = require("@thestarware/atlascli-common");
|
|
6
|
-
class GetWorklogPropertyKeys extends atlascli_common_2.BaseCommandWithCloudSite {
|
|
7
|
-
async runWithCloudSite(site, jira) {
|
|
8
|
-
const { flags } = await this.parse(GetWorklogPropertyKeys);
|
|
9
|
-
const propertyKeys = await jira.worklogPropertyManager.getWorklogPropertyKeys(flags.issue, flags.worklogId);
|
|
10
|
-
this.displayJsonYamlOrTable(flags, propertyKeys, () => this.tabularFormat(propertyKeys.keys, flags));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = GetWorklogPropertyKeys;
|
|
14
|
-
GetWorklogPropertyKeys.description = 'Returns the keys of all the properties of a worklog.';
|
|
15
|
-
GetWorklogPropertyKeys.flags = Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), worklogId: core_1.Flags.string({ required: true, description: 'Worklog ID.' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetWorklogPropertyKeys extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,o){let r=(await this.parse(GetWorklogPropertyKeys)).flags,t=await o.worklogPropertyManager.getWorklogPropertyKeys(r.issue,r.worklogId);this.displayJsonYamlOrTable(r,t,()=>this.tabularFormat(t.keys,r))}}(exports.default=GetWorklogPropertyKeys).description="Returns the keys of all the properties of a worklog.",GetWorklogPropertyKeys.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"
|
|
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 atlascli_common_2 = require("@thestarware/atlascli-common");
|
|
6
|
-
class GetWorklogProperty extends atlascli_common_2.BaseCommandWithCloudSite {
|
|
7
|
-
async runWithCloudSite(site, jira) {
|
|
8
|
-
const { flags } = await this.parse(GetWorklogProperty);
|
|
9
|
-
const entityProperty = await jira.worklogPropertyManager.getWorklogProperty(flags.issue, flags.worklogId, flags.key);
|
|
10
|
-
this.display(flags, entityProperty);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = GetWorklogProperty;
|
|
14
|
-
GetWorklogProperty.description = 'Gets the value of a property for a worklog.';
|
|
15
|
-
GetWorklogProperty.flags = Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), worklogId: core_1.Flags.string({ required: true, description: 'Worklog ID.' }), key: core_1.Flags.string({ required: true, description: 'Property key.' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetWorklogProperty extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var o=(await this.parse(GetWorklogProperty)).flags,r=await r.worklogPropertyManager.getWorklogProperty(o.issue,o.worklogId,o.key);this.display(o,r)}}(exports.default=GetWorklogProperty).description="Gets the value of a property for a worklog.",GetWorklogProperty.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
"
|
|
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 atlascli_common_2 = require("@thestarware/atlascli-common");
|
|
6
|
-
class SetWorklogProperty extends atlascli_common_2.BaseCommandWithCloudSite {
|
|
7
|
-
async runWithCloudSite(site, jira) {
|
|
8
|
-
const { flags } = await this.parse(SetWorklogProperty);
|
|
9
|
-
await jira.worklogPropertyManager.setWorklogProperty(flags.issue, flags.worklogId, flags.key, flags.value);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.default = SetWorklogProperty;
|
|
13
|
-
SetWorklogProperty.description = 'Creates or updates the value of a property for a worklog.';
|
|
14
|
-
SetWorklogProperty.flags = Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), worklogId: core_1.Flags.string({ required: true, description: 'Worklog ID.' }), key: core_1.Flags.string({ required: true, description: 'Property key.' }), value: core_1.Flags.string({ required: true, description: 'Non-empty JSON blob. The maximum length is 32768 characters.' }) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class SetWorklogProperty extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var o=(await this.parse(SetWorklogProperty)).flags;await r.worklogPropertyManager.setWorklogProperty(o.issue,o.worklogId,o.key,o.value)}}(exports.default=SetWorklogProperty).description="Creates or updates the value of a property for a worklog.",SetWorklogProperty.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."}),key:core_1.Flags.string({required:!0,description:"Property key."}),value:core_1.Flags.string({required:!0,description:"Non-empty JSON blob. The maximum length is 32768 characters."})},atlascli_common_1.CommandWithSite.flags);
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.run = void 0;
|
|
4
|
-
var core_1 = require("@oclif/core");
|
|
5
|
-
Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.run=void 0;var core_1=require("@oclif/core");Object.defineProperty(exports,"run",{enumerable:!0,get:function(){return core_1.run}});
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thestarware/atlascli-jira",
|
|
3
|
-
"description": "Jira Command Line Tool",
|
|
4
|
-
"version": "1.2.
|
|
3
|
+
"description": "ATLAS CLI for Jira: Command Line Tool",
|
|
4
|
+
"version": "1.2.7",
|
|
5
|
+
"buildOrder": 3,
|
|
5
6
|
"author": "deniz@thestarware.com",
|
|
6
7
|
"bin": {
|
|
7
|
-
"jira": "bin/run"
|
|
8
|
-
},
|
|
9
|
-
"bugs": {
|
|
10
|
-
"url": "https://denizoguz.atlassian.net/jira/software/c/projects/ATLASCLI/issues/"
|
|
8
|
+
"jira": "./bin/run"
|
|
11
9
|
},
|
|
10
|
+
"bugs": "https://denizoguz.atlassian.net/jira/software/c/projects/ATLASCLI/issues/",
|
|
12
11
|
"publishConfig": {
|
|
13
12
|
"access": "restricted"
|
|
14
13
|
},
|
|
@@ -16,15 +15,11 @@
|
|
|
16
15
|
"@oclif/core": "^1.18.0",
|
|
17
16
|
"@oclif/plugin-help": "^5",
|
|
18
17
|
"@oclif/plugin-plugins": "^2.1.2",
|
|
19
|
-
"@
|
|
18
|
+
"@oclif/plugin-update": "^2.2.0",
|
|
19
|
+
"@thestarware/atlascli-common": "1.2.4",
|
|
20
20
|
"@types/node-fetch": "^2.5.7",
|
|
21
|
-
"assert": "^2.0.0",
|
|
22
|
-
"buffer": "^6.0.3",
|
|
23
|
-
"crypto-browserify": "^3.12.0",
|
|
24
|
-
"events": "^3.3.0",
|
|
25
21
|
"node-fetch": "^2.6.1",
|
|
26
|
-
"
|
|
27
|
-
"util": "^0.12.5",
|
|
22
|
+
"tslib": "^2.3.1",
|
|
28
23
|
"uuid": "^8.3.2"
|
|
29
24
|
},
|
|
30
25
|
"devDependencies": {
|
|
@@ -43,16 +38,11 @@
|
|
|
43
38
|
"nyc": "^14",
|
|
44
39
|
"oclif": "^3",
|
|
45
40
|
"prettier": "^2.2.1",
|
|
46
|
-
"ts-loader": "^9.4.1",
|
|
47
41
|
"ts-node": "^10.9.1",
|
|
48
|
-
"
|
|
49
|
-
"typescript": "^4.8.4",
|
|
50
|
-
"webpack": "^5.74.0",
|
|
51
|
-
"webpack-cli": "^4.10.0",
|
|
52
|
-
"webpack-manifest-plugin": "^5.0.0"
|
|
42
|
+
"uglify-js": "^3.17.4"
|
|
53
43
|
},
|
|
54
44
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
45
|
+
"node": ">=14.19.0"
|
|
56
46
|
},
|
|
57
47
|
"files": [
|
|
58
48
|
"/bin",
|
|
@@ -78,13 +68,15 @@
|
|
|
78
68
|
"commands": "./lib/commands",
|
|
79
69
|
"plugins": [
|
|
80
70
|
"@oclif/plugin-help",
|
|
81
|
-
"@oclif/plugin-plugins"
|
|
71
|
+
"@oclif/plugin-plugins",
|
|
72
|
+
"@oclif/plugin-update"
|
|
82
73
|
],
|
|
83
74
|
"additionalHelpFlags": [
|
|
84
75
|
"-h"
|
|
85
76
|
],
|
|
86
77
|
"update": {
|
|
87
78
|
"s3": {
|
|
79
|
+
"host": "https://thestarware-atlas-cli.s3.amazonaws.com",
|
|
88
80
|
"bucket": "thestarware-atlas-cli",
|
|
89
81
|
"templates": {
|
|
90
82
|
"target": {
|
|
@@ -103,7 +95,7 @@
|
|
|
103
95
|
"topicSeparator": " ",
|
|
104
96
|
"topics": {
|
|
105
97
|
"announcement-banner": {
|
|
106
|
-
"description": "Manage
|
|
98
|
+
"description": "Manage announcement banner"
|
|
107
99
|
},
|
|
108
100
|
"application-roles": {
|
|
109
101
|
"description": "Manage application roles."
|
|
@@ -120,6 +112,9 @@
|
|
|
120
112
|
"comment": {
|
|
121
113
|
"description": "Manage comments for issues."
|
|
122
114
|
},
|
|
115
|
+
"config": {
|
|
116
|
+
"description": "Manage site configurations."
|
|
117
|
+
},
|
|
123
118
|
"issue": {
|
|
124
119
|
"description": "Manage issues."
|
|
125
120
|
},
|
|
@@ -334,20 +329,23 @@
|
|
|
334
329
|
},
|
|
335
330
|
"repository": {
|
|
336
331
|
"type": "git",
|
|
337
|
-
"url": "git
|
|
332
|
+
"url": "git@bitbucket.org:denizoguz/atlascli.git",
|
|
338
333
|
"directory": "atlascli-jira"
|
|
339
334
|
},
|
|
340
335
|
"scripts": {
|
|
341
|
-
"
|
|
336
|
+
"clean": "rm -rf lib && rm -rf dist && rm -rf tmp",
|
|
337
|
+
"compile": "npx tsc -b",
|
|
338
|
+
"uglify": "find lib/ -type f -name '*.js' -exec uglifyjs {} -o {} -c -m \\;",
|
|
339
|
+
"prepublishOnly": "find lib -name \"*.d.ts\" -type f -delete",
|
|
340
|
+
"build": "npm run clean && npm run compile && npm run uglify",
|
|
342
341
|
"lint": "eslint . --ext .ts --config ../.eslintrc",
|
|
343
|
-
"
|
|
344
|
-
"pack": "oclif pack",
|
|
342
|
+
"pack": "oclif pack tarballs",
|
|
345
343
|
"test-server": "TEST_ENVIRONMENT=server TS_NODE_TRANSPILE_ONLY=true TEST_OUTPUT=0 mocha \"test/{,!(cloud)/**/}*.test.ts\"",
|
|
346
344
|
"test-server-debug": "TEST_ENVIRONMENT=server TS_NODE_TRANSPILE_ONLY=true DEBUG=true TEST_OUTPUT=1 mocha \"test/{,!(cloud)/**/}*.test.ts\"",
|
|
347
345
|
"test-cloud": "TEST_ENVIRONMENT=cloud TS_NODE_TRANSPILE_ONLY=true TEST_OUTPUT=0 mocha \"test/{,!(server)/**/}*.test.ts\"",
|
|
348
346
|
"test-cloud-debug": "TEST_ENVIRONMENT=cloud TS_NODE_TRANSPILE_ONLY=true DEBUG=true TEST_OUTPUT=1 mocha \"test/{,!(server)/**/}*.test.ts\"",
|
|
349
|
-
"test": "
|
|
350
|
-
"version": "oclif readme && git add README.md"
|
|
347
|
+
"test": "npm run test-server && npm run test-cloud",
|
|
348
|
+
"version": "oclif-dev readme && git add README.md"
|
|
351
349
|
},
|
|
352
350
|
"types": "lib/index.d.ts",
|
|
353
351
|
"mocha": {
|
|
@@ -357,8 +355,5 @@
|
|
|
357
355
|
"reporter": "spec",
|
|
358
356
|
"timeout": 15000
|
|
359
357
|
},
|
|
360
|
-
"
|
|
361
|
-
"lib": "lib",
|
|
362
|
-
"test": "test"
|
|
363
|
-
}
|
|
358
|
+
"private": false
|
|
364
359
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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 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
|
-
const core_1 = require("@oclif/core");
|
|
7
|
-
const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
|
|
8
|
-
class GetAllUserAvatars extends base_command_with_cloud_or_server_site_1.default {
|
|
9
|
-
async runWithServerSite(site, jira) {
|
|
10
|
-
const { flags } = await this.parse(GetAllUserAvatars);
|
|
11
|
-
const normalizedUserQuery = await (0, user_util_1.getUser)(jira, flags.user);
|
|
12
|
-
flags.username = normalizedUserQuery.username;
|
|
13
|
-
const result = await jira.avatarManager.getAllUserAvatars(flags.username);
|
|
14
|
-
this.display(flags, [...result.system, ...result.custom]);
|
|
15
|
-
}
|
|
16
|
-
async runWithCloudSite(_site, _jira) {
|
|
17
|
-
throw new Error('User avatars are not available for cloud!');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.default = GetAllUserAvatars;
|
|
21
|
-
GetAllUserAvatars.description = 'Returns all user avatars for specified user.';
|
|
22
|
-
GetAllUserAvatars.flags = Object.assign({ user: core_1.Flags.string({ char: 'u', required: true, description: 'The username or email.' }) }, atlascli_common_1.CommandWithSite.flags);
|
package/lib/oclif-config.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getOclifConfig = void 0;
|
|
4
|
-
//We need to copy this file to every oclif project we need to access from forge-terminal
|
|
5
|
-
function getOclifConfig() {
|
|
6
|
-
return require("../package.json");
|
|
7
|
-
}
|
|
8
|
-
exports.getOclifConfig = getOclifConfig;
|