@thestarware/atlascli-jira 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -0
- package/README.md +9755 -0
- package/bin/dev +18 -0
- package/bin/dev.cmd +3 -0
- package/bin/run +5 -0
- package/bin/run.cmd +3 -0
- package/lib/commands/announcement-banner/get.js +1 -0
- package/lib/commands/announcement-banner/update.js +1 -0
- package/lib/commands/application-role/get-all.js +2 -0
- package/lib/commands/application-role/get.js +1 -0
- package/lib/commands/application-role/update.js +1 -0
- package/lib/commands/attachment/add.js +1 -0
- package/lib/commands/attachment/delete.js +1 -0
- package/lib/commands/attachment/get-content.js +1 -0
- package/lib/commands/attachment/get-jira-settings.js +1 -0
- package/lib/commands/attachment/get-metadata-for-zip.js +1 -0
- package/lib/commands/attachment/get-metadata.js +1 -0
- package/lib/commands/attachment/get-thumbnails.js +1 -0
- package/lib/commands/audit-record/get-associated.js +1 -0
- package/lib/commands/audit-record/get-changed.js +1 -0
- package/lib/commands/avatar/delete-universal-avatar.js +1 -0
- package/lib/commands/avatar/delete-user-avatar.js +1 -0
- package/lib/commands/avatar/get-all-user-avatar.js +1 -0
- package/lib/commands/avatar/get-image-by-id.js +1 -0
- package/lib/commands/avatar/get-image-by-owner.js +1 -0
- package/lib/commands/avatar/get-image-by-type.js +1 -0
- package/lib/commands/avatar/get-system-avatars.js +1 -0
- package/lib/commands/avatar/get-universal-avatars.js +1 -0
- package/lib/commands/avatar/set-user-avatar.js +1 -0
- package/lib/commands/avatar/upload-universal-avatar.js +1 -0
- package/lib/commands/avatar/upload-user-avatar.js +1 -0
- package/lib/commands/comment/add.js +1 -0
- package/lib/commands/comment/delete.js +1 -0
- package/lib/commands/comment/get-for-issue.js +1 -0
- package/lib/commands/comment/get-with-ids.js +1 -0
- package/lib/commands/comment/get.js +1 -0
- package/lib/commands/comment/update.js +1 -0
- package/lib/commands/comment-property/delete-property.js +1 -0
- package/lib/commands/comment-property/get-property-keys.js +1 -0
- package/lib/commands/comment-property/get-property.js +1 -0
- package/lib/commands/comment-property/set-property.js +1 -0
- package/lib/commands/config/add.js +1 -0
- package/lib/commands/config/delete.js +1 -0
- package/lib/commands/config/get-default.js +1 -0
- package/lib/commands/config/list.js +1 -0
- package/lib/commands/config/set-default.js +1 -0
- package/lib/commands/dashboard/add-edit-permission.js +1 -0
- package/lib/commands/dashboard/add-share-permission.js +1 -0
- package/lib/commands/dashboard/copy.js +1 -0
- package/lib/commands/dashboard/create.js +1 -0
- package/lib/commands/dashboard/delete.js +1 -0
- package/lib/commands/dashboard/get-all.js +1 -0
- package/lib/commands/dashboard/get-permissions.js +1 -0
- package/lib/commands/dashboard/get.js +1 -0
- package/lib/commands/dashboard/search.js +1 -0
- package/lib/commands/dashboard/update.js +1 -0
- package/lib/commands/dashboard-gadget/add.js +1 -0
- package/lib/commands/dashboard-gadget/get-availables.js +1 -0
- package/lib/commands/dashboard-gadget/remove.js +1 -0
- package/lib/commands/dashboard-gadget/search.js +1 -0
- package/lib/commands/dashboard-gadget/update.js +1 -0
- package/lib/commands/dashboard-item-property/delete.js +1 -0
- package/lib/commands/dashboard-item-property/get-keys.js +1 -0
- package/lib/commands/dashboard-item-property/get.js +1 -0
- package/lib/commands/dashboard-item-property/set.js +1 -0
- package/lib/commands/filter/add-favourite.js +1 -0
- package/lib/commands/filter/change-owner.js +1 -0
- package/lib/commands/filter/create.js +1 -0
- package/lib/commands/filter/delete.js +1 -0
- package/lib/commands/filter/get-columns.js +1 -0
- package/lib/commands/filter/get-details.js +1 -0
- package/lib/commands/filter/get-favourites.js +1 -0
- package/lib/commands/filter/get-my.js +1 -0
- package/lib/commands/filter/get.js +1 -0
- package/lib/commands/filter/remove-favourite.js +1 -0
- package/lib/commands/filter/reset-columns.js +1 -0
- package/lib/commands/filter/search.js +1 -0
- package/lib/commands/filter/set-columns.js +1 -0
- package/lib/commands/filter/update.js +1 -0
- package/lib/commands/filter-sharing/add-edit-permission.js +1 -0
- package/lib/commands/filter-sharing/add-share-permission.js +1 -0
- package/lib/commands/filter-sharing/delete-permission.js +1 -0
- package/lib/commands/filter-sharing/get-default-scope.js +1 -0
- package/lib/commands/filter-sharing/get-edit-permissions.js +1 -0
- package/lib/commands/filter-sharing/get-permission.js +1 -0
- package/lib/commands/filter-sharing/get-share-permissions.js +1 -0
- package/lib/commands/filter-sharing/set-default-scope.js +1 -0
- package/lib/commands/group/add-user.js +1 -0
- package/lib/commands/group/create.js +1 -0
- package/lib/commands/group/find-groups.js +1 -0
- package/lib/commands/group/get-all.js +1 -0
- package/lib/commands/group/get-users.js +1 -0
- package/lib/commands/group/get.js +1 -0
- package/lib/commands/group/remove-user.js +1 -0
- package/lib/commands/group/remove.js +1 -0
- package/lib/commands/group-and-user-picker/find-groups.js +1 -0
- package/lib/commands/group-and-user-picker/find-users.js +1 -0
- package/lib/commands/issue/archive.js +1 -0
- package/lib/commands/issue/assign.js +1 -0
- package/lib/commands/issue/create.js +1 -0
- package/lib/commands/issue/delete.js +1 -0
- package/lib/commands/issue/edit.js +1 -0
- package/lib/commands/issue/get-changelogs.js +1 -0
- package/lib/commands/issue/get-create-metadata.js +1 -0
- package/lib/commands/issue/get-edit-metadata.js +1 -0
- package/lib/commands/issue/get-events.js +1 -0
- package/lib/commands/issue/get-transitions.js +1 -0
- package/lib/commands/issue/get.js +1 -0
- package/lib/commands/issue/restore.js +1 -0
- package/lib/commands/issue/send-notifications.js +1 -0
- package/lib/commands/issue/transition.js +1 -0
- package/lib/commands/issue-field/create.js +1 -0
- package/lib/commands/issue-field/delete.js +1 -0
- package/lib/commands/issue-field/get-all.js +1 -0
- package/lib/commands/issue-field/move-trash.js +1 -0
- package/lib/commands/issue-field/restore-trash.js +1 -0
- package/lib/commands/issue-field/search-trash.js +1 -0
- package/lib/commands/issue-field/search.js +1 -0
- package/lib/commands/issue-field/update.js +1 -0
- package/lib/commands/issue-field-configuration/assign-issue-type.js +1 -0
- package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +1 -0
- package/lib/commands/issue-field-configuration/create-scheme.js +1 -0
- package/lib/commands/issue-field-configuration/create.js +1 -0
- package/lib/commands/issue-field-configuration/delete-scheme.js +1 -0
- package/lib/commands/issue-field-configuration/delete.js +1 -0
- package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +1 -0
- package/lib/commands/issue-field-configuration/get-all-schemes.js +1 -0
- package/lib/commands/issue-field-configuration/get-all.js +1 -0
- package/lib/commands/issue-field-configuration/get-items.js +1 -0
- package/lib/commands/issue-field-configuration/get-project-schemes.js +1 -0
- package/lib/commands/issue-field-configuration/remove-issue-types.js +1 -0
- package/lib/commands/issue-field-configuration/update-items.js +1 -0
- package/lib/commands/issue-field-configuration/update-scheme.js +1 -0
- package/lib/commands/issue-field-configuration/update.js +1 -0
- package/lib/commands/issue-field-context/add-issue-types.js +1 -0
- package/lib/commands/issue-field-context/assign-to-projects.js +1 -0
- package/lib/commands/issue-field-context/create.js +1 -0
- package/lib/commands/issue-field-context/delete.js +1 -0
- package/lib/commands/issue-field-context/get-all.js +1 -0
- package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +1 -0
- package/lib/commands/issue-field-context/get-default-values.js +1 -0
- package/lib/commands/issue-field-context/get-issue-types.js +1 -0
- package/lib/commands/issue-field-context/get-project-mappings.js +1 -0
- package/lib/commands/issue-field-context/remove-from-projects.js +1 -0
- package/lib/commands/issue-field-context/remove-issue-types.js +1 -0
- package/lib/commands/issue-field-context/set-default-values.js +1 -0
- package/lib/commands/issue-field-context/update.js +1 -0
- package/lib/commands/issue-field-option/create-for-context.js +1 -0
- package/lib/commands/issue-field-option/delete-for-context.js +1 -0
- package/lib/commands/issue-field-option/get-for-context.js +1 -0
- package/lib/commands/issue-field-option/get.js +1 -0
- package/lib/commands/issue-field-option/reorder-for-context.js +1 -0
- package/lib/commands/issue-field-option/update-for-context.js +1 -0
- package/lib/commands/issue-link/create.js +1 -0
- package/lib/commands/issue-link/delete.js +1 -0
- package/lib/commands/issue-link/get.js +1 -0
- package/lib/commands/issue-link-type/create.js +1 -0
- package/lib/commands/issue-link-type/delete.js +1 -0
- package/lib/commands/issue-link-type/get-all.js +1 -0
- package/lib/commands/issue-link-type/get.js +1 -0
- package/lib/commands/issue-link-type/update.js +1 -0
- package/lib/commands/issue-navigator-setting/get-columns.js +1 -0
- package/lib/commands/issue-navigator-setting/set-columns.js +1 -0
- package/lib/commands/issue-priority/create.js +1 -0
- package/lib/commands/issue-priority/delete.js +1 -0
- package/lib/commands/issue-priority/move.js +1 -0
- package/lib/commands/issue-priority/search.js +1 -0
- package/lib/commands/issue-priority/set-default.js +1 -0
- package/lib/commands/issue-priority/update.js +1 -0
- package/lib/commands/issue-property/delete-bulk.js +1 -0
- package/lib/commands/issue-property/delete.js +1 -0
- package/lib/commands/issue-property/get-keys.js +1 -0
- package/lib/commands/issue-property/get.js +1 -0
- package/lib/commands/issue-property/set-bulk.js +1 -0
- package/lib/commands/issue-property/set-by-issue-bulk.js +1 -0
- package/lib/commands/issue-property/set-by-list-bulk.js +1 -0
- package/lib/commands/issue-property/set.js +1 -0
- package/lib/commands/issue-remote-link/create.js +1 -0
- package/lib/commands/issue-remote-link/delete-by-global-id.js +1 -0
- package/lib/commands/issue-remote-link/delete.js +1 -0
- package/lib/commands/issue-remote-link/get-all.js +1 -0
- package/lib/commands/issue-remote-link/get.js +1 -0
- package/lib/commands/issue-remote-link/update.js +1 -0
- package/lib/commands/issue-resolution/create.js +1 -0
- package/lib/commands/issue-resolution/delete.js +1 -0
- package/lib/commands/issue-resolution/get-all.js +1 -0
- package/lib/commands/issue-resolution/get.js +1 -0
- package/lib/commands/issue-resolution/move.js +1 -0
- package/lib/commands/issue-resolution/search.js +1 -0
- package/lib/commands/issue-resolution/set-default.js +1 -0
- package/lib/commands/issue-resolution/update.js +1 -0
- package/lib/commands/issue-search/get-picker-suggestions.js +1 -0
- package/lib/commands/issue-search/search.js +1 -0
- package/lib/commands/issue-search/test-jql.js +1 -0
- package/lib/commands/issue-security-level/get-members.js +1 -0
- package/lib/commands/issue-security-level/get.js +1 -0
- package/lib/commands/issue-security-scheme/get-all.js +1 -0
- package/lib/commands/issue-security-scheme/get-levels.js +1 -0
- package/lib/commands/issue-security-scheme/get.js +1 -0
- package/lib/commands/issue-type/create.js +1 -0
- package/lib/commands/issue-type/delete.js +1 -0
- package/lib/commands/issue-type/get-all-for-projects.js +1 -0
- package/lib/commands/issue-type/get-all.js +1 -0
- package/lib/commands/issue-type/get-alternatives.js +1 -0
- package/lib/commands/issue-type/get.js +1 -0
- package/lib/commands/issue-type/set-avatar.js +1 -0
- package/lib/commands/issue-type/update.js +1 -0
- package/lib/commands/issue-type/upload-avatar.js +1 -0
- package/lib/commands/issue-type-property/delete.js +1 -0
- package/lib/commands/issue-type-property/get-keys.js +1 -0
- package/lib/commands/issue-type-property/get.js +1 -0
- package/lib/commands/issue-type-property/set.js +1 -0
- package/lib/commands/issue-type-scheme/add-issue-types.js +1 -0
- package/lib/commands/issue-type-scheme/assign-to-project.js +1 -0
- package/lib/commands/issue-type-scheme/create.js +1 -0
- package/lib/commands/issue-type-scheme/delete.js +1 -0
- package/lib/commands/issue-type-scheme/get-for-projects.js +1 -0
- package/lib/commands/issue-type-scheme/get-issue-types.js +1 -0
- package/lib/commands/issue-type-scheme/get-mappings.js +1 -0
- package/lib/commands/issue-type-scheme/get-projects.js +1 -0
- package/lib/commands/issue-type-scheme/move-issue-types.js +1 -0
- package/lib/commands/issue-type-scheme/remove-all-projects.js +1 -0
- package/lib/commands/issue-type-scheme/remove-issue-type.js +1 -0
- package/lib/commands/issue-type-scheme/remove-project.js +1 -0
- package/lib/commands/issue-type-scheme/search.js +1 -0
- package/lib/commands/issue-type-scheme/set-projects.js +1 -0
- package/lib/commands/issue-type-scheme/update.js +1 -0
- package/lib/commands/issue-type-screen-scheme/add-mappings.js +1 -0
- package/lib/commands/issue-type-screen-scheme/assign-to-project.js +1 -0
- package/lib/commands/issue-type-screen-scheme/create.js +1 -0
- package/lib/commands/issue-type-screen-scheme/delete.js +1 -0
- package/lib/commands/issue-type-screen-scheme/get-for-projects.js +1 -0
- package/lib/commands/issue-type-screen-scheme/get-items.js +1 -0
- package/lib/commands/issue-type-screen-scheme/get-projects.js +1 -0
- package/lib/commands/issue-type-screen-scheme/remove-mappings.js +1 -0
- package/lib/commands/issue-type-screen-scheme/search.js +1 -0
- package/lib/commands/issue-type-screen-scheme/set-default-screen.js +1 -0
- package/lib/commands/issue-type-screen-scheme/update.js +1 -0
- package/lib/commands/issue-vote/add.js +1 -0
- package/lib/commands/issue-vote/delete.js +1 -0
- package/lib/commands/issue-vote/get-all.js +1 -0
- package/lib/commands/issue-watcher/add.js +1 -0
- package/lib/commands/issue-watcher/delete.js +1 -0
- package/lib/commands/issue-watcher/get-all.js +1 -0
- package/lib/commands/issue-watcher/get-bulk.js +1 -0
- package/lib/commands/jira-expression/analyse.js +1 -0
- package/lib/commands/jira-expression/evaluate.js +1 -0
- package/lib/commands/jira-settings/get-advanced.js +1 -0
- package/lib/commands/jira-settings/get-globals.js +1 -0
- package/lib/commands/jira-settings/get-properties.js +1 -0
- package/lib/commands/jira-settings/set-property.js +1 -0
- package/lib/commands/jql/convert-user-identifiers.js +1 -0
- package/lib/commands/jql/get-auto-complete-suggestions.js +1 -0
- package/lib/commands/jql/get-reference-data.js +1 -0
- package/lib/commands/jql/parse.js +1 -0
- package/lib/commands/jql/sanitize.js +1 -0
- package/lib/commands/label/get-all.js +1 -0
- package/lib/commands/license/get.js +1 -0
- package/lib/commands/myself/change-password.js +1 -0
- package/lib/commands/myself/delete-preference.js +1 -0
- package/lib/commands/myself/get-locale.js +1 -0
- package/lib/commands/myself/get-preference.js +1 -0
- package/lib/commands/myself/get.js +1 -0
- package/lib/commands/myself/set-preference.js +1 -0
- package/lib/commands/myself/update-user.js +1 -0
- package/lib/commands/notification-scheme/add.js +1 -0
- package/lib/commands/notification-scheme/create.js +1 -0
- package/lib/commands/notification-scheme/delete-notification.js +1 -0
- package/lib/commands/notification-scheme/delete.js +1 -0
- package/lib/commands/notification-scheme/get-all.js +1 -0
- package/lib/commands/notification-scheme/get-projects.js +1 -0
- package/lib/commands/notification-scheme/get.js +1 -0
- package/lib/commands/notification-scheme/update.js +1 -0
- package/lib/commands/permission/check-global-permission.js +1 -0
- package/lib/commands/permission/check-issue-permission.js +1 -0
- package/lib/commands/permission/check-project-permission.js +1 -0
- package/lib/commands/permission/get-all.js +1 -0
- package/lib/commands/permission/get-my.js +1 -0
- package/lib/commands/permission/get-permitted.js +1 -0
- package/lib/commands/permission-scheme/create-grant.js +1 -0
- package/lib/commands/permission-scheme/create-scheme.js +1 -0
- package/lib/commands/permission-scheme/delete-grant.js +1 -0
- package/lib/commands/permission-scheme/delete-scheme.js +1 -0
- package/lib/commands/permission-scheme/get-all-grants.js +1 -0
- package/lib/commands/permission-scheme/get-all.js +1 -0
- package/lib/commands/permission-scheme/get-grant.js +1 -0
- package/lib/commands/permission-scheme/get.js +1 -0
- package/lib/commands/project/archive.js +1 -0
- package/lib/commands/project/create.js +1 -0
- package/lib/commands/project/delete.js +1 -0
- package/lib/commands/project/get-all-issue-types.js +1 -0
- package/lib/commands/project/get-all.js +1 -0
- package/lib/commands/project/get-issue-type-hierarchy.js +1 -0
- package/lib/commands/project/get-notification-schema.js +1 -0
- package/lib/commands/project/get.js +1 -0
- package/lib/commands/project/project.js +1 -0
- package/lib/commands/project/restore.js +1 -0
- package/lib/commands/project/search.js +1 -0
- package/lib/commands/project/unarchive.js +1 -0
- package/lib/commands/project/update.js +1 -0
- package/lib/commands/project-avatar/delete.js +1 -0
- package/lib/commands/project-avatar/get-all.js +1 -0
- package/lib/commands/project-avatar/set.js +1 -0
- package/lib/commands/project-avatar/upload.js +1 -0
- package/lib/commands/project-category/create.js +1 -0
- package/lib/commands/project-category/delete.js +1 -0
- package/lib/commands/project-category/get-all.js +1 -0
- package/lib/commands/project-category/get.js +1 -0
- package/lib/commands/project-category/update.js +1 -0
- package/lib/commands/project-component/create.js +1 -0
- package/lib/commands/project-component/delete.js +1 -0
- package/lib/commands/project-component/get-all.js +1 -0
- package/lib/commands/project-component/get-issues-count.js +1 -0
- package/lib/commands/project-component/get.js +1 -0
- package/lib/commands/project-component/search.js +1 -0
- package/lib/commands/project-component/update.js +1 -0
- package/lib/commands/project-email/get-sender.js +1 -0
- package/lib/commands/project-email/set-sender.js +1 -0
- package/lib/commands/project-feature/get.js +1 -0
- package/lib/commands/project-feature/set.js +1 -0
- package/lib/commands/project-key-and-name-validation/get-valid-key.js +1 -0
- package/lib/commands/project-key-and-name-validation/get-valid-name.js +1 -0
- package/lib/commands/project-key-and-name-validation/validate-key.js +1 -0
- package/lib/commands/project-permission-scheme/get-issue-security-levels.js +1 -0
- package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +1 -0
- package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +1 -0
- package/lib/commands/project-permission-scheme/get-permissions.js +1 -0
- package/lib/commands/project-permission-scheme/get.js +1 -0
- package/lib/commands/project-permission-scheme/set.js +1 -0
- package/lib/commands/project-property/delete.js +1 -0
- package/lib/commands/project-property/get-keys.js +1 -0
- package/lib/commands/project-property/get.js +1 -0
- package/lib/commands/project-property/set.js +1 -0
- package/lib/commands/project-role/create.js +1 -0
- package/lib/commands/project-role/delete.js +1 -0
- package/lib/commands/project-role/get-all.js +1 -0
- package/lib/commands/project-role/get-role.js +1 -0
- package/lib/commands/project-role/get-roles-and-details.js +1 -0
- package/lib/commands/project-role/get-roles.js +1 -0
- package/lib/commands/project-role/get.js +1 -0
- package/lib/commands/project-role/project-role.js +1 -0
- package/lib/commands/project-role/update-partial.js +1 -0
- package/lib/commands/project-role/update.js +1 -0
- package/lib/commands/project-role-actor/add-actors.js +1 -0
- package/lib/commands/project-role-actor/add-default-actors.js +1 -0
- package/lib/commands/project-role-actor/delete-actors.js +1 -0
- package/lib/commands/project-role-actor/delete-default-actors.js +1 -0
- package/lib/commands/project-role-actor/get.js +1 -0
- package/lib/commands/project-role-actor/set-actors.js +1 -0
- package/lib/commands/project-type/check-accessible.js +1 -0
- package/lib/commands/project-type/get-all.js +1 -0
- package/lib/commands/project-type/get-licensed.js +1 -0
- package/lib/commands/project-type/get.js +1 -0
- package/lib/commands/project-type/update.js +1 -0
- package/lib/commands/project-version/create.js +1 -0
- package/lib/commands/project-version/delete-and-replace.js +1 -0
- package/lib/commands/project-version/get-all.js +1 -0
- package/lib/commands/project-version/get-related-issue-count.js +1 -0
- package/lib/commands/project-version/get-unresolved-issue-count.js +1 -0
- package/lib/commands/project-version/get.js +1 -0
- package/lib/commands/project-version/merge.js +2 -0
- package/lib/commands/project-version/move.js +1 -0
- package/lib/commands/project-version/search.js +1 -0
- package/lib/commands/project-version/update.js +1 -0
- package/lib/commands/screen/add-field-to-default-screen.js +1 -0
- package/lib/commands/screen/create.js +1 -0
- package/lib/commands/screen/delete.js +1 -0
- package/lib/commands/screen/get-all.js +1 -0
- package/lib/commands/screen/get-available-fields.js +1 -0
- package/lib/commands/screen/get-field-screens.js +1 -0
- package/lib/commands/screen/get-workflows.js +1 -0
- package/lib/commands/screen/update.js +1 -0
- package/lib/commands/screen-scheme/create.js +1 -0
- package/lib/commands/screen-scheme/delete.js +1 -0
- package/lib/commands/screen-scheme/get-all.js +1 -0
- package/lib/commands/screen-scheme/update.js +1 -0
- package/lib/commands/screen-tab/create.js +1 -0
- package/lib/commands/screen-tab/delete.js +1 -0
- package/lib/commands/screen-tab/get-all.js +1 -0
- package/lib/commands/screen-tab/move.js +1 -0
- package/lib/commands/screen-tab/update.js +1 -0
- package/lib/commands/screen-tab-field/add.js +1 -0
- package/lib/commands/screen-tab-field/get-all.js +1 -0
- package/lib/commands/screen-tab-field/move.js +1 -0
- package/lib/commands/screen-tab-field/remove.js +1 -0
- package/lib/commands/server-info/get.js +1 -0
- package/lib/commands/server-info/jmx.js +1 -0
- package/lib/commands/status/create.js +1 -0
- package/lib/commands/status/delete.js +1 -0
- package/lib/commands/status/get-usages.js +1 -0
- package/lib/commands/status/get.js +1 -0
- package/lib/commands/status/search.js +1 -0
- package/lib/commands/status/status-command.js +1 -0
- package/lib/commands/status/update.js +1 -0
- package/lib/commands/task/cancel.js +1 -0
- package/lib/commands/task/get.js +1 -0
- package/lib/commands/time-tracking/get-all.js +1 -0
- package/lib/commands/time-tracking/get-setting.js +1 -0
- package/lib/commands/time-tracking/get.js +1 -0
- package/lib/commands/time-tracking/select.js +1 -0
- package/lib/commands/time-tracking/set.js +1 -0
- package/lib/commands/user/add-user-to-application.js +1 -0
- package/lib/commands/user/change-password.js +1 -0
- package/lib/commands/user/create.js +1 -0
- package/lib/commands/user/delete.js +1 -0
- package/lib/commands/user/get-all.js +1 -0
- package/lib/commands/user/get-default-columns.js +1 -0
- package/lib/commands/user/get-email.js +1 -0
- package/lib/commands/user/get-user-groups.js +1 -0
- package/lib/commands/user/get.js +1 -0
- package/lib/commands/user/remove-user-from-application.js +1 -0
- package/lib/commands/user/reset-default-columns.js +1 -0
- package/lib/commands/user/set-default-columns.js +1 -0
- package/lib/commands/user/update.js +1 -0
- package/lib/commands/user/user-command.js +1 -0
- package/lib/commands/user-property/delete.js +1 -0
- package/lib/commands/user-property/get-all-keys.js +1 -0
- package/lib/commands/user-property/get-user-property.js +1 -0
- package/lib/commands/user-property/set.js +1 -0
- package/lib/commands/user-search/accounts-with-query.js +1 -0
- package/lib/commands/user-search/assignable-users-bulk.js +1 -0
- package/lib/commands/user-search/assignable-users.js +1 -0
- package/lib/commands/user-search/find.js +1 -0
- package/lib/commands/user-search/with-permission.js +1 -0
- package/lib/commands/user-search/with-query.js +1 -0
- package/lib/commands/workflow/create.js +1 -0
- package/lib/commands/workflow/delete.js +1 -0
- package/lib/commands/workflow/get-projects.js +1 -0
- package/lib/commands/workflow/get-schemes.js +1 -0
- package/lib/commands/workflow/get-statuses-properties.js +1 -0
- package/lib/commands/workflow/get-statuses.js +1 -0
- package/lib/commands/workflow/get-transitions-rules.js +1 -0
- package/lib/commands/workflow/get-transitions.js +1 -0
- package/lib/commands/workflow/search.js +1 -0
- package/lib/commands/workflow-scheme/create.js +5 -0
- package/lib/commands/workflow-scheme/delete-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +1 -0
- package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme/delete.js +1 -0
- package/lib/commands/workflow-scheme/get-all.js +1 -0
- package/lib/commands/workflow-scheme/get-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +1 -0
- package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme/get.js +1 -0
- package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +1 -0
- package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme/update-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme/update.js +5 -0
- package/lib/commands/workflow-scheme-draft/create.js +1 -0
- package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +1 -0
- package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme-draft/delete.js +1 -0
- package/lib/commands/workflow-scheme-draft/get-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +1 -0
- package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme-draft/get.js +1 -0
- package/lib/commands/workflow-scheme-draft/publish.js +1 -0
- package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +1 -0
- package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme-draft/update-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme-draft/update.js +5 -0
- package/lib/commands/workflow-scheme-project-association/assign.js +1 -0
- package/lib/commands/workflow-scheme-project-association/get-all.js +1 -0
- package/lib/commands/workflow-status/get-all.js +1 -0
- package/lib/commands/workflow-status/get.js +1 -0
- package/lib/commands/workflow-status-category/get-all.js +1 -0
- package/lib/commands/workflow-status-category/get.js +1 -0
- package/lib/commands/workflow-transition-property/create.js +1 -0
- package/lib/commands/workflow-transition-property/delete.js +1 -0
- package/lib/commands/workflow-transition-property/get.js +1 -0
- package/lib/commands/workflow-transition-property/update.js +1 -0
- package/lib/commands/worklog/add.js +1 -0
- package/lib/commands/worklog/delete.js +1 -0
- package/lib/commands/worklog/get-deleted.js +1 -0
- package/lib/commands/worklog/get-for-issue.js +1 -0
- package/lib/commands/worklog/get-updated.js +1 -0
- package/lib/commands/worklog/get-with-ids.js +1 -0
- package/lib/commands/worklog/get.js +1 -0
- package/lib/commands/worklog/update.js +1 -0
- package/lib/commands/worklog-property/delete.js +1 -0
- package/lib/commands/worklog-property/get-keys.js +1 -0
- package/lib/commands/worklog-property/get.js +1 -0
- package/lib/commands/worklog-property/set-property.js +1 -0
- package/lib/index.js +1 -0
- package/package.json +358 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getGroupIdOrName=void 0;const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site"));function getGroupIdOrName(r){var e=r.split("-");if(5===e.length){const o=[8,4,4,4,12];if(e.map(r=>r.length).every((r,e)=>r===o[e]))return{groupId:r}}return{groupname:r}}exports.getGroupIdOrName=getGroupIdOrName;class RemoveGroups extends base_command_with_cloud_or_server_site_1.default{async runWithCloudSite(r,e){var{flags:o,args:a}=await this.parse(RemoveGroups);await e.groupManager.removeGroup(Object.assign(Object.assign({},getGroupIdOrName(a.group||o.group)),{swapGroup:o.swapGroup,swapGroupId:o.swapGroupId}))}async runWithServerSite(r,e){var{flags:o,args:a}=await this.parse(RemoveGroups);void 0===o.swapGroupId?await e.groupManager.removeGroup({groupname:a.group||o.group,swapGroup:o.swapGroup}):this.error("You can not specify swapGroupId flag in Server.")}}(exports.default=RemoveGroups).description="Removes a group.",RemoveGroups.flags=Object.assign({group:core_1.Flags.string({char:"g",description:"Group Id or name."}),swapGroup:core_1.Flags.string({description:"Group Name that you want to transfer deleted group's worklogs and comments to."}),swapGroupId:core_1.Flags.string({description:"Group Id that you want to transfer deleted group's worklogs and comments to. (Recommended)"})},atlascli_common_1.CommandWithSite.flags),RemoveGroups.args=[{name:"group",description:"Group Id or name."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class FindGroups extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,r){var{flags:s,args:t}=await this.parse(FindGroups),i=await(0,project_util_1.getProject)(r,s.project),i=(s.projectId=i.projectId,delete s.project,t.query||s.query),t=(i||this.error("Please provide a query"),s.query=i,await r.groupAndUserPickerManager.findUsersAndGroups(this.removeFlagsFromBase(s))),i=this.modifyResponse(t.groups);this.display(s,i)}async runWithServerSite(e,r){var{flags:s,args:t}=await this.parse(FindGroups),i=await(0,project_util_1.getProject)(r,s.project),i=(s.projectId=i.projectId,delete s.project,t.query||s.query),t=(i||this.error("Please provide a query"),s.query=i,await r.groupAndUserPickerManager.findUsersAndGroups(this.removeFlagsFromBase(s))),i=this.modifyResponse(t.groups);this.display(s,i)}modifyResponse(e){return e.groups.map(e=>(e.labels=JSON.stringify(e.labels),e))}}(exports.default=FindGroups).description="Returns a list of users matching a string.",FindGroups.flags=Object.assign({query:core_1.Flags.string({description:"The search string."}),maxResults:core_1.Flags.integer({description:"The maximum number of items to return in each list."}),fieldId:core_1.Flags.string({description:"The custom field ID of the field this request is for."}),project:core_1.Flags.string({char:"p",description:"Project Ids or keys",multiple:!0}),issueTypeId:core_1.Flags.string({description:"The ID of an issue type that returned users and groups must have permission to view. ",multiple:!0}),caseSensitive:core_1.Flags.boolean({description:"Whether the search for groups should be case insensitive.",default:!1}),excludeConnectAddons:core_1.Flags.boolean({description:"Whether Connect app users and groups should be excluded from the search results.",default:!1})},atlascli_common_1.BaseCommandWithCloudOrServerSite.flags),FindGroups.args=[{name:"query",description:"Find groups with query."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class FindUsers extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,r){var{flags:s,args:a}=await this.parse(FindUsers),a=(void 0!==a.name&&(s.query=a.name),await(0,project_util_1.getProject)(r,s.project)),a=(s.projectId=a.projectId,delete s.project,await r.groupAndUserPickerManager.findUsersAndGroups(this.removeFlagsFromBase(s))),r=this.modifyResponse(a.users);this.display(s,r)}async runWithServerSite(e,r){var{flags:s,args:a}=await this.parse(FindUsers),a=(void 0!==a.name&&(s.query=a.name),await(0,project_util_1.getProject)(r,s.project)),a=(s.projectId=a.projectId,delete s.project,await r.groupAndUserPickerManager.findUsersAndGroups(this.removeFlagsFromBase(s))),r=this.modifyResponse(a.users);this.display(s,r)}modifyResponse(r){return r.users.map(e=>(e.totalUser=r.total,e.header=r.header,e))}}(exports.default=FindUsers).description="Returns a list of users matching a string.",FindUsers.flags=Object.assign({query:core_1.Flags.string({description:"The search string.",required:!0}),maxResults:core_1.Flags.integer({description:"The maximum number of items to return in each list."}),showAvatar:core_1.Flags.boolean({description:"Whether the user avatar should be returned. ",default:!1}),project:core_1.Flags.string({char:"p",description:"Project Id or key",multiple:!0}),issueTypeId:core_1.Flags.string({description:"The ID of an issue type that returned users and groups must have permission to view. ",multiple:!0}),avatarSize:core_1.Flags.string({description:"The size of the avatar to return.",options:["xsmall","xsmall@2x","xsmall@3x","small","small@2x","small@3x","medium","medium@2x","medium@3x","large","large@2x","large@3x","xlarge","xlarge@2x","xlarge@3x","xxlarge","xxlarge@2x","xxlarge@3x","xxxlarge","xxxlarge@2x","xxxlarge@3x"],default:"xsmall"}),caseSensitive:core_1.Flags.boolean({description:"Whether the search for groups should be case insensitive.",default:!1}),excludeConnectAddons:core_1.Flags.boolean({description:"Whether Connect app users and groups should be excluded from the search results.",default:!1})},atlascli_common_1.BaseCommandWithCloudOrServerSite.flags),FindUsers.args=[{name:"query",description:"find user query"}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),edit_1=require("./edit"),base_command_with_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-server-site"));class ArchiveIssue extends base_command_with_server_site_1.default{async runWithServerSite(e,s){var{flags:i,args:r}=await this.parse(ArchiveIssue);await s.issueManager.archiveIssue(i.issue||r.issue,i.notifyUsers)}}(exports.default=ArchiveIssue).description="Archives an issue.",ArchiveIssue.flags=Object.assign({issue:core_1.Flags.string({description:"Issue ID or key."}),notifyUsers:edit_1.notifyUsersFlag},atlascli_common_1.CommandWithSite.flags),ArchiveIssue.args=[{name:"issue",description:"Issue ID or key."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class AssignIssue extends base_command_with_cloud_or_server_site_1.default{async runWithCloudSite(s,e){var i=(await this.parse(AssignIssue))["flags"],a=await(0,user_util_1.getUser)(e,this.removeFlagsFromBase(i).user);i.accountId=a.accountId,delete i.user,await e.issueManager.assignIssue(i.issue,void 0===i.accountId?null:i.accountId)}async runWithServerSite(s,e){var i=(await this.parse(AssignIssue))["flags"],a=await(0,user_util_1.getUser)(e,this.removeFlagsFromBase(i).user);i.username=a.username,delete i.user,await e.issueManager.assignIssue(i.issue,void 0===i.username?null:i.username)}}(exports.default=AssignIssue).description='Assigns an issue to a user. You can use this command to assign issues when the user submitting the request has the assign permission but not the edit issue permission. If the name is "-1" automatic assignee is used. A null name will remove the assignee.',AssignIssue.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),user:core_1.Flags.string({char:"u",description:"The account ID or username or email of the user"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSimpleRequestFlags=exports.isSimpleRequest=exports.richTextSampleData=void 0;const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils"),core_1=require("@oclif/core"),get_create_metadata_1=tslib_1.__importStar(require("./get-create-metadata")),skippedFields=(exports.richTextSampleData={type:"doc",version:1,content:[{type:"paragraph",content:[{text:"Sample paragraph.",type:"text"}]}]},["com.pyxis.greenhopper.jira:gh-sprint","com.pyxis.greenhopper.jira:jsw-issue-color"]),richTextFields=["description","environment","com.atlassian.jira.plugin.system.customfieldtypes:textarea"];function isSimpleRequest(e,s){return!e.issueBody&&!s.issueBody}function getSimpleRequestFlags(){return{assignee:core_1.Flags.string({description:"Assignee ID."}),reporter:core_1.Flags.string({description:"Reporter ID."}),security:core_1.Flags.string({description:"Security level ID"}),priority:core_1.Flags.string({description:"Issue priority ID."}),components:core_1.Flags.string({description:"Component IDs. This flag allows comma seperated values.",parse:async e=>e.split(",")}),versions:core_1.Flags.string({description:"Version IDs. This flag allows comma-seperated values.",parse:async e=>e.split(",")}),fixVersions:core_1.Flags.string({description:"Fix version IDs. This flag allows comma-seperated values.",parse:async e=>e.split(",")}),description:core_1.Flags.string({description:"Description of the issue."}),summary:core_1.Flags.string({description:"Summary of the issue."}),environment:core_1.Flags.string({description:"Issue environment."}),labels:core_1.Flags.string({description:"Labels of the issue. This flag allows comma seperated values.",parse:async e=>e.split(",")}),duedate:core_1.Flags.string({description:"Due date of the issue."}),parent:core_1.Flags.string({description:"Parent issue key or ID."}),customFields:core_1.Flags.string({description:'Issue customfields.\nExample usage: --customFields:customfield_10000="My Value",customfield_10001="Myv Value2"',parse:async e=>(0,mapper_utils_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"customFields")[0]})}}exports.isSimpleRequest=isSimpleRequest,exports.getSimpleRequestFlags=getSimpleRequestFlags;class CreateIssue extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:s,args:t}=await this.parse(CreateIssue),a=this.getJira(e,s);s.show?(this.modifyFlags(s),await this.showSampleCreateRequest(s,a,e)):isSimpleRequest(s,t)?await this.runCreateIssueSimple(s,a,e):await this.runCreateIssue(s,t,a,e)}async runCreateIssueSimple(e,s,t){this.modifyFlags(e);var a=this.removeFlagsFromBase(e),i=a["updateHistory"],a=tslib_1.__rest(a,["updateHistory"]),s=await s.issueManager.createIssueSimple(a,i);this.display(e,s)}async runCreateIssue(e,s,t,a){let i=e.issueBody||s.issueBody;if(!(i=void 0===i?await(0,atlascli_common_1.readStdin)():i)||0===i.length)throw new Error("You should provide a valid JSON for the issue! You can use `jira issue:create --show --pKey=project_key --issueType=Type_Name` command to generate a valid JSON body.");s=await t.issueManager.createIssue(JSON.parse(i),e.updateHistory);this.display(e,[s])}async showSampleCreateRequest(e,s,t){e.output="json";var a=this.getEmptyCreationRequest();if(t.cloud){var i,r=(await s.issueManager.getCreateIssueMetadata(e.pId,e.pKey,e.issueTypeId,e.issueTypeName)).projects[0],o=r.issuetypes[0];for(const c in o.fields)Object.prototype.hasOwnProperty.call(o.fields,c)&&(i=o.fields[c],this.processField(a,i,o,r,t));var l=await this.findAssignableUserForJsonTemplate(s,r.key);l&&null!=(p=a.fields)&&p.assignee&&(a.fields.assignee.id=l)}else{var n,u=await get_create_metadata_1.default.getIssueTypeInfo(e.issueTypeName||e.issueTypeId,s),p=await s.issueManager.getCreateIssueMetadataForIssueTypes(e.pId||e.pKey,u.id.toString(),{});const d={};p.values.forEach(e=>d[e.fieldId]=e);for(const m in d)Object.prototype.hasOwnProperty.call(d,m)&&(n=d[m],this.processField(a,n,{name:u.name},{key:e.pKey[0]},t))}this.display(e,a)}getEmptyCreationRequest(){var e={fields:{project:{id:0},issuetype:{id:0}}};return e}processField(e,s,t,a,i){t=this.getSampleValueForField(s,t,a,i);t&&((a=s.key||s.fieldId)?e.fields[a]=t:console.error("Unknown fieldId for ",s))}getSampleValueForField(e,s,t,a){return 0<e.operations.length&&-1===e.operations.indexOf("set")?null:this.getSampleValueForType(e.schema.type,e,s,t,a)}getSampleValueForType(e,s,t,a,i){if(s.hasDefaultValue)return CreateIssue.getValue(s.defaultValue);if(s.schema.custom&&-1<skippedFields.indexOf(s.schema.custom))return null;var r=s.schema.system||s.schema.custom||"";switch(e){case"string":return"labels"===r?"label_value":-1<richTextFields.indexOf(r)&&i.cloud?exports.richTextSampleData:"Put a simple string here";case"date":case"votes":return"2029-01-20";case"datetime":return"2029-01-20T18:45:42.967+0000";case"issuetype":return{name:t.name};case"project":return{key:a.key};case"option":case"option-with-child":return this.getFirstAllowedValue(s);case"user":return i.cloud?{id:"5b10a2844c20165700ede21g"}:{name:"admin"};case"component":case"version":case"priority":return this.getFirstAllowedValue(s);case"any":return s.required?"":null;case"attachment":case"issuelinks":return null;case"timetracking":return{originalEstimate:"1d 2h",remainingEstimate:"3h 25m"};case"array":var o=this.getSampleValueForType(s.schema.items,s,t,a,i);return o?[o]:null;default:return null}}static getValue(t){if(null===t)return null;if(Array.isArray(t))return t.map(e=>this.getValue(e));if("object"!=typeof t)return t;{if("doc"===t.type)return t;let e=null,s=null;if(Array.isArray(t.children)&&0<t.length?s={child:this.getValue(t.children[0])}:void 0!==t.child&&(s={child:this.getValue(t.child)}),void 0!==t.value)e={value:t.value};else if(void 0!==t.name)e={name:t.name};else if(void 0!==t.id)e={id:t.id};else{if(void 0!==t.votes)return t.votes;if(void 0!==t.timeSpent)return`${t.timeSpentSeconds} (${t.timeSpent})`;if(void 0!==t.watchCount)return t.watchCount;if(void 0!==t.displayName)return t.displayName+"/"+(t.name||t.accountId);if(void 0!==t.progress&&void 0!==t.total)return`${t.progress}/${t.total}/`+t.percent}return Object.assign(Object.assign({},e),s)}}getFirstAllowedValue(e){return e.allowedValues&&0<e.allowedValues.length?(e=e.allowedValues[0],CreateIssue.getValue(e)):null}modifyFlags(e){Array.isArray(e.issueType)||(e.issueType=[e.issueType]),Number.isNaN(Number.parseInt(e.issueType[0],10))?e.issueTypeName=e.issueType[0]:e.issueTypeId=e.issueType[0],Number.isNaN(Number.parseInt(e.project[0],10))?e.pKey=e.project[0]:e.pId=e.project[0],delete e.project,delete e.issueType}async findAssignableUserForJsonTemplate(e,s){e=await e.userSearchManager.findAssignableUsers(void 0,s);if(0<e.length)return e[0].accountId}}(exports.default=CreateIssue).description="Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask. You can also provide issue body using STDIN.",CreateIssue.flags=Object.assign(Object.assign(Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for issue creation.",dependsOn:["issueType","project"]}),issueBody:core_1.Flags.string({description:"Issue creation request in JSON format."}),updateHistory:core_1.Flags.boolean({allowNo:!0,description:"Update issue history",default:!1})},get_create_metadata_1.metadataFlags),getSimpleRequestFlags()),atlascli_common_1.CommandWithSite.flags),CreateIssue.args=[{name:"issueBody",description:"Issue creation request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class DeleteIssue extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:s,args:t}=await this.parse(DeleteIssue);await this.getJira(e,s).issueManager.deleteIssue(s.issue||t.issue)}}(exports.default=DeleteIssue).description="If the issue has subtasks you must set the parameter deleteSubtasks=true to delete the issue. You cannot delete an issue without its subtasks also being deleted.",DeleteIssue.flags=Object.assign({issue:core_1.Flags.string({description:"Issue ID or key."}),deleteSubtasks:core_1.Flags.boolean({description:"Whether to delete subtasks of the issue or not."})},atlascli_common_1.CommandWithSite.flags),DeleteIssue.args=[{name:"issue",description:"Issue ID or key."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.notifyUsersFlag=void 0;const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),create_1=require("./create");exports.notifyUsersFlag=core_1.Flags.boolean({allowNo:!0,description:"Whether a notification email about the issue update is sent to all watchers.",default:!0});class EditIssue extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:s,args:i}=await this.parse(EditIssue),t=this.getJira(e,s);(0,create_1.isSimpleRequest)(s,i)?await this.runEditIssueSimple(s,i,t,e):await this.runEditIssue(s,i,t,e)}async runEditIssueSimple(e,s,i,t){e.issueIdOrKey=e.issue;var e=this.removeFlagsFromBase(e),{updateHistory:a,notifyUsers:r,overrideEditableFlag:o,overrideScreenSecurity:l,issueIdOrKey:d}=e,e=tslib_1.__rest(e,["updateHistory","notifyUsers","overrideEditableFlag","overrideScreenSecurity","issueIdOrKey"]);t.cloud?await i.issueManager.editIssueSimple(d,e,r,a,l,o):await i.issueManager.editIssueSimple(d,e,r)}async runEditIssue(e,s,i,t){let a=e.issueBody||s.issueBody;if(!(a=void 0===a?await(0,atlascli_common_1.readStdin)():a)||0===a.length)throw new Error("You should provide a valid JSON for the issue body!");t.cloud?await i.issueManager.editIssue(e.issue,JSON.parse(a),e.notifyUsers,e.updateHistory,e.overrideScreenSecurity,e.overrideEditableFlag):await i.issueManager.editIssue(e.issue,JSON.parse(a),e.notifyUsers)}}(exports.default=EditIssue).description="Edits an issue. You can also provide issue body using STDIN.",EditIssue.flags=Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),issueBody:core_1.Flags.string({description:"Issue edit request in JSON format."}),notifyUsers:exports.notifyUsersFlag,updateHistory:core_1.Flags.boolean({allowNo:!0,description:"Whether to add issue to user's issue history. Only available for Jira Cloud. ",default:!0}),overrideScreenSecurity:core_1.Flags.boolean({allowNo:!0,description:"Whether hidden fields should be returned. Available to connect app users with admin permissions. Only available for Jira Cloud. ",default:!1}),overrideEditableFlag:core_1.Flags.boolean({allowNo:!0,description:"Whether non-editable fields should be returned. Available to connect app users with admin permissions. Only available for Jira Cloud. ",default:!1})},(0,create_1.getSimpleRequestFlags)()),atlascli_common_1.CommandWithSite.flags),EditIssue.args=[{name:"issueBody",description:"Issue edit request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetChangeLogs extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(GetChangeLogs))["flags"],t=this.removeFlagsFromBase(a),{issue:i,all:l}=t,t=tslib_1.__rest(t,["issue","all"]),o=await s.issueManager.getChangelogs(i,t);if(l&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,t,s.issueManager.getChangelogs.bind(s.issueManager,i))),this.isTabularOutput(a)){l=o.values;const r=[];l.forEach(s=>{s.items.forEach(e=>{r.push({id:s.id,create:s.created,authorId:s.author.accountId||"",authorName:s.author.displayName||"",field:e.field||"",fieldType:e.fieldtype||"",fieldId:e.fieldId||"",from:e.from||"",fromString:e.fromString||"",to:e.to||"",toString:e.toString||""})})}),this.display(a,r)}else this.display(a,o)}}(exports.default=GetChangeLogs).description="Returns a list of all changelogs for an issue sorted by date, starting from the oldest.",GetChangeLogs.flags=Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.metadataFlags=void 0;const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");exports.metadataFlags={project:core_1.Flags.string({multiple:!0,description:"The project id or key"}),issueType:core_1.Flags.string({multiple:!0,description:"The issue type id or name."})};class GetCreateMetaData extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,t){var a=(await this.parse(GetCreateMetaData))["flags"],s=await(0,project_util_1.getProject)(t,a.project),t=(s.projectId&&s.projectId.map(e=>Number.parseInt(e,10)),await t.issueManager.getCreateIssueMetadata(s.projectId,[],a.issueTypeId,a.issueTypeName));void 0!==a.output&&"table"!==a.output||a.json?this.display(a,t.projects):(s=this.reduce(t.projects),this.display(a,s))}async runWithServerSite(e,t){var a=(await this.parse(GetCreateMetaData))["flags"],s=a.project;s||this.error("You have to specify the project."),a.issueType||this.error("You have to specify id or name for an issue type.");let r;r=Number.isNaN(Number.parseInt(a.issueType[0],10))?(await GetCreateMetaData.getIssueTypeInfo(a.issueType[0],t)).id.toString():a.issueType[0],console.log(r);t=await t.issueManager.getCreateIssueMetadataForIssueTypes(s[0],r,{});this.display(a,t.values.map(GetCreateMetaData.convertFieldMeta))}reduce(e){var t,a=[];for(const i of e){var s,r={projectId:i.id,projectkey:i.key};for(const o of i.issuetypes)for(const p in o.fields)Object.prototype.hasOwnProperty.call(o.fields,p)&&(s=o.fields[p],a.push(Object.assign(Object.assign(Object.assign({},r),{typeId:o.id,typeName:o.name,typeSubtask:o.subtask,typeEntityId:o.entityId||"",typeScopeType:(null==(t=o.scope)?void 0:t.type)||"",typeScopeProject:(null==(t=null==(t=o.scope)?void 0:t.project)?void 0:t.key)||"",typeAvatarId:o.avatarId||""}),GetCreateMetaData.convertFieldMeta(s))))}return a}static convertFieldMeta(e){return{fieldName:e.name,fieldKey:e.key||e.fieldId,fieldRequired:e.required,fieldHasDefaultValue:e.hasDefaultValue,fieldType:e.schema.type,fieldItemType:e.schema.items||"",fieldOperations:e.operations.join(",")}}static async getIssueTypeInfo(t,e){e=(await e.issueTypeManager.getAllIssueTypes()).filter(e=>e.name===t||e.id===t);return 0===e.length&&console.error("There is no such issue type with that id or name."),e[0]}}(exports.default=GetCreateMetaData).description="Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask.",GetCreateMetaData.flags=Object.assign(Object.assign({},exports.metadataFlags),atlascli_common_1.BaseCommandWithCloudOrServerSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetEditMetaData extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(GetEditMetaData),e=this.getJira(e,t),a=t.issue||a.issue,e=await e.issueManager.getEditIssueMetadata(a,t.overrideScreenSecurity,t.overrideEditableFlag);this.isTabularOutput(t)?(a=this.reduce(e.fields),this.display(t,a)):this.display(t,e)}reduce(e){var t,a=[];for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t=e[i],a.push({fieldName:t.name,fieldKey:t.key||t.fieldId,fieldRequired:t.required,fieldHasDefaultValue:t.hasDefaultValue,fieldType:t.schema.type,fieldItemType:t.schema.items||"",fieldOperations:t.operations.join(",")}));return a}}(exports.default=GetEditMetaData).description="Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask.",GetEditMetaData.flags=Object.assign({issue:core_1.Flags.string({description:"Issue ID or key."}),overrideScreenSecurity:core_1.Flags.boolean({allowNo:!0,description:"Whether hidden fields should be returned. Available to connect app users with admin permissions.",default:!1}),overrideEditableFlag:core_1.Flags.boolean({allowNo:!0,description:"Whether non-editable fields should be returned. Available to connect app users with admin permissions.",default:!1})},atlascli_common_1.CommandWithSite.flags),GetEditMetaData.args=[{name:"issue",description:"Issue ID or key."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueEvents extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var t=(await this.parse(GetIssueEvents))["flags"],e=await e.issueManager.getEvents();this.display(t,e)}}(exports.default=GetIssueEvents).description="Returns all issue events.",GetIssueEvents.flags=Object.assign({},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetTransitions extends atlascli_common_1.CommandWithSite{async runWithSite(e){var i=(await this.parse(GetTransitions))["flags"],e=await this.getJira(e,i).issueManager.getTransitions(i.issue,i.transitionId,i.skipRemoteOnlyCondition,i.includeUnavailableTransitions,i.sortByOpsBarAndStatus);this.isTabularOutput(i)?this.display(i,e.transitions.map(i=>{var e;return{id:i.id,name:i.name,hasScreen:i.hasScreen,available:i.isAvailable,conditional:i.isConditional,initial:i.isInitial,global:i.isGlobal,looped:i.looped,toStatusId:null==(e=i.to)?void 0:e.id,toStatusName:null==(e=i.to)?void 0:e.name,toStatusCategory:(null==(e=null==(e=i.to)?void 0:e.statusCategory)?void 0:e.name)||"",fields:Object.keys(i.fields||[]).map(e=>i.fields[e].name).join(",")||""}})):this.display(i,e)}}(exports.default=GetTransitions).description="Returns either all transitions or a transition that can be performed by the user on an issue, based on the issue's status.",GetTransitions.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),transitionId:core_1.Flags.string({required:!1,description:"Transition ID."}),skipRemoteOnlyCondition:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Whether transitions with the condition Hide From User Condition are included in the response."}),includeUnavailableTransitions:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Whether details of transitions that fail a condition are included in the response."}),sortByOpsBarAndStatus:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Whether the transitions are sorted by ops-bar sequence value first then category order (Todo, In Progress, Done) or only by ops-bar sequence value."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),create_1=tslib_1.__importDefault(require("./create"));class GetIssue extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=[];const{flags:t,argv:i}=await this.parse(GetIssue),a=this.getJira(e,t);s.push(...t.issue||[]),s.push(...Array.isArray(i)?i:"string"==typeof i?[i]:[]),0===s.length&&this.error("No issue id or key specified.");e=s.map(e=>a.issueManager.getIssue(e));await Promise.all(e).then(e=>{if(0!==e.length)if("json"===t.output)this.display(t,e);else{const a=[];e.forEach(e=>{var s=Object.keys(e.fields),t={id:e.id,self:e.self,key:e.key};for(const i of s)t[e.names[i]]=create_1.default.getValue(e.fields[i]);a.push(t)}),this.display(t,a)}})}}(exports.default=GetIssue).strict=!1,GetIssue.description="Creates an issue or, where the option to create subtasks is enabled in Jira, a subtask.",GetIssue.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"Issue ID or key.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetIssue.args=[{name:"issue",description:"Issue ID or key."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),base_command_with_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-server-site")),archive_1=tslib_1.__importDefault(require("./archive"));class RestoreIssue extends base_command_with_server_site_1.default{async runWithServerSite(e,s){var{flags:r,args:t}=await this.parse(RestoreIssue);await s.issueManager.restoreIssue(r.issue||t.issue,r.notifyUsers)}}(exports.default=RestoreIssue).description="Restores an issue.",RestoreIssue.flags=archive_1.default.flags,RestoreIssue.args=archive_1.default.args;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.notifyUsersFlag=void 0;const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");exports.notifyUsersFlag=core_1.Flags.boolean({allowNo:!0,description:"Whether a notification email about the issue update is sent to all watchers.",default:!0});class SendNotifications extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(SendNotifications))["flags"],o=(i.htmlBody=i.htmlBody||i.textBody,void 0===i.htmlBody&&(i.htmlBody=await(0,atlascli_common_1.readStdin)()),{subject:i.subject,htmlBody:i.htmlBody,textBody:i.textBody,to:this.getRecipients(i.notifyAssignee,i.notifyReporter,i.notifyVoters,i.notifyWatchers,i.recipientUser,i.recipientUserGroup),restrict:this.getRestriction(i.onlyInUserGroup,i.onlyWithPermission)});await t.issueManager.sendNotifications(i.issue,o)}getRecipients(e,t,i,o,s,r){return{users:s?s.map(e=>({accountId:e})):void 0,groups:r?r.map(e=>({name:e})):void 0,assignee:e,reporter:t,voters:i,watchers:o}}getRestriction(e,t){var i=void 0!==e,o=void 0!==t;if(i||o)return{groups:i?e.map(e=>({name:e})):void 0,permissions:o?t.map(e=>({key:e})):void 0}}}(exports.default=SendNotifications).description="Edits an issue. You can also provide message body using STDIN.",SendNotifications.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),subject:core_1.Flags.string({description:"Subject of email notification. Defaults to issue key and summary."}),htmlBody:core_1.Flags.string({description:"HTML body of email notification."}),textBody:core_1.Flags.string({description:"Text body of email notification."}),recipientUser:core_1.Flags.string({multiple:!0,description:"AccountID of user who will be notified."}),recipientUserGroup:core_1.Flags.string({multiple:!0,description:"User groups to be notified."}),onlyWithPermission:core_1.Flags.string({multiple:!0,description:"Key of permission. Restricts the notifications to users with the specified permissions."}),onlyInUserGroup:core_1.Flags.string({multiple:!0,description:"Name of user group. Restricts the notifications to users in the user group."}),notifyReporter:core_1.Flags.boolean({description:"Whether the notification should be sent to the issue's reporter.",default:!1}),notifyAssignee:core_1.Flags.boolean({description:"Whether the notification should be sent to the issue's assignee.",default:!1}),notifyWatchers:core_1.Flags.boolean({description:"Whether the notification should be sent to the issue's watchers.",default:!1}),notifyVoters:core_1.Flags.boolean({description:"Whether the notification should be sent to the issue's voters.",default:!1})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),create_1=require("./create");class GetTransitions extends atlascli_common_1.CommandWithSite{async runWithSite(s){var{flags:t,args:r}=await this.parse(GetTransitions),s=this.getJira(s,t);if(t.transitionId){var e=this.removeFlagsFromBase(t),{issue:i,transitionId:o,looped:a}=e,e=tslib_1.__rest(e,["issue","transitionId","looped"]),o=this.prepareBodyForTransition(o,e);o.transition.looped=a,await s.issueManager.transitionIssue(i,o)}else{let e=t.transitionBody||r.transitionBody;if(!(e=void 0===e?await(0,atlascli_common_1.readStdin)():e)||0===e.length)throw new Error("You should provide a valid JSON for transition!");await s.issueManager.transitionIssue(t.issue,JSON.parse(e))}}prepareBodyForTransition(e,s){const t={transition:{id:e}};return Object.keys(s).forEach(e=>{"requestProps"===e?(Object.keys(s.requestProps).forEach(e=>s.requestProps[e]=this.detectPropertyIsIntegerOrNot(s.requestProps[e])?{id:Number.parseInt(s.requestProps[e],10)}:{name:s.requestProps[e]}),t.transition=Object.assign(Object.assign({},t.transition),s.requestProps)):t.transition[e]=s[e]}),console.log(t),t}detectPropertyIsIntegerOrNot(e){return Number.isFinite(Number.parseInt(e,10))}}exports.default=GetTransitions,(_a=GetTransitions).description="Returns either all transitions or a transition that can be performed by the user on an issue, based on the issue's status.",GetTransitions.flags=Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),transitionBody:core_1.Flags.string({exclusive:["transitionId"],description:"Issue transition request in JSON format."}),transitionId:core_1.Flags.integer({exclusive:["transitionBody"],description:"Execute a simple issue transition with just transition ID."}),looped:core_1.Flags.boolean({description:""})},(0,create_1.getSimpleRequestFlags)()),{requestProps:core_1.Flags.string({description:"Additional properties for the request. \nExample Usage: requestProps=resolution=resolutionName,myField=myValue",parse:async e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e)[0]})}),atlascli_common_1.CommandWithSite.flags),GetTransitions.args=[{name:"transitionBody",description:"Issue transition request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),get_all_1=tslib_1.__importDefault(require("./get-all"));class Create extends atlascli_common_1.CommandWithSite{async runWithSite(e){var i=(await this.parse(Create))["flags"],t=await this.getJira(e,i).fieldManager.createField(i.name,i.type,i.searcher,i.description);this.displayAlternativeForTable(i,t,get_all_1.default.convertFieldDetails(t,e.cloud))}}(exports.default=Create).description="Creates a custom field.",Create.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{name:core_1.Flags.string({required:!0,description:"The name of the custom field, which is displayed in Jira. This is not the unique identifier."}),type:core_1.Flags.string({required:!0,description:"The type of the custom field."}),searcher:core_1.Flags.string({description:"The searcher defines the way the field is searched in Jira. Get more details:\nhttps://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/#api-rest-api-3-field-post"}),description:core_1.Flags.string({description:"The description of the custom field, which is displayed in Jira."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteIssueField extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,s){var i=(await this.parse(DeleteIssueField))["flags"],t=(1<i.id.length&&this.error("You can only delete multiple custom field on the same request on Server/DC."),await s.fieldManager.deleteCustomField(i.id[0]));this.display(i,t),i.silent||await this.showProgressBar(t,s,"Deleting customfield...")}async runWithServerSite(e,s){var i=(await this.parse(DeleteIssueField))["flags"],s=(i.silent&&this.error("Progress bar is available only for Cloud. Therefore you can not specify the silent flag."),await s.fieldManager.deleteCustomFields({ids:i.id}));this.log(s.message)}}(exports.default=DeleteIssueField).description="Deletes issue field. CLOUD ONLY -> This operation is asynchronous. You can use `jira task:get` command to obtain any updates.",DeleteIssueField.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({char:"i",description:"Field Id.",multiple:!0,required:!0}),silent:core_1.Flags.boolean({description:"If you activate this flag progress bar will not be shown."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class GetAll extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(GetAll))["flags"],s=await this.getJira(t,e).fieldManager.getFields();this.displayAlternativeForTable(e,s,s.map(e=>GetAll.convertFieldDetails(e,t.cloud)))}static convertFieldDetails(e,t){return Object.assign(Object.assign(Object.assign(Object.assign({},e),{clauseNames:e.clauseNames.join(",")}),(0,mapper_utils_1.withPrefix)(e.schema,"schema")),t?(0,mapper_utils_1.mapToScope)(e):{})}}(exports.default=GetAll).description="Returns system and custom issue fields.",GetAll.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class MoveTrash extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var s=(await this.parse(MoveTrash))["flags"];await a.fieldManager.moveToTrash(s.id)}}(exports.default=MoveTrash).description="Moves a issue field to trash.",MoveTrash.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({char:"i",description:"Field Id.",required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RestoreTrash extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(RestoreTrash))["flags"];await s.fieldManager.restoreFromTrash(a.id)}}(exports.default=RestoreTrash).description="Restores a issue field from trash.",RestoreTrash.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({char:"i",description:"Field Id.",required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class SearchTrash extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var s=(await this.parse(SearchTrash))["flags"],t=this.removeFlagsFromBase(s),i=t["all"],t=tslib_1.__rest(t,["all"]),l=await a.fieldManager.getFieldsTrashPaginated(t);i&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,t,a.fieldManager.getFieldsTrashPaginated.bind(a.fieldManager))),this.displayAlternativeForTable(s,t,l.values.map(e=>Object.assign(Object.assign({},e),(0,mapper_utils_1.withPrefix)(e.schema,"schema"))))}}(exports.default=SearchTrash).description="Searchs for issue fields which are in the trash. This command is only applicable to Jira Cloud",SearchTrash.flags=Object.assign(Object.assign(Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({description:"Field Id",multiple:!0})}),(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({description:"",options:["name","trashedDate","plannedDeletionDate"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class Search extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var s=(await this.parse(Search))["flags"],t=this.removeFlagsFromBase(s),i=t["all"],t=tslib_1.__rest(t,["all"]),l=await a.fieldManager.getFieldsPaginated(t);i&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,t,a.fieldManager.getFieldsPaginated.bind(a.fieldManager))),this.displayAlternativeForTable(s,l,l.values.map(e=>Object.assign(Object.assign({},e),(0,mapper_utils_1.withPrefix)(e.schema,"schema"))))}}(exports.default=Search).description="Searchs for custom fields. This command is only applicable to Jira Cloud",Search.flags=Object.assign(Object.assign(Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({char:"i",description:"Field Id",multiple:!0}),type:core_1.Flags.string({description:"Type of custom field",multiple:!0,options:["system","custom"]})}),(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({description:"",options:["name","contextsCount","lastUsed","screensCount"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class Update extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var s=(await this.parse(Update))["flags"],t=s["id"],s=tslib_1.__rest(s,["id"]);await i.fieldManager.updateIssueField(t,s)}}(exports.default=Update).description="Updates a custom field.",Update.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({char:"i",description:"Field Id.",required:!0}),name:core_1.Flags.string({description:"The name of the custom field, which is displayed in Jira. This is not the unique identifier."}),searcherKey:core_1.Flags.string({description:"The searcher defines the way the field is searched in Jira. Get more details:\nhttps://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/#api-rest-api-3-field-fieldid-put"}),description:core_1.Flags.string({description:"The description of the custom field, which is displayed in Jira."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AssingIssueType extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var i=(await this.parse(AssingIssueType))["flags"],i=this.removeFlagsFromBase(i),t=i["schemeId"],i=tslib_1.__rest(i,["schemeId"]);await s.fieldConfigurationManager.assingIssueType(t,{mappings:[i]})}}(exports.default=AssingIssueType).description="Assigns issue types to field configurations on field configuration scheme.",AssingIssueType.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{issueTypeId:core_1.Flags.string({description:"The ID of the issue type or default. When set to default this field configuration issue type item applies to all issue types without a field configuration.",required:!0}),schemeId:core_1.Flags.string({description:"The ID of the field configuration scheme.",required:!0}),fieldConfigurationId:core_1.Flags.string({description:"The ID of the field configuration.",required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class AssignFieldConfigScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(AssignFieldConfigScheme))["flags"],t=this.removeFlagsFromBase(t);t.projectId=(await(0,project_util_1.getProject)(i,t.project)).projectId,delete t.project,await i.fieldConfigurationManager.assignFieldConfigSchemeToProject(t)}}(exports.default=AssignFieldConfigScheme).description="Assings field configuration scheme to a project.",AssignFieldConfigScheme.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{project:core_1.Flags.string({char:"p",description:"Project Id or key.",required:!0}),fieldConfigurationSchemeId:core_1.Flags.string({description:"The ID of the field configuration scheme. If the field configuration scheme ID is null, the operation assigns the default field configuration scheme."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateFieldConfigScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var a=(await this.parse(CreateFieldConfigScheme))["flags"],t=this.removeFlagsFromBase(a),i=await i.fieldConfigurationManager.createScheme(t);this.display(a,i)}}(exports.default=CreateFieldConfigScheme).description="Creates a field configuration scheme.",CreateFieldConfigScheme.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{name:core_1.Flags.string({char:"n",description:"The name of the field configuration. Must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the field configuration scheme."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateFieldConfig extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var a=(await this.parse(CreateFieldConfig))["flags"],t=this.removeFlagsFromBase(a),i=await i.fieldConfigurationManager.create(t);this.display(a,i)}}(exports.default=CreateFieldConfig).description="Creates an issue field configuration.",CreateFieldConfig.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{name:core_1.Flags.string({char:"n",description:"The name of the field configuration. Must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the field configuration."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteFieldConfigScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(DeleteFieldConfigScheme))["flags"];await i.fieldConfigurationManager.deleteScheme(t.schemeId)}}(exports.default=DeleteFieldConfigScheme).description="Deletes an issue field configuration scheme.",DeleteFieldConfigScheme.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{schemeId:core_1.Flags.string({char:"i",description:"The ID of the field configuration scheme.",required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteFieldConfig extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(DeleteFieldConfig))["flags"];await i.fieldConfigurationManager.delete(t.id)}}(exports.default=DeleteFieldConfig).description="Deletes an issue field configuration.",DeleteFieldConfig.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({char:"i",description:"The ID of the field configuration.",required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAllIssueTypeItems extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(GetAllIssueTypeItems))["flags"],a=this.removeFlagsFromBase(t),i=a["all"],a=tslib_1.__rest(a,["all"]),l=await s.fieldConfigurationManager.getAllIssueTypeItems(a);i&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,a,s.fieldConfigurationManager.getAllIssueTypeItems.bind(s.fieldConfigurationManager))),this.display(t,l.values)}}(exports.default=GetAllIssueTypeItems).description="Gets all field configuration issue type items.",GetAllIssueTypeItems.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldConfigurationSchemeId:core_1.Flags.string({char:"i",description:"The list of field configuration scheme IDs.",multiple:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAllSchemes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(GetAllSchemes))["flags"],a=this.removeFlagsFromBase(s),l=a["all"],a=tslib_1.__rest(a,["all"]),i=await t.fieldConfigurationManager.getAllSchemes(a);l&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,t.fieldConfigurationManager.getAllSchemes.bind(t.fieldConfigurationManager))),this.display(s,i.values)}}(exports.default=GetAllSchemes).description="Gets all field configuration schemes.",GetAllSchemes.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({char:"i",description:"The list of field configuration IDs. You can provide multiple IDs.",multiple:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAllIssueFieldConfig extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var s=(await this.parse(GetAllIssueFieldConfig))["flags"],t=this.removeFlagsFromBase(s),a=t["all"],t=tslib_1.__rest(t,["all"]),l=await i.fieldConfigurationManager.getAll(t);a&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,t,i.fieldConfigurationManager.getAll.bind(i.fieldConfigurationManager))),this.display(s,l.values)}}(exports.default=GetAllIssueFieldConfig).description="Gets all issue field configurations.",GetAllIssueFieldConfig.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({char:"i",description:"The list of field configuration IDs. You can provide multiple IDs.",multiple:!0}),query:core_1.Flags.string({char:"q",description:"The query string used to match against field configuration names and descriptions."}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),isDefault:core_1.Flags.boolean({description:"If true returns default field configurations only."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueFieldConfigItems extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(GetIssueFieldConfigItems))["flags"],i=this.removeFlagsFromBase(s),{id:a,all:l}=i,i=tslib_1.__rest(i,["id","all"]),o=await t.fieldConfigurationManager.getItems(a,i);l&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,i,t.fieldConfigurationManager.getItems.bind(t.fieldConfigurationManager,a))),this.display(s,o.values)}}(exports.default=GetIssueFieldConfigItems).description="Gets all fields for a configuration.",GetIssueFieldConfigItems.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({char:"i",description:"The list of field configuration IDs. You can provide multiple IDs.",multiple:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return.",required:!1}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetProjectSchemes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(GetProjectSchemes))["flags"],o=this.removeFlagsFromBase(i),r=o["all"],o=tslib_1.__rest(o,["all"]),a=await(0,project_util_1.getProject)(t,o.project),a=(o.projectId=a.projectId,delete o.project,await t.fieldConfigurationManager.getProjectSchemes(o));r&&(a.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(a,o,t.fieldConfigurationManager.getProjectSchemes.bind(t.fieldConfigurationManager))),this.display(i,this.fieldConfigAndProjectMapper(a.values))}fieldConfigAndProjectMapper(e){const i=[];return e.forEach(t=>{t.projectIds.forEach(e=>{i.push({projectId:e,SchemeId:t.fieldConfigurationScheme?t.fieldConfigurationScheme.id:"",SchemeName:t.fieldConfigurationScheme?t.fieldConfigurationScheme.name:"",Description:t.fieldConfigurationScheme?t.fieldConfigurationScheme.description:""})})}),i}}(exports.default=GetProjectSchemes).description="Gets field configuration schemes and, for each scheme, a list of the projects that use it.",GetProjectSchemes.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{project:core_1.Flags.string({char:"p",description:"The list of project Ids or keys. You can provide multiple IDs or keys. ",multiple:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveIssueType extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var i=(await this.parse(RemoveIssueType))["flags"],i=this.removeFlagsFromBase(i),t=i["schemeId"],i=tslib_1.__rest(i,["schemeId"]);await s.fieldConfigurationManager.removeIssueTypes(t,i)}}(exports.default=RemoveIssueType).description="Removes issue types from field configurations on field configuration scheme.",RemoveIssueType.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{issueTypeIds:core_1.Flags.string({description:"The list of issue type IDs. Must contain unique values not longer than 255 characters and not be empty. Maximum of 100 IDs.",multiple:!0,required:!0}),schemeId:core_1.Flags.string({description:"The ID of the field configuration scheme.",required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateFieldConfigItems extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(UpdateFieldConfigItems))["flags"],[t,o]=this.modifyFlags(t);await i.fieldConfigurationManager.updateItems(t,o)}modifyFlags(e){var e=this.removeFlagsFromBase(e),i=e["configID"],e=tslib_1.__rest(e,["configID"]);return e.id=e.fieldID,delete e.fieldID,[i,{fieldConfigurationItems:[e]}]}}(exports.default=UpdateFieldConfigItems).description="Updates fields in a field configuration. The properties of the field configuration fields provided override the existing values.",UpdateFieldConfigItems.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{configID:core_1.Flags.string({char:"i",description:"The ID of the field configuration.",required:!0}),fieldID:core_1.Flags.string({description:"The ID of the issue field.",required:!0}),isHidden:core_1.Flags.boolean({description:"Whether the field is hidden in the field configuration."}),isRequired:core_1.Flags.boolean({description:"Whether the field is required in the field configuration."}),description:core_1.Flags.string({description:"The description of the field configuration."}),renderer:core_1.Flags.string({description:"The renderer type for the field within the field configuration."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateFieldConfigScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(UpdateFieldConfigScheme))["flags"],t=this.removeFlagsFromBase(t),s=t["schemeId"],t=tslib_1.__rest(t,["schemeId"]);await i.fieldConfigurationManager.updateScheme(s,t)}}(exports.default=UpdateFieldConfigScheme).description="Updates a field configuration scheme.",UpdateFieldConfigScheme.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{schemeId:core_1.Flags.string({char:"i",description:"The ID of the field configuration scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the field configuration. Must be unique."}),description:core_1.Flags.string({description:"The description of the field configuration scheme."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateFieldConfig extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(UpdateFieldConfig))["flags"],t=this.removeFlagsFromBase(t),a=t["id"],t=tslib_1.__rest(t,["id"]);await i.fieldConfigurationManager.update(a,t)}}(exports.default=UpdateFieldConfig).description="Updates an issue field configurations.",UpdateFieldConfig.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{id:core_1.Flags.string({char:"i",description:"The ID of the field configuration.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the field configuration. Must be unique."}),description:core_1.Flags.string({description:"The description of the field configuration."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AddIssueTypes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(AddIssueTypes))["flags"],t=this.removeFlagsFromBase(t),{fieldId:i,contextId:o}=t,t=tslib_1.__rest(t,["fieldId","contextId"]);await s.fieldContextManager.addIssueTypes(i,o,t)}}(exports.default=AddIssueTypes).description="Adds issue types to a custom field context, appending the issue types to the issue types list.",AddIssueTypes.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"TThe ID of the context.",required:!0}),issueTypeIds:core_1.Flags.string({description:"The list of issue type IDs.",multiple:!0,required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class AssignContextToProjects extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(AssignContextToProjects))["flags"],o=this.removeFlagsFromBase(o),{fieldId:s,contextId:i}=o,o=tslib_1.__rest(o,["fieldId","contextId"]),r=await(0,project_util_1.getProject)(t,o.project);o.projectIds=r.projectId,delete o.project,await t.fieldContextManager.assignContextToProjects(s,i,o)}}(exports.default=AssignContextToProjects).description="Assigns a custom field context to projects.",AssignContextToProjects.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),project:core_1.Flags.string({description:"The list of project IDs or keys.",multiple:!0,required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class CreateFieldContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(CreateFieldContext))["flags"],s=this.removeFlagsFromBase(i),o=s["fieldId"],s=tslib_1.__rest(s,["fieldId"]),r=await(0,project_util_1.getProject)(t,s.project),r=(s.projectId=r.projectId,delete s.project,await t.fieldContextManager.create(o,s));this.display(i,r)}}(exports.default=CreateFieldContext).description="Creates an issue field context. If projectIds is empty, a global context is created. A global context is one that applies to all project. If issueTypeIds is empty, the context applies to all issue types.",CreateFieldContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the field context. Must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the field context."}),project:core_1.Flags.string({char:"p",description:"The list of project IDs or keys associated with the context. If the list is empty, the context is global.",multiple:!0}),issueTypeIds:core_1.Flags.string({description:"The list of issue types IDs for the context. If the list is empty, the context refers to all issue types.",multiple:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteFieldContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(DeleteFieldContext))["flags"];await t.fieldContextManager.delete(i.fieldId,i.contextId)}}(exports.default=DeleteFieldContext).description="Deletes an issue field context.",DeleteFieldContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class IssueFieldContextGetAll extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(IssueFieldContextGetAll))["flags"],l=this.removeFlagsFromBase(s),{fieldId:a,all:o}=l,l=tslib_1.__rest(l,["fieldId","all"]),i=await t.fieldContextManager.getContexts(a,l);o&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,l,t.fieldContextManager.getContexts.bind(t.fieldContextManager,a))),this.display(s,i.values)}}(exports.default=IssueFieldContextGetAll).description="Gets all issue field contexts.",IssueFieldContextGetAll.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The list of context IDs. You can provide multiple IDs.",multiple:!0}),isAnyIssueType:core_1.Flags.boolean({description:"Whether to return contexts that apply to all issue types."}),isGlobalContext:core_1.Flags.boolean({description:"Whether to return contexts that apply to all projects."}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetDefaultValueContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(GetDefaultValueContext))["flags"],a=this.removeFlagsFromBase(s),i=a["fieldId"],a=tslib_1.__rest(a,["fieldId"]),t=await t.fieldContextManager.getContextsForProjectsAndIssueTypes(i,{startAt:a.startAt,maxResults:a.maxResults},{mappings:(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(a.mappings,"mappings",["issueTypeId","projectId"])});this.display(s,t.values)}}(exports.default=GetDefaultValueContext).description="Gets project and issue type mappings and, for each mapping, the ID of a custom field context that applies to the project and issue type.",GetDefaultValueContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),mappings:core_1.Flags.string({description:"The project and issue type mappings. Example use case: --mappings=projectId=10000,issueTypeId=10000",multiple:!0,required:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetDefaultValueContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(GetDefaultValueContext))["flags"],s=this.removeFlagsFromBase(a),{fieldId:l,all:i}=s,s=tslib_1.__rest(s,["fieldId","all"]),o=await t.fieldContextManager.getContextsDefaultValue(l,s);i&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,s,t.fieldContextManager.getContextsDefaultValue.bind(t.fieldContextManager,l))),this.display(a,o.values)}}(exports.default=GetDefaultValueContext).description="Gets defaults for a custom field. The results can be filtered by contextId, otherwise all values are returned. If no defaults are set for a context, nothing is returned.",GetDefaultValueContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The list of context IDs. You can provide multiple IDs.",multiple:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(GetIssueTypes))["flags"],a=this.removeFlagsFromBase(s),{fieldId:i,all:l}=a,a=tslib_1.__rest(a,["fieldId","all"]),o=await t.fieldContextManager.getIssueTypes(i,a);l&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,a,t.fieldContextManager.getIssueTypes.bind(t.fieldContextManager,i))),this.display(s,o.values)}}(exports.default=GetIssueTypes).description="Gets list of context to issue type mappings for a custom field. The result can be filtered by contextId",GetIssueTypes.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The list of context IDs. You can provide multiple IDs.",multiple:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetProjectMappings extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(GetProjectMappings))["flags"],a=this.removeFlagsFromBase(s),{fieldId:i,all:o}=a,a=tslib_1.__rest(a,["fieldId","all"]),r=await t.fieldContextManager.getProjectMappings(i,a);o&&(r.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(r,a,t.fieldContextManager.getProjectMappings.bind(t.fieldContextManager,i))),this.responseMapper(r.values),this.display(s,r.values)}responseMapper(e){e.map(e=>(void 0===e.projectId&&(e.projectId=""),void 0===e.isGlobalContext&&(e.isGlobalContext="false"),e))}}(exports.default=GetProjectMappings).description="Gets list of context to project mappings for a custom field. The result can be filtered by contextId",GetProjectMappings.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The list of context IDs. You can provide multiple IDs.",multiple:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class RemoveContextFromProjects extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(RemoveContextFromProjects))["flags"],o=this.removeFlagsFromBase(o),{fieldId:r,contextId:s}=o,o=tslib_1.__rest(o,["fieldId","contextId"]),i=await(0,project_util_1.getProject)(t,o.project);o.projectId=i.projectId,delete o.project,await t.fieldContextManager.removeContextFromProjects(r,s,o)}}(exports.default=RemoveContextFromProjects).description="Removes a custom field context from projects.",RemoveContextFromProjects.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),project:core_1.Flags.string({char:"p",description:"The list of project IDs or keys.",multiple:!0,required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveIssueTypes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(RemoveIssueTypes))["flags"],t=this.removeFlagsFromBase(t),{fieldId:i,contextId:o}=t,t=tslib_1.__rest(t,["fieldId","contextId"]);await s.fieldContextManager.removeIssueTypes(i,o,t)}}(exports.default=RemoveIssueTypes).description="Removes issue types from a custom field context. A custom field context without any issue types applies to all issue types",RemoveIssueTypes.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),issueTypeIds:core_1.Flags.string({description:"The list of issue type IDs.",multiple:!0,required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SetDefaultValueContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(SetDefaultValueContext))["flags"],a=this.removeFlagsFromBase(a),s=a["fieldId"],a=tslib_1.__rest(a,["fieldId"]);a.defaultValues=this.jsonParser(a.defaultValues),await t.fieldContextManager.setContextsDefaultValue(s,a)}jsonParser(e){const t=[];return e.forEach(e=>{t.push(JSON.parse(e.replace(/'/g,'"')))}),t}}(exports.default=SetDefaultValueContext).description="Sets default for contexts of a custom field.",SetDefaultValueContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),defaultValues:core_1.Flags.string({description:"Default values to update. (Note: Please provide json object to this flag. For available defaultValues: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-contexts/#api-rest-api-3-field-fieldid-context-defaultvalue-put)\n Avalible Json value should be like: \"{'type': 'grouppciker.single', 'contextId': '10000'}\" (Keys and values should be written in single quotes.)",multiple:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateFieldContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(UpdateFieldContext))["flags"],i=this.removeFlagsFromBase(i),{fieldId:s,contextId:o}=i,i=tslib_1.__rest(i,["fieldId","contextId"]);await t.fieldContextManager.update(s,o,i)}}(exports.default=UpdateFieldContext).description="Updates an issue field context.",UpdateFieldContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the field context. Must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the field context."})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateForContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(CreateForContext))["flags"],i=this.removeFlagsFromBase(o),{fieldId:s,contextId:a}=i,i=tslib_1.__rest(i,["fieldId","contextId"]),t=await t.fieldOptionManager.createFieldOptionForContext(s,a,{options:(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(i.options,"options",["value","optionId","disabled"])});this.display(o,t.options)}}(exports.default=CreateForContext).description="Creates options and, where the custom select field is of the type Select List (cascading), cascading options for a custom select field. The options are added to a context of the field.",CreateForContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),options:core_1.Flags.string({description:"Details of options to create. You can use this flag multiple times to add more option. Example use case: --options:value=optionValue,optionId=1000,disabled=true",multiple:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteForContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(DeleteForContext))["flags"];await t.fieldOptionManager.deleteFieldOptionForContext(o.fieldId,o.contextId,o.optionId)}}(exports.default=DeleteForContext).description="Deletes a custom field option. Options with cascading options cannot be deleted without deleting the cascading options first.",DeleteForContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context from which an option should be deleted.",required:!0}),optionId:core_1.Flags.string({description:"The ID of the option to delete.",required:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetForContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(GetForContext))["flags"],i=this.removeFlagsFromBase(o),{fieldId:s,contextId:r,all:a}=i,i=tslib_1.__rest(i,["fieldId","contextId","all"]),l=await t.fieldOptionManager.getFieldOptionsForContext(s,r,i);a&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,i,t.fieldOptionManager.getFieldOptionsForContext.bind(t.fieldOptionManager,s,r))),this.display(o,l.values)}}(exports.default=GetForContext).description="Gets all custom field option for a context.",GetForContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),optionId:core_1.Flags.string({description:"The ID of the option."}),onlyOptions:core_1.Flags.boolean({description:"Whether only options are returned."}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of items to return per page."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class Get extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=[];const{flags:i,argv:o}=await this.parse(Get),s=this.getJira(t,i);e.push(...i.optionId||[]),e.push(...Array.isArray(o)?o:"string"==typeof o?[o]:[]),0===e.length&&this.error("No custom field option id is specified.");t=e.sort().map(t=>s.fieldOptionManager.getCustomFieldOption(t));await Promise.all(t).then(t=>{0<t.length&&this.display(i,t)})}}(exports.default=Get).strict=!1,Get.description="Gets custom field option.",Get.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{optionId:core_1.Flags.string({char:"i",description:"The ID of the custom field option.",multiple:!0})}),Get.args=[{name:"optionId",description:"The ID of the custom field option."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class ReorderForContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(ReorderForContext))["flags"],i=this.removeFlagsFromBase(o),{fieldId:s,contextId:r}=i,i=tslib_1.__rest(i,["fieldId","contextId"]);await t.fieldOptionManager.reorderFieldOptionsForContext(s,r,{after:o.after,position:o.position,customFieldOptionIds:i.customFieldOptionId})}}(exports.default=ReorderForContext).description="Changes the order of custom field options or cascading options in a context.",ReorderForContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),customFieldOptionId:core_1.Flags.string({description:"ID of custom field options to move. You can provide multiple ID by repeating this flag. The order of the custom field option IDs in the list is the order they are given after the move. The list must contain custom field options or cascading options, but not both.",required:!0,multiple:!0}),after:core_1.Flags.string({description:"The ID of the custom field option or cascading option to place the moved options after. Required if position isn't provided.",dependsOn:["position"]}),position:core_1.Flags.string({description:"The position the custom field options should be moved to. Required if after isn't provided.",dependsOn:["after"],options:["First","Last"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateForContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(UpdateForContext))["flags"],i=this.removeFlagsFromBase(o),{fieldId:s,contextId:a}=i,i=tslib_1.__rest(i,["fieldId","contextId"]),t=await t.fieldOptionManager.updateFieldOptionForContext(s,a,{options:(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(i.options,"options",["value","id","disabled"])});this.display(o,t.options)}}(exports.default=UpdateForContext).description="Updates the options of a custom field. If any of the options are not found, no options are updated. Options where the values in the request match the current values aren't updated and aren't reported in the response.",UpdateForContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),options:core_1.Flags.string({description:"Details of options to create. You can use this flag multiple times to add more option. Example use case: --options:value=optionValue,id=1000,disabled=true",multiple:!0})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),comments_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/comments"),create_1=require("../issue/create");class CreateIssueLink extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:s,args:i}=await this.parse(CreateIssueLink),a=this.getJira(e,s),t=this.removeFlagsFromBase(s),r=t["show"],t=tslib_1.__rest(t,["show"]);r?this.showSampleCreateRequest(s,e):await this.createIssueLink(s,t,i,a,e)}async createIssueLink(e,s,i,a,t){var r=Object.values(s).every(e=>void 0===e);let o=i.issueLinkBody;if(r&&void 0===o){if(!(o=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===o.length)throw new Error("You should provide a valid JSON for the issue! You can use `jira issue-link:create --show` command to generate a valid JSON body.")}else o=this.createRequestBodyFromFlags(s,t);await a.issueLinkManager.createIssueLink(o);i=await a.issueLinkManager.getIssueLinkInfo(o.inwardIssue.key);this.display(e,i.body.fields.issuelinks[0])}createRequestBodyFromFlags(e,a){const t={type:{},inwardIssue:{},outwardIssue:{}};return Object.entries(e).forEach(e=>{let s=e[1];switch(e[0]){case"issueLinkTypeName":t.type.name=s;break;case"issueLinkTypeID":t.type.id=s;break;case"comment":t.comment={},a.cloud&&(s=(0,atlascli_common_1.stringToADF)(s)),t.comment.body=s;break;case"inwardIssue":case"outwardIssue":var i=(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(s,e[0],["id","key"])[0];t[e[0]]=i;break;case"commentVisibility":t.comment.visibility=(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(s,e[0],["type","value","identifier"])[0];break;case"commentProperty":t.comment.properties=(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(s,e[0],["key","value"])}}),t}showSampleCreateRequest(e,s){var i={type:{},inwardIssue:{},outwardIssue:{},comment:{visibility:{type:comments_1.VisibilityType.GROUP,value:"jira-software-users"}}};e.json=!0,i.inwardIssue.key="HSP-1",i.outwardIssue.key="MKY-1",i.type.name="Duplicate",i.comment.body=s.cloud?create_1.richTextSampleData:"Sample Paragraph.",this.display(e,i)}}(exports.default=CreateIssueLink).description="Creates a link between two issues. You can also provide request body as JSON using STDIN without specifying any flags.",CreateIssueLink.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for issue link creation."}),issueLinkTypeID:core_1.Flags.string({description:"The ID of the issue link type. Find a list of issue link types with 'jira issue-link-type:get-all' command."}),issueLinkTypeName:core_1.Flags.string({description:"The name of the issue link type. Find a list of issue link types with 'jira issue-link-type:get-all' command."}),inwardIssue:core_1.Flags.string({description:"The ID or key of a linked issue. KEYS: [id, key]\nExample usage: --inwardIssue=key=HYP-1 or --inwardIssue=id=10000"}),outwardIssue:core_1.Flags.string({description:"The ID or key of a linked issue. KEYS: [id, key]\nExample usage: --outwardIssue=key=HYP-1 or --outwardIssue=id=10000"}),comment:core_1.Flags.string({description:"A comment."}),commentVisibility:core_1.Flags.string({description:"The group or role to which this comment is visible. KEYS: [type, identifier, value]\nExample usage: --commentVisibility=type=group,value=jira-software-users",dependsOn:["comment"]}),commentProperty:core_1.Flags.string({description:"A comment property. You can use this flag multiple times to provide more properties. KEYS: [key, value]\nExample usage: --commentProperty=key=XX,value=XXXX",dependsOn:["comment"]})},atlascli_common_1.CommandWithSite.flags),CreateIssueLink.args=[{name:"issueLinkBody",description:"Issue Link creation request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class Delete extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:i,args:s}=await this.parse(Delete),e=this.getJira(e,i),s=s.linkId||i.linkId;s||this.error("You have to specify the id of an issue link."),await e.issueLinkManager.deleteIssueLink(s)}}(exports.default=Delete).description="Deletes an issue link.",Delete.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{linkId:core_1.Flags.string({char:"i",description:"The ID of the issue link."})}),Delete.args=[{name:"linkId",description:"The ID of the issue link."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class Get extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=[];const{flags:i,argv:t}=await this.parse(Get),a=this.getJira(e,i);s.push(...i.linkId||[]),s.push(...Array.isArray(t)?t:"string"==typeof t?[t]:[]),0===s.length&&this.error("No issue link id is specified.");e=s.sort().map(e=>a.issueLinkManager.getIssueLink(e));await Promise.all(e).then(e=>{0<e.length&&(this.linkMapper(e),this.display(i,e))})}linkMapper(e){(e=Array.isArray(e)?e:[e]).map(e=>(e.typeId=e.type.id,e.typeName=e.type.name,e.inwardIssueKey=e.inwardIssue.key,e.outwardIssueKey=e.outwardIssue.key,e))}}(exports.default=Get).strict=!1,Get.description="Gets an issue link.",Get.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{linkId:core_1.Flags.string({char:"i",description:"The ID of the issue link.",multiple:!0})}),Get.args=[{name:"linkId",description:"The ID of the issue link."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class Create extends atlascli_common_1.CommandWithSite{async runWithSite(e){var i=(await this.parse(Create))["flags"],e=this.getJira(e,i),s=this.removeFlagsFromBase(i),e=await e.issueLinkTypeManager.createIssueLinkType(Object.assign({},s));this.display(i,e)}}(exports.default=Create).description="Creates an issue link type.",Create.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the issue link type. Required on create when id is not provided. Otherwise, read only.",required:!0}),inward:core_1.Flags.string({description:"The description of the issue link type inward link.",required:!0}),outward:core_1.Flags.string({description:"The description of the issue link type outward link.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class Delete extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(Delete))["flags"];await this.getJira(e,s).issueLinkTypeManager.deleteIssueLinkType(s.issueLinkTypeId)}}(exports.default=Delete).description="Deletes an issue link type.",Delete.flags=Object.assign({issueLinkTypeId:core_1.Flags.string({char:"i",description:"The ID of the issue link type.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetAll extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetAll))["flags"],e=await this.getJira(e,s).issueLinkTypeManager.getIssueLinkTypes();this.display(s,e.issueLinkTypes)}}(exports.default=GetAll).description="Gets all issue link types.",GetAll.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class Get extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=[];const{flags:i,argv:t}=await this.parse(Get),a=this.getJira(e,i);s.push(...i.issueLinkTypeId||[]),s.push(...Array.isArray(t)?t:"string"==typeof t?[t]:[]),0===s.length&&this.error("No issue link type id is specified.");e=s.sort().map(e=>a.issueLinkTypeManager.getIssueLinkType(e));await Promise.all(e).then(e=>{0<e.length&&this.display(i,e)})}}(exports.default=Get).strict=!1,Get.description="Gets an issue link type.",Get.flags=Object.assign({issueLinkTypeId:core_1.Flags.string({char:"i",description:"The ID of the issue link type.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),Get.args=[{name:"issueLinkTypeId",description:"The ID of the issue link type."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class Update extends atlascli_common_1.CommandWithSite{async runWithSite(e){var i=(await this.parse(Update))["flags"],e=this.getJira(e,i),s=this.removeFlagsFromBase(i),t=s["issueLinkTypeId"],s=tslib_1.__rest(s,["issueLinkTypeId"]),e=await e.issueLinkTypeManager.updateIssueLinkType(t,Object.assign({},s));this.display(i,e)}}(exports.default=Update).description="Updates an issue link type.",Update.flags=Object.assign({issueLinkTypeId:core_1.Flags.string({char:"i",description:"The ID of the issue link type.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the issue link type."}),inward:core_1.Flags.string({description:"The description of the issue link type inward link."}),outward:core_1.Flags.string({description:"The description of the issue link type outward link."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetColumns extends atlascli_common_1.CommandWithSite{async runWithSite(t){var s=(await this.parse(GetColumns))["flags"],t=await this.getJira(t,s).issueNavigatorSettingsManager.getColumns();this.display(s,t)}}(exports.default=GetColumns).description="Returns the default issue navigator columns.",GetColumns.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SetColumns extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(SetColumns))["flags"];await this.getJira(e,t).issueNavigatorSettingsManager.setColumns(t.columnKey)}}(exports.default=SetColumns).description="Sets the default issue navigator columns.",SetColumns.flags=Object.assign({columnKey:core_1.Flags.string({multiple:!0,char:"c",description:"The key of column. You can repeat this flag for setting multiple columns.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateIssuePriority extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(i,e){var r=(await this.parse(CreateIssuePriority))["flags"],t=this.removeFlagsFromBase(this.modifyIconUrl(r)),e=await e.issuePriorityManager.createPriority(t);await this.display(r,e)}modifyIconUrl(i){return i.iconUrl=`/images/icons/priorities/${i.icon}.png`,delete i.icon,i}}(exports.default=CreateIssuePriority).description="Creates an issue priority.",CreateIssuePriority.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the priority. Must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the priority."}),icon:core_1.Flags.string({char:"i",options:["blocker","critical","high","highest","low","lowest","major","medium","minor","trivial"],description:"An icon for the priority.",required:!0}),statusColor:core_1.Flags.string({char:"k",description:'The status color of the priority in 3-digit or 6-digit hexadecimal format. For example: -k="FFFF00"',required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteIssuePriority extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var s=(await this.parse(DeleteIssuePriority))["flags"],t=this.removeFlagsFromBase(s),r=t["id"],t=tslib_1.__rest(t,["id"]),r=await i.issuePriorityManager.deletePriority(r,t);this.display(s,r),s.silent||await this.showProgressBar(r,i,"The issue priority is deleting...")}}(exports.default=DeleteIssuePriority).description="Deletes an issue priority.",DeleteIssuePriority.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue priority.",required:!0}),replaceWith:core_1.Flags.string({char:"r",description:"The ID of the issue priority that will replace the currently selected resolution.",required:!0}),silent:core_1.Flags.boolean({description:"If you activate this flag progress bar will not be shown."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class MoveIssuePriority extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var s=(await this.parse(MoveIssuePriority))["flags"],r=tslib_1.__rest(this.removeFlagsFromBase(s),[]);r.ids=s.issues.split(","),delete r.issues,await i.issuePriorityManager.movePriority(r)}}(exports.default=MoveIssuePriority).description="Changes the order of issue priorities.",MoveIssuePriority.flags=Object.assign({issues:core_1.Flags.string({char:"i",description:"The list of issue IDs to be reordered. Cannot contain duplicates nor after ID.",required:!0}),after:core_1.Flags.string({char:"a",description:"The ID of the priority. Required if position isn't provided."}),position:core_1.Flags.string({char:"p",description:"The position for issue priorities to be moved to. Required if after isn't provided."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class SearchIssuePriorities extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,i){var r=(await this.parse(SearchIssuePriorities))["flags"],s=this.removeFlagsFromBase(r),a=s["all"],s=tslib_1.__rest(s,["all"]),t=(s.id=null==(t=r.id)?void 0:t.split(","),await i.issuePriorityManager.searchPriorities(s));a&&(t.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(t,s,i.issuePriorityManager.searchPriorities.bind(i.issuePriorityManager))),this.display(r,t.values)}async runWithServerSite(e,i){var r=(await this.parse(SearchIssuePriorities))["flags"],s=this.removeFlagsFromBase(r),a=s["all"],s=tslib_1.__rest(s,["all"]),t=await(0,project_util_1.getProject)(i,s.project),t=(s.projectIds=t.projectId,delete s.project,await i.issuePriorityManager.searchPriorities(s));a&&(t.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(t,s,i.issuePriorityManager.searchPriorities.bind(i.issuePriorityManager))),this.display(r,t.values)}}(exports.default=SearchIssuePriorities).description="Search issue-priorities.",SearchIssuePriorities.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{id:core_1.Flags.string({char:"i",description:'The list of priority IDs. To include multiple IDs, provide an comma-separated list. For example, -i="2,3".'}),onlyDefault:core_1.Flags.boolean({description:"Only default priority returned, for cloud only",default:!1}),query:core_1.Flags.string({description:"Whether only the default priority is returned."}),project:core_1.Flags.string({char:"p",description:"For server only. For example, -p = 10200",multiple:!0}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SetDefaultIssuePriority extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(SetDefaultIssuePriority))["flags"],i=await this.removeFlagsFromBase(i),i=(i.id||(i.id=null),this.removeFlagsFromBase(i));await t.issuePriorityManager.setDefaultPriority(i)}}(exports.default=SetDefaultIssuePriority).description="Sets default issue priority.",SetDefaultIssuePriority.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the new default issue priority. Must be an existing ID or null. Setting this to null erases the default priority setting."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateIssuePriority extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(i,r){var e=(await this.parse(UpdateIssuePriority))["flags"],e=this.removeFlagsFromBase(e),t=e["id"],e=tslib_1.__rest(e,["id"]),e=this.modifyIconUrl(e);await r.issuePriorityManager.updatePriority(t,e)}modifyIconUrl(i){return i.iconUrl=`/images/icons/priorities/${i.icon}.png`,delete i.icon,i}}(exports.default=UpdateIssuePriority).description="My description",UpdateIssuePriority.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue priority.",required:!0}),name:core_1.Flags.string({char:"n",description:"The description of the priority."}),description:core_1.Flags.string({char:"d",description:"The description of the priority."}),icon:core_1.Flags.string({options:["blocker","critical","high","highest","low","lowest","major","medium","minor","trivial"],description:"An icon for the priority. Built in icons can also be used.",required:!0}),statusColor:core_1.Flags.string({char:"k",description:"The status color of the priority in 3-digit or 6-digit hexadecimal format."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_1=require("./set");class DeleteIssuePropertyBulk extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:t,args:o}=await this.parse(DeleteIssuePropertyBulk);if(t.show)t.json=!0,this.display(t,{entityIds:[1e4,10001],currentValue:"deprecated value"});else{void 0===t.key&&this.error("Missing required flag:\n --key KEY The key of the property.\nSee more help with --help");let e=o.jsonBody;if(void 0===e&&(!(e=await(0,atlascli_common_1.readStdin)())||0===e.length))throw new Error("You should provide a valid JSON for the issue! You can use `jira issue-property:set-bulk --show` command to generate a valid JSON body.");o=await s.issuePropertyManager.bulkDeleteIssueProperty(t.key,(0,set_1.isJson)(e)?JSON.parse(e):e);this.display(t,o),t.silent||await this.showProgressBar(o,s,"Setting properties...")}}}(exports.default=DeleteIssuePropertyBulk).description="Deletes a property value from multiple issues. The issues to be updated can be specified by filter criteria. This operation is asynchronous. You can use `jira task:get` command to obtain any updates.",DeleteIssuePropertyBulk.flags=Object.assign({key:core_1.Flags.string({description:"The key of the property. (Required)"}),show:core_1.Flags.boolean({description:"Prepare a sample JSON output for command."}),silent:core_1.Flags.boolean({description:"If you activate this flag progress bar will not be shown and you won't wait for the process. If you want to get details about task you can simply call `jira task:get` command."})},atlascli_common_1.CommandWithSite.flags),DeleteIssuePropertyBulk.args=[{name:"jsonBody",description:"Bulk delete request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteProperty))["flags"];await this.getJira(e,t).issuePropertyManager.deleteIssueProperty(t.issue,t.key)}}(exports.default=DeleteProperty).description="Deletes an issue's property.",DeleteProperty.flags=Object.assign({issue:core_1.Flags.string({description:"The key or ID of the issue.",required:!0}),key:core_1.Flags.string({description:"The key of the property.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssuePropertyKeys extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetIssuePropertyKeys))["flags"],e=await this.getJira(e,s).issuePropertyManager.getIssuePropertyKeys(s.issue);this.display(s,e.keys)}}(exports.default=GetIssuePropertyKeys).description="Gets the URLs and keys of an issue's properties. This operation can be accessed anonymously.",GetIssuePropertyKeys.flags=Object.assign({issue:core_1.Flags.string({description:"The key or ID of the issue.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.modifyPropertyResponseForDisplay=void 0;const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");function modifyPropertyResponseForDisplay(e){return e.value=JSON.stringify(e.value),e}exports.modifyPropertyResponseForDisplay=modifyPropertyResponseForDisplay;class GetIssueProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetIssueProperty))["flags"],e=await this.getJira(e,s).issuePropertyManager.getIssueProperty(s.issue,s.key);this.display(s,modifyPropertyResponseForDisplay(e))}}(exports.default=GetIssueProperty).description="Gets the key and value of an issue's property.",GetIssueProperty.flags=Object.assign({issue:core_1.Flags.string({description:"The key or ID of the issue.",required:!0}),key:core_1.Flags.string({description:"The key of the property.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_1=require("./set");class SetIssuePropertyBulk extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:o,args:t}=await this.parse(SetIssuePropertyBulk);if(o.show)this.showSampleJsonBody(o);else{void 0===o.key&&this.error("Missing required flag:\n --key KEY The key of the property.\nSee more help with --help");let e=t.jsonBody;if(void 0===e&&(!(e=await(0,atlascli_common_1.readStdin)())||0===e.length))throw new Error("You should provide a valid JSON for the issue! You can use `jira issue-property:set-bulk --show` command to generate a valid JSON body.");t=await s.issuePropertyManager.bulkSetIssueProperty(o.key,(0,set_1.isJson)(e)?JSON.parse(e):e);this.display(o,t),o.silent||await this.showProgressBar(t,s,"Setting properties...")}}showSampleJsonBody(e){var s={expression:"Jira Expression",value:{owner:"admin",weight:100},filter:{hasProperty:!0,entityIds:[10100,10010],currentValue:{owner:"admin",weight:50}}};e.json=!0,this.display(e,s)}}(exports.default=SetIssuePropertyBulk).description="Sets a property value on multiple issues. This operation is asynchronous. You can use `jira task:get` command to obtain any updates.",SetIssuePropertyBulk.flags=Object.assign({key:core_1.Flags.string({description:"The key of the property. (Required)"}),show:core_1.Flags.boolean({description:"Prepare a sample JSON output for command."}),silent:core_1.Flags.boolean({description:"If you activate this flag progress bar will not be shown and you won't wait for the process. If you want to get details about task you can simply call `jira task:get` command."})},atlascli_common_1.CommandWithSite.flags),SetIssuePropertyBulk.args=[{name:"jsonBody",description:"Bulk set request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_1=require("./set");class BulkSetIssuePropertiesByIssue extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var{flags:t,args:o}=await this.parse(BulkSetIssuePropertiesByIssue);if(t.show)this.showSampleJsonBody(t);else{let s=o.jsonBody;if(void 0===s&&(!(s=await(0,atlascli_common_1.readStdin)())||0===s.length))throw new Error("You should provide a valid JSON for the issue! You can use `jira issue-property:set-by-issue-bulk --show` command to generate a valid JSON body.");o=await e.issuePropertyManager.bulkSetIssuePropertiesByIssue((0,set_1.isJson)(s)?JSON.parse(s):s);this.display(t,o),t.silent||await this.showProgressBar(o,e,"Setting properties...")}}showSampleJsonBody(s){var e={issues:[]};e.issues.push({issueID:1e3,properties:{myProperties:{owner:"admin",weight:100}}}),e.issues.push({issueID:1001,properties:{myOtherProperties:{cost:150,transportation:"car"}}}),s.json=!0,this.display(s,e)}}(exports.default=BulkSetIssuePropertiesByIssue).description="Sets or updates entity property values on issues. Up to 10 entity properties can be specified for each issue and up to 100 issues included in the request. This operation is asynchronous. You can use `jira task:get` command to obtain any updates.",BulkSetIssuePropertiesByIssue.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for command."}),silent:core_1.Flags.boolean({description:"If you activate this flag progress bar will not be shown and you won't wait for the process. If you want to get details about task you can simply call `jira task:get` command."})},atlascli_common_1.CommandWithSite.flags),BulkSetIssuePropertiesByIssue.args=[{name:"jsonBody",description:"Bulk set issue properties by issue request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_1=require("./set");class BulkSetIssuePropertiesByList extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:t,args:o}=await this.parse(BulkSetIssuePropertiesByList);if(t.show)t.json=!0,this.display(t,{entitiesIds:[2154,2153],properties:{}});else{let e=o.jsonBody;if(void 0===e&&(!(e=await(0,atlascli_common_1.readStdin)())||0===e.length))throw new Error("You should provide a valid JSON for the issue! You can use `jira issue-property:set-by-list-bulk --show` command to generate a valid JSON body.");o=await s.issuePropertyManager.bulkSetIssuesPropertiesByList((0,set_1.isJson)(e)?JSON.parse(e):e);this.display(t,o),t.silent||await this.showProgressBar(o,s,"Setting properties...")}}}(exports.default=BulkSetIssuePropertiesByList).description="Sets or updates a list of entity property values on issues. A list of up to 10 entity properties can be specified along with up to 10,000 issues on which to set or update that list of entity properties. This operation is asynchronous. You can use `jira task:get` command to obtain any updates.",BulkSetIssuePropertiesByList.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for command."}),silent:core_1.Flags.boolean({description:"If you activate this flag progress bar will not be shown and you will not wait for the process. If you want to get details about task you can simply call `jira task:get` command."})},atlascli_common_1.CommandWithSite.flags),BulkSetIssuePropertiesByList.args=[{name:"jsonBody",description:"Bulk set issue properties by list request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isJson=void 0;const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");function isJson(e){try{return JSON.parse(e),!0}catch(e){return!1}}exports.isJson=isJson;class SetProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:s,args:t}=await this.parse(SetProperty),e=this.getJira(e,s);let r=t.jsonBody;if(void 0===r&&(!(r=await(0,atlascli_common_1.readStdin)())||0===r.length))throw new Error("You should provide a valid JSON!");await e.issuePropertyManager.setIssueProperty(s.issue,s.key,isJson(r)?JSON.parse(r):r)}}(exports.default=SetProperty).description="Sets the value of an issue's property. Use this resource to store custom data against an issue. The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters.",SetProperty.flags=Object.assign({issue:core_1.Flags.string({description:"The key or ID of the issue.",required:!0}),key:core_1.Flags.string({description:"The key of the property.",required:!0})},atlascli_common_1.CommandWithSite.flags),SetProperty.args=[{name:"jsonBody",description:"Issue property set request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_1=require("../issue-property/set");class CreateRemoteLink extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var{flags:t,args:s}=await this.parse(CreateRemoteLink),e=this.getJira(e,t);t.show?this.showSampleCreateRequest(t):(t.issue||this.error("You must specify issue ID or Key."),await this.createRemoteIssueLink(t,s,e))}async createRemoteIssueLink(e,t,s){let o=t.issueRemoteLinkBody;if(!(void 0!==o||(o=await(0,atlascli_common_1.readStdin)())&&0!==o.length&&(0,set_1.isJson)(o)))throw new Error("You should provide a valid JSON for the remote link! You can use `jira issue-remote-link:create --show` command to generate a valid JSON body.");t=await s.issueRemoteLinkManager.createOrUpdateRemoteLink(e.issue,JSON.parse(o));this.display(e,t)}showSampleCreateRequest(e){var t={object:{url:"http://www.mycompany.com/support?id=1",title:"TSTSUP-111",summary:"Customer support issue"}};t.object.icon={url16x16:"http://www.mycompany.com/support/ticket.png",title:"Support Ticket"},t.object.status={icon:{url16x16:"http://www.mycompany.com/support/resolved.png",link:"http://www.mycompany.com/support?id=1&details=closed",title:"Case Closed"},resolved:!0},t.globalId="system=http://www.mycompany.com/support&id=1",t.application={name:"My Acme Tracker",type:"com.acme.tracker"},t.relationship="causes",e.json=!0,this.display(e,t)}}(exports.default=CreateRemoteLink).description="Creates or updates a remote issue link for an issue. You must provide request body as JSON using STDIN.\nNOTE: If a globalId is provided and a remote issue link with that global ID is found it is updated. Any fields without values in the request are set to null. Otherwise, the remote issue link is created.",CreateRemoteLink.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"Issue ID or Key."}),show:core_1.Flags.boolean({description:"Prepare a sample JSON output for issue remote link creation."})},atlascli_common_1.BaseCommandWithSite.flags),CreateRemoteLink.args=[{name:"issueRemoteLinkBody",description:"Issue remote link creation request body in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeletRemoteLinkByGlobalId extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(DeletRemoteLinkByGlobalId))["flags"],e=this.getJira(e,s),s=this.removeFlagsFromBase(s),t=s["issue"],s=tslib_1.__rest(s,["issue"]);await e.issueRemoteLinkManager.deleteRemoteLinkByGlobalId(t,s)}}(exports.default=DeletRemoteLinkByGlobalId).description="Deletes the remote issue link from the issue using the link's global ID.",DeletRemoteLinkByGlobalId.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"Issue ID or Key.",required:!0}),globalId:core_1.Flags.string({description:"The global ID of the remote issue link.",required:!0})},atlascli_common_1.BaseCommandWithSite.flags);
|