@resolution/jira-api-client 0.5.2 → 0.5.4
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/CHANGELOG.md +22 -0
- package/README.md +51 -19
- package/lib/openapi/{platform/core → core}/CommonHttpClient.d.ts +54 -3
- package/lib/openapi/{serviceManagement/core → core}/CommonHttpClient.js +14 -0
- package/lib/openapi/core/CommonHttpClient.js.map +1 -0
- package/lib/openapi/{software/core → core}/CommonHttpService.d.ts +17 -0
- package/lib/openapi/{platform/core → core}/CommonHttpService.js +11 -0
- package/lib/openapi/core/CommonHttpService.js.map +1 -0
- package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -0
- package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +5 -5
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js +3 -3
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
- package/lib/openapi/platform/models/announcementBanner.d.ts +1 -1
- package/lib/openapi/platform/models/appDataPolicies.d.ts +1 -1
- package/lib/openapi/platform/models/appMigration.d.ts +13 -7
- package/lib/openapi/platform/models/appMigration.js.map +1 -1
- package/lib/openapi/platform/models/appProperties.d.ts +3 -2
- package/lib/openapi/platform/models/appProperties.js.map +1 -1
- package/lib/openapi/platform/models/auditRecords.d.ts +1 -1
- package/lib/openapi/platform/models/avatars.d.ts +1 -1
- package/lib/openapi/platform/models/classificationLevels.d.ts +1 -1
- package/lib/openapi/platform/models/common.d.ts +3 -5
- package/lib/openapi/platform/models/common.js.map +1 -1
- package/lib/openapi/platform/models/dashboards.d.ts +2 -3
- package/lib/openapi/platform/models/dashboards.js.map +1 -1
- package/lib/openapi/platform/models/dynamicModules.d.ts +5 -3
- package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
- package/lib/openapi/platform/models/filterSharing.d.ts +1 -1
- package/lib/openapi/platform/models/filters.d.ts +1 -1
- package/lib/openapi/platform/models/groupAndUserPicker.d.ts +1 -1
- package/lib/openapi/platform/models/groups.d.ts +1 -1
- package/lib/openapi/platform/models/issueAttachments.d.ts +1 -1
- package/lib/openapi/platform/models/issueBulkOperations.d.ts +2 -3
- package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -1
- package/lib/openapi/platform/models/issueCommentProperties.d.ts +1 -1
- package/lib/openapi/platform/models/issueComments.d.ts +1 -1
- package/lib/openapi/platform/models/issueCustomFieldConfigurationApps.d.ts +1 -1
- package/lib/openapi/platform/models/issueCustomFieldContexts.d.ts +1 -1
- package/lib/openapi/platform/models/issueCustomFieldOptions.d.ts +1 -1
- package/lib/openapi/platform/models/issueCustomFieldOptionsApps.d.ts +1 -1
- package/lib/openapi/platform/models/issueCustomFieldValuesApps.d.ts +1 -1
- package/lib/openapi/platform/models/issueFieldConfigurations.d.ts +1 -1
- package/lib/openapi/platform/models/issueFields.d.ts +1 -1
- package/lib/openapi/platform/models/issueLinkTypes.d.ts +1 -1
- package/lib/openapi/platform/models/issueLinks.d.ts +1 -1
- package/lib/openapi/platform/models/issueNotificationSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/issuePriorities.d.ts +1 -1
- package/lib/openapi/platform/models/issueProperties.d.ts +1 -1
- package/lib/openapi/platform/models/issueRemoteLinks.d.ts +1 -1
- package/lib/openapi/platform/models/issueResolutions.d.ts +1 -1
- package/lib/openapi/platform/models/issueSearch.d.ts +2 -3
- package/lib/openapi/platform/models/issueSearch.js.map +1 -1
- package/lib/openapi/platform/models/issueSecurityLevel.d.ts +1 -1
- package/lib/openapi/platform/models/issueSecuritySchemes.d.ts +1 -1
- package/lib/openapi/platform/models/issueTypeSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/issueTypeScreenSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/issueTypes.d.ts +1 -1
- package/lib/openapi/platform/models/issueVotes.d.ts +1 -1
- package/lib/openapi/platform/models/issueWatchers.d.ts +1 -1
- package/lib/openapi/platform/models/issueWorklogs.d.ts +1 -1
- package/lib/openapi/platform/models/issues.d.ts +16 -14
- package/lib/openapi/platform/models/issues.js.map +1 -1
- package/lib/openapi/platform/models/jiraExpressions.d.ts +8 -6
- package/lib/openapi/platform/models/jiraExpressions.js.map +1 -1
- package/lib/openapi/platform/models/jiraSettings.d.ts +1 -1
- package/lib/openapi/platform/models/jql.d.ts +9 -5
- package/lib/openapi/platform/models/jql.js.map +1 -1
- package/lib/openapi/platform/models/jqlFunctionsApps.d.ts +1 -1
- package/lib/openapi/platform/models/labels.d.ts +1 -1
- package/lib/openapi/platform/models/licenseMetrics.d.ts +1 -1
- package/lib/openapi/platform/models/myself.d.ts +1 -1
- package/lib/openapi/platform/models/permissionSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/permissions.d.ts +2 -3
- package/lib/openapi/platform/models/permissions.js.map +1 -1
- package/lib/openapi/platform/models/prioritySchemes.d.ts +1 -1
- package/lib/openapi/platform/models/projectAvatars.d.ts +1 -1
- package/lib/openapi/platform/models/projectClassificationLevels.d.ts +1 -1
- package/lib/openapi/platform/models/projectComponents.d.ts +1 -1
- package/lib/openapi/platform/models/projectEmail.d.ts +1 -1
- package/lib/openapi/platform/models/projectFeatures.d.ts +1 -1
- package/lib/openapi/platform/models/projectPermissionSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/projectRoleActors.d.ts +1 -1
- package/lib/openapi/platform/models/projectRoles.d.ts +1 -1
- package/lib/openapi/platform/models/projectTypes.d.ts +1 -1
- package/lib/openapi/platform/models/projectVersions.d.ts +1 -1
- package/lib/openapi/platform/models/projects.d.ts +1 -1
- package/lib/openapi/platform/models/screenSchemes.d.ts +2 -2
- package/lib/openapi/platform/models/screenSchemes.js +1 -1
- package/lib/openapi/platform/models/screenSchemes.js.map +1 -1
- package/lib/openapi/platform/models/screenTabFields.d.ts +1 -1
- package/lib/openapi/platform/models/screens.d.ts +1 -1
- package/lib/openapi/platform/models/serverInfo.d.ts +1 -1
- package/lib/openapi/platform/models/serviceRegistry.d.ts +3 -2
- package/lib/openapi/platform/models/serviceRegistry.js.map +1 -1
- package/lib/openapi/platform/models/status.d.ts +1 -1
- package/lib/openapi/platform/models/timeTracking.d.ts +1 -1
- package/lib/openapi/platform/models/uiModificationsApps.d.ts +1 -1
- package/lib/openapi/platform/models/userSearch.d.ts +1 -1
- package/lib/openapi/platform/models/users.d.ts +1 -1
- package/lib/openapi/platform/models/webhooks.d.ts +1 -1
- package/lib/openapi/platform/models/workflowSchemeDrafts.d.ts +1 -1
- package/lib/openapi/platform/models/workflowSchemeProjectAssociations.d.ts +1 -1
- package/lib/openapi/platform/models/workflowSchemes.d.ts +1 -1
- package/lib/openapi/platform/models/workflowTransitionProperties.d.ts +1 -1
- package/lib/openapi/platform/models/workflowTransitionRules.d.ts +1 -1
- package/lib/openapi/platform/models/workflows.d.ts +104 -70
- package/lib/openapi/platform/models/workflows.js +12 -0
- package/lib/openapi/platform/models/workflows.js.map +1 -1
- package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +12 -9
- package/lib/openapi/platform/services/AnnouncementBannerService.js +10 -7
- package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
- package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +12 -5
- package/lib/openapi/platform/services/AppDataPoliciesService.js +13 -6
- package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
- package/lib/openapi/platform/services/AppMigrationService.d.ts +13 -6
- package/lib/openapi/platform/services/AppMigrationService.js +12 -6
- package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
- package/lib/openapi/platform/services/AppPropertiesService.d.ts +43 -19
- package/lib/openapi/platform/services/AppPropertiesService.js +44 -20
- package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/ApplicationRolesService.d.ts +20 -21
- package/lib/openapi/platform/services/ApplicationRolesService.js +21 -22
- package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
- package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -3
- package/lib/openapi/platform/services/AuditRecordsService.js +8 -4
- package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
- package/lib/openapi/platform/services/AvatarsService.d.ts +45 -38
- package/lib/openapi/platform/services/AvatarsService.js +45 -38
- package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
- package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +16 -22
- package/lib/openapi/platform/services/ClassificationLevelsService.js +17 -23
- package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
- package/lib/openapi/platform/services/DashboardsService.d.ts +140 -146
- package/lib/openapi/platform/services/DashboardsService.js +122 -130
- package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
- package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -4
- package/lib/openapi/platform/services/DynamicModulesService.js +7 -5
- package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/platform/services/FilterSharingService.d.ts +73 -96
- package/lib/openapi/platform/services/FilterSharingService.js +70 -95
- package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
- package/lib/openapi/platform/services/FiltersService.d.ts +179 -258
- package/lib/openapi/platform/services/FiltersService.js +174 -256
- package/lib/openapi/platform/services/FiltersService.js.map +1 -1
- package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +9 -7
- package/lib/openapi/platform/services/GroupAndUserPickerService.js +10 -8
- package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
- package/lib/openapi/platform/services/GroupsService.d.ts +43 -27
- package/lib/openapi/platform/services/GroupsService.js +40 -26
- package/lib/openapi/platform/services/GroupsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +174 -170
- package/lib/openapi/platform/services/IssueAttachmentsService.js +175 -171
- package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +36 -20
- package/lib/openapi/platform/services/IssueBulkOperationsService.js +35 -20
- package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +20 -10
- package/lib/openapi/platform/services/IssueCommentPropertiesService.js +21 -11
- package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCommentsService.d.ts +66 -81
- package/lib/openapi/platform/services/IssueCommentsService.js +59 -71
- package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -5
- package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +10 -5
- package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +72 -38
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +55 -27
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +51 -29
- package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +48 -28
- package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +38 -17
- package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +33 -15
- package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +9 -5
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +6 -4
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +78 -35
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +63 -28
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueFieldsService.d.ts +57 -47
- package/lib/openapi/platform/services/IssueFieldsService.js +52 -42
- package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +30 -12
- package/lib/openapi/platform/services/IssueLinkTypesService.js +27 -11
- package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueLinksService.d.ts +21 -24
- package/lib/openapi/platform/services/IssueLinksService.js +20 -24
- package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +8 -4
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +9 -5
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +64 -70
- package/lib/openapi/platform/services/IssueNotificationSchemesService.js +59 -68
- package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +45 -27
- package/lib/openapi/platform/services/IssuePrioritiesService.js +38 -24
- package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssuePropertiesService.d.ts +34 -17
- package/lib/openapi/platform/services/IssuePropertiesService.js +29 -15
- package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +42 -28
- package/lib/openapi/platform/services/IssueRemoteLinksService.js +39 -27
- package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
- package/lib/openapi/platform/services/IssueResolutionsService.d.ts +40 -17
- package/lib/openapi/platform/services/IssueResolutionsService.js +33 -14
- package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSearchService.d.ts +86 -139
- package/lib/openapi/platform/services/IssueSearchService.js +81 -137
- package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +20 -19
- package/lib/openapi/platform/services/IssueSecurityLevelService.js +21 -20
- package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +78 -40
- package/lib/openapi/platform/services/IssueSecuritySchemesService.js +65 -34
- package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +22 -11
- package/lib/openapi/platform/services/IssueTypePropertiesService.js +21 -11
- package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +53 -34
- package/lib/openapi/platform/services/IssueTypeSchemesService.js +42 -26
- package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +56 -27
- package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +45 -22
- package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueTypesService.d.ts +53 -42
- package/lib/openapi/platform/services/IssueTypesService.js +50 -41
- package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueVotesService.d.ts +17 -17
- package/lib/openapi/platform/services/IssueVotesService.js +18 -18
- package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueWatchersService.d.ts +20 -10
- package/lib/openapi/platform/services/IssueWatchersService.js +19 -10
- package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
- package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +20 -13
- package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +21 -14
- package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueWorklogsService.d.ts +69 -67
- package/lib/openapi/platform/services/IssueWorklogsService.js +64 -65
- package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
- package/lib/openapi/platform/services/IssuesService.d.ts +226 -228
- package/lib/openapi/platform/services/IssuesService.js +197 -209
- package/lib/openapi/platform/services/IssuesService.js.map +1 -1
- package/lib/openapi/platform/services/JiraExpressionsService.d.ts +25 -24
- package/lib/openapi/platform/services/JiraExpressionsService.js +21 -20
- package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
- package/lib/openapi/platform/services/JiraSettingsService.d.ts +21 -9
- package/lib/openapi/platform/services/JiraSettingsService.js +20 -9
- package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
- package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +13 -9
- package/lib/openapi/platform/services/JqlFunctionsAppsService.js +12 -9
- package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
- package/lib/openapi/platform/services/JqlService.d.ts +55 -43
- package/lib/openapi/platform/services/JqlService.js +45 -33
- package/lib/openapi/platform/services/JqlService.js.map +1 -1
- package/lib/openapi/platform/services/LabelsService.d.ts +7 -3
- package/lib/openapi/platform/services/LabelsService.js +8 -4
- package/lib/openapi/platform/services/LabelsService.js.map +1 -1
- package/lib/openapi/platform/services/LicenseMetricsService.d.ts +17 -7
- package/lib/openapi/platform/services/LicenseMetricsService.js +18 -8
- package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
- package/lib/openapi/platform/services/MyselfService.d.ts +28 -21
- package/lib/openapi/platform/services/MyselfService.js +27 -21
- package/lib/openapi/platform/services/MyselfService.js.map +1 -1
- package/lib/openapi/platform/services/PermissionSchemesService.d.ts +67 -55
- package/lib/openapi/platform/services/PermissionSchemesService.js +62 -53
- package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/PermissionsService.d.ts +23 -11
- package/lib/openapi/platform/services/PermissionsService.js +22 -11
- package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
- package/lib/openapi/platform/services/PrioritySchemesService.d.ts +60 -26
- package/lib/openapi/platform/services/PrioritySchemesService.js +54 -23
- package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +27 -24
- package/lib/openapi/platform/services/ProjectAvatarsService.js +26 -24
- package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +30 -12
- package/lib/openapi/platform/services/ProjectCategoriesService.js +27 -11
- package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +17 -14
- package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +15 -12
- package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectComponentsService.d.ts +198 -321
- package/lib/openapi/platform/services/ProjectComponentsService.js +195 -320
- package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectEmailService.d.ts +11 -5
- package/lib/openapi/platform/services/ProjectEmailService.js +10 -5
- package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +23 -22
- package/lib/openapi/platform/services/ProjectFeaturesService.js +22 -22
- package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +19 -7
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +20 -8
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +32 -23
- package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +31 -23
- package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +22 -11
- package/lib/openapi/platform/services/ProjectPropertiesService.js +21 -11
- package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +47 -33
- package/lib/openapi/platform/services/ProjectRoleActorsService.js +42 -31
- package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectRolesService.d.ts +67 -43
- package/lib/openapi/platform/services/ProjectRolesService.js +62 -41
- package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectTypesService.d.ts +29 -21
- package/lib/openapi/platform/services/ProjectTypesService.js +30 -22
- package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectVersionsService.d.ts +87 -36
- package/lib/openapi/platform/services/ProjectVersionsService.js +78 -32
- package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectsService.d.ts +207 -313
- package/lib/openapi/platform/services/ProjectsService.js +203 -310
- package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenSchemesService.d.ts +22 -11
- package/lib/openapi/platform/services/ScreenSchemesService.js +19 -10
- package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +15 -7
- package/lib/openapi/platform/services/ScreenTabFieldsService.js +14 -7
- package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenTabsService.d.ts +27 -11
- package/lib/openapi/platform/services/ScreenTabsService.js +26 -11
- package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
- package/lib/openapi/platform/services/ScreensService.d.ts +42 -28
- package/lib/openapi/platform/services/ScreensService.js +38 -25
- package/lib/openapi/platform/services/ScreensService.js.map +1 -1
- package/lib/openapi/platform/services/ServerInfoService.d.ts +6 -3
- package/lib/openapi/platform/services/ServerInfoService.js +7 -4
- package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
- package/lib/openapi/platform/services/ServiceRegistryService.d.ts +5 -3
- package/lib/openapi/platform/services/ServiceRegistryService.js +4 -3
- package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
- package/lib/openapi/platform/services/StatusService.d.ts +29 -15
- package/lib/openapi/platform/services/StatusService.js +26 -14
- package/lib/openapi/platform/services/StatusService.js.map +1 -1
- package/lib/openapi/platform/services/TasksService.d.ts +9 -4
- package/lib/openapi/platform/services/TasksService.js +10 -5
- package/lib/openapi/platform/services/TasksService.js.map +1 -1
- package/lib/openapi/platform/services/TimeTrackingService.d.ts +31 -14
- package/lib/openapi/platform/services/TimeTrackingService.js +27 -12
- package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
- package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +26 -19
- package/lib/openapi/platform/services/UiModificationsAppsService.js +23 -18
- package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
- package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -10
- package/lib/openapi/platform/services/UserPropertiesService.js +21 -11
- package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/UserSearchService.d.ts +95 -126
- package/lib/openapi/platform/services/UserSearchService.js +96 -127
- package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
- package/lib/openapi/platform/services/UsersService.d.ts +97 -95
- package/lib/openapi/platform/services/UsersService.js +96 -95
- package/lib/openapi/platform/services/UsersService.js.map +1 -1
- package/lib/openapi/platform/services/WebhooksService.d.ts +35 -18
- package/lib/openapi/platform/services/WebhooksService.js +30 -16
- package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +133 -147
- package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +124 -143
- package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +13 -10
- package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +12 -10
- package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +121 -82
- package/lib/openapi/platform/services/WorkflowSchemesService.js +106 -75
- package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +12 -5
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +13 -6
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +12 -5
- package/lib/openapi/platform/services/WorkflowStatusesService.js +13 -6
- package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +25 -10
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +22 -9
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +25 -13
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +22 -12
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowsService.d.ts +791 -693
- package/lib/openapi/platform/services/WorkflowsService.js +754 -644
- package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
- package/lib/openapi/platform/validationSchemaStorage.d.ts +1 -1
- package/lib/openapi/platform/validationSchemaStorage.js +1 -1
- package/lib/openapi/platform/validationSchemaStorage.js.map +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +3 -3
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +3 -3
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js.map +1 -1
- package/lib/openapi/serviceManagement/models/assets.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/common.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/customer.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/info.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/knowledgebase.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/organization.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/request.d.ts +1 -1
- package/lib/openapi/serviceManagement/models/servicedesk.d.ts +4 -7
- package/lib/openapi/serviceManagement/models/servicedesk.js.map +1 -1
- package/lib/openapi/serviceManagement/services/AssetsService.d.ts +11 -8
- package/lib/openapi/serviceManagement/services/AssetsService.js +12 -9
- package/lib/openapi/serviceManagement/services/AssetsService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/CustomerService.d.ts +17 -20
- package/lib/openapi/serviceManagement/services/CustomerService.js +16 -20
- package/lib/openapi/serviceManagement/services/CustomerService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/InfoService.d.ts +6 -3
- package/lib/openapi/serviceManagement/services/InfoService.js +7 -4
- package/lib/openapi/serviceManagement/services/InfoService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.d.ts +11 -11
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.js +12 -12
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/OrganizationService.d.ts +108 -104
- package/lib/openapi/serviceManagement/services/OrganizationService.js +97 -99
- package/lib/openapi/serviceManagement/services/OrganizationService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/RequestService.d.ts +420 -578
- package/lib/openapi/serviceManagement/services/RequestService.js +405 -571
- package/lib/openapi/serviceManagement/services/RequestService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/RequesttypeService.d.ts +25 -39
- package/lib/openapi/serviceManagement/services/RequesttypeService.js +26 -40
- package/lib/openapi/serviceManagement/services/RequesttypeService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/ServicedeskService.d.ts +195 -215
- package/lib/openapi/serviceManagement/services/ServicedeskService.js +190 -213
- package/lib/openapi/serviceManagement/services/ServicedeskService.js.map +1 -1
- package/lib/openapi/serviceManagement/validationSchemaStorage.d.ts +1 -1
- package/lib/openapi/serviceManagement/validationSchemaStorage.js +1 -1
- package/lib/openapi/serviceManagement/validationSchemaStorage.js.map +1 -1
- package/lib/openapi/software/BaseJiraSoftwareApiClient.d.ts +2 -2
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js +2 -2
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
- package/lib/openapi/software/models/board.d.ts +4 -7
- package/lib/openapi/software/models/board.js.map +1 -1
- package/lib/openapi/software/models/builds.d.ts +39 -20
- package/lib/openapi/software/models/builds.js.map +1 -1
- package/lib/openapi/software/models/common.d.ts +8 -6
- package/lib/openapi/software/models/common.js.map +1 -1
- package/lib/openapi/software/models/deployments.d.ts +37 -18
- package/lib/openapi/software/models/deployments.js.map +1 -1
- package/lib/openapi/software/models/devOpsComponents.d.ts +7 -4
- package/lib/openapi/software/models/devOpsComponents.js.map +1 -1
- package/lib/openapi/software/models/developmentInformation.d.ts +107 -55
- package/lib/openapi/software/models/developmentInformation.js.map +1 -1
- package/lib/openapi/software/models/epic.d.ts +1 -1
- package/lib/openapi/software/models/featureFlags.d.ts +17 -9
- package/lib/openapi/software/models/featureFlags.js.map +1 -1
- package/lib/openapi/software/models/issue.d.ts +1 -1
- package/lib/openapi/software/models/operations.d.ts +61 -31
- package/lib/openapi/software/models/operations.js.map +1 -1
- package/lib/openapi/software/models/remoteLinks.d.ts +37 -19
- package/lib/openapi/software/models/remoteLinks.js.map +1 -1
- package/lib/openapi/software/models/securityInformation.d.ts +53 -27
- package/lib/openapi/software/models/securityInformation.js.map +1 -1
- package/lib/openapi/software/models/sprint.d.ts +1 -1
- package/lib/openapi/software/services/BacklogService.d.ts +14 -8
- package/lib/openapi/software/services/BacklogService.js +11 -7
- package/lib/openapi/software/services/BacklogService.js.map +1 -1
- package/lib/openapi/software/services/BoardService.d.ts +200 -204
- package/lib/openapi/software/services/BoardService.js +197 -203
- package/lib/openapi/software/services/BoardService.js.map +1 -1
- package/lib/openapi/software/services/BuildsService.d.ts +11 -9
- package/lib/openapi/software/services/BuildsService.js +12 -10
- package/lib/openapi/software/services/BuildsService.js.map +1 -1
- package/lib/openapi/software/services/DeploymentsService.d.ts +13 -13
- package/lib/openapi/software/services/DeploymentsService.js +14 -14
- package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
- package/lib/openapi/software/services/DevOpsComponentsService.d.ts +33 -20
- package/lib/openapi/software/services/DevOpsComponentsService.js +12 -10
- package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
- package/lib/openapi/software/services/DevelopmentInformationService.d.ts +14 -9
- package/lib/openapi/software/services/DevelopmentInformationService.js +15 -10
- package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
- package/lib/openapi/software/services/EpicService.d.ts +67 -76
- package/lib/openapi/software/services/EpicService.js +60 -73
- package/lib/openapi/software/services/EpicService.js.map +1 -1
- package/lib/openapi/software/services/FeatureFlagsService.d.ts +11 -9
- package/lib/openapi/software/services/FeatureFlagsService.js +12 -10
- package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
- package/lib/openapi/software/services/IssueService.d.ts +45 -44
- package/lib/openapi/software/services/IssueService.js +42 -43
- package/lib/openapi/software/services/IssueService.js.map +1 -1
- package/lib/openapi/software/services/OperationsService.d.ts +66 -38
- package/lib/openapi/software/services/OperationsService.js +23 -17
- package/lib/openapi/software/services/OperationsService.js.map +1 -1
- package/lib/openapi/software/services/RemoteLinksService.d.ts +18 -13
- package/lib/openapi/software/services/RemoteLinksService.js +12 -10
- package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
- package/lib/openapi/software/services/SecurityInformationService.d.ts +19 -13
- package/lib/openapi/software/services/SecurityInformationService.js +20 -14
- package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
- package/lib/openapi/software/services/SprintService.d.ts +79 -55
- package/lib/openapi/software/services/SprintService.js +70 -51
- package/lib/openapi/software/services/SprintService.js.map +1 -1
- package/lib/openapi/software/validationSchemaStorage.d.ts +1 -1
- package/lib/openapi/software/validationSchemaStorage.js +1 -1
- package/lib/openapi/software/validationSchemaStorage.js.map +1 -1
- package/package.json +3 -3
- package/lib/openapi/platform/core/CommonHttpClient.js +0 -390
- package/lib/openapi/platform/core/CommonHttpClient.js.map +0 -1
- package/lib/openapi/platform/core/CommonHttpService.d.ts +0 -9
- package/lib/openapi/platform/core/CommonHttpService.js.map +0 -1
- package/lib/openapi/platform/core/CommonValidationSchemaStorage.js.map +0 -1
- package/lib/openapi/serviceManagement/core/CommonHttpClient.d.ts +0 -196
- package/lib/openapi/serviceManagement/core/CommonHttpClient.js.map +0 -1
- package/lib/openapi/serviceManagement/core/CommonHttpService.d.ts +0 -9
- package/lib/openapi/serviceManagement/core/CommonHttpService.js +0 -29
- package/lib/openapi/serviceManagement/core/CommonHttpService.js.map +0 -1
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.d.ts +0 -35
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js +0 -65
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js.map +0 -1
- package/lib/openapi/software/core/CommonHttpClient.d.ts +0 -196
- package/lib/openapi/software/core/CommonHttpClient.js +0 -390
- package/lib/openapi/software/core/CommonHttpClient.js.map +0 -1
- package/lib/openapi/software/core/CommonHttpService.js +0 -29
- package/lib/openapi/software/core/CommonHttpService.js.map +0 -1
- package/lib/openapi/software/core/CommonValidationSchemaStorage.d.ts +0 -35
- package/lib/openapi/software/core/CommonValidationSchemaStorage.js +0 -65
- package/lib/openapi/software/core/CommonValidationSchemaStorage.js.map +0 -1
- /package/lib/openapi/{platform/core → core}/CommonValidationSchemaStorage.d.ts +0 -0
- /package/lib/openapi/{platform/core → core}/CommonValidationSchemaStorage.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type CreateWorkflowDetails, type DeprecatedWorkflow, type PageBeanWorkflow, type WorkflowCapabilities, type WorkflowCreateRequest, type WorkflowCreateResponse, type WorkflowCreateValidateRequest, type WorkflowIds, type WorkflowReadRequest, type WorkflowReadResponse, type WorkflowUpdateRequest, type WorkflowUpdateResponse, type WorkflowUpdateValidateRequestBean, type WorkflowValidationErrorList } from "../models/workflows";
|
|
3
3
|
/**
|
|
4
4
|
* This resource represents workflows. Use it to:
|
|
@@ -27,32 +27,35 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
27
27
|
* ##### Always false condition #####
|
|
28
28
|
*
|
|
29
29
|
* A condition that always fails.
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
30
|
+
* ```
|
|
31
|
+
* {
|
|
32
|
+
* "type": "AlwaysFalseCondition"
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
34
35
|
*
|
|
35
36
|
* ##### Block transition until approval #####
|
|
36
37
|
*
|
|
37
38
|
* A condition that blocks issue transition if there is a pending approval.
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
39
|
+
* ```
|
|
40
|
+
* {
|
|
41
|
+
* "type": "BlockInProgressApprovalCondition"
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
42
44
|
*
|
|
43
45
|
* ##### Compare number custom field condition #####
|
|
44
46
|
*
|
|
45
47
|
* A condition that allows transition if a comparison between a number custom
|
|
46
48
|
* field and a value is true.
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
49
|
+
* ```
|
|
50
|
+
* {
|
|
51
|
+
* "type": "CompareNumberCFCondition",
|
|
52
|
+
* "configuration": {
|
|
53
|
+
* "comparator": "=",
|
|
54
|
+
* "fieldId": "customfield_10029",
|
|
55
|
+
* "fieldValue": 2
|
|
56
|
+
* }
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
56
59
|
*
|
|
57
60
|
* * `comparator` One of the supported comparator: `=`, `>`, and `<`.
|
|
58
61
|
* * `fieldId` The custom numeric field ID. Allowed field types:
|
|
@@ -65,46 +68,51 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
65
68
|
*
|
|
66
69
|
* A condition that hides a transition from users. The transition can only be
|
|
67
70
|
* triggered from a workflow function or REST API operation.
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
71
|
+
* ```
|
|
72
|
+
* {
|
|
73
|
+
* "type": "RemoteOnlyCondition"
|
|
74
|
+
* }
|
|
75
|
+
* ```
|
|
72
76
|
*
|
|
73
77
|
* ##### Only assignee condition #####
|
|
74
78
|
*
|
|
75
79
|
* A condition that allows only the assignee to execute a transition.
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
+
* ```
|
|
81
|
+
* {
|
|
82
|
+
* "type": "AllowOnlyAssignee"
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
80
85
|
*
|
|
81
86
|
* ##### Only Bamboo notifications workflow condition (deprecated) #####
|
|
82
87
|
*
|
|
83
88
|
* A condition that makes the transition available only to Bamboo build
|
|
84
89
|
* notifications.
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
90
|
+
* ```
|
|
91
|
+
* {
|
|
92
|
+
* "type": "OnlyBambooNotificationsCondition"
|
|
93
|
+
* }
|
|
94
|
+
* ```
|
|
89
95
|
*
|
|
90
96
|
* ##### Only reporter condition #####
|
|
91
97
|
*
|
|
92
98
|
* A condition that allows only the reporter to execute a transition.
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
99
|
+
* ```
|
|
100
|
+
* {
|
|
101
|
+
* "type": "AllowOnlyReporter"
|
|
102
|
+
* }
|
|
103
|
+
* ```
|
|
97
104
|
*
|
|
98
105
|
* ##### Permission condition #####
|
|
99
106
|
*
|
|
100
107
|
* A condition that allows only users with a permission to execute a transition.
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
+
* ```
|
|
109
|
+
* {
|
|
110
|
+
* "type": "PermissionCondition",
|
|
111
|
+
* "configuration": {
|
|
112
|
+
* "permissionKey": "BROWSE_PROJECTS"
|
|
113
|
+
* }
|
|
114
|
+
* }
|
|
115
|
+
* ```
|
|
108
116
|
*
|
|
109
117
|
* * `permissionKey` The permission required to perform the transition. Allowed
|
|
110
118
|
* values:
|
|
@@ -115,19 +123,20 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
115
123
|
*
|
|
116
124
|
* A condition that allows a transition based on whether an issue has or has not
|
|
117
125
|
* transitioned through a status.
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
126
|
+
* ```
|
|
127
|
+
* {
|
|
128
|
+
* "type": "PreviousStatusCondition",
|
|
129
|
+
* "configuration": {
|
|
130
|
+
* "ignoreLoopTransitions": true,
|
|
131
|
+
* "includeCurrentStatus": true,
|
|
132
|
+
* "mostRecentStatusOnly": true,
|
|
133
|
+
* "reverseCondition": true,
|
|
134
|
+
* "previousStatus": {
|
|
135
|
+
* "id": "5"
|
|
136
|
+
* }
|
|
137
|
+
* }
|
|
138
|
+
* }
|
|
139
|
+
* ```
|
|
131
140
|
*
|
|
132
141
|
* By default this condition allows the transition if the status, as defined by
|
|
133
142
|
* its ID in the `previousStatus` object, matches any previous issue status,
|
|
@@ -145,18 +154,19 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
145
154
|
*
|
|
146
155
|
* A condition that prevents a user to perform the transition, if the user has
|
|
147
156
|
* already performed a transition on the issue.
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
157
|
+
* ```
|
|
158
|
+
* {
|
|
159
|
+
* "type": "SeparationOfDutiesCondition",
|
|
160
|
+
* "configuration": {
|
|
161
|
+
* "fromStatus": {
|
|
162
|
+
* "id": "5"
|
|
163
|
+
* },
|
|
164
|
+
* "toStatus": {
|
|
165
|
+
* "id": "6"
|
|
166
|
+
* }
|
|
167
|
+
* }
|
|
168
|
+
* }
|
|
169
|
+
* ```
|
|
160
170
|
*
|
|
161
171
|
* * `fromStatus` OPTIONAL. An object containing the ID of the source status of
|
|
162
172
|
* the transition that is blocked. If omitted any transition to `toStatus` is
|
|
@@ -168,20 +178,21 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
168
178
|
*
|
|
169
179
|
* A condition that blocks transition on a parent issue if any of its subtasks are
|
|
170
180
|
* in any of one or more statuses.
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
* }
|
|
182
|
-
* ]
|
|
181
|
+
* ```
|
|
182
|
+
* {
|
|
183
|
+
* "type": "SubTaskBlockingCondition",
|
|
184
|
+
* "configuration": {
|
|
185
|
+
* "statuses": [
|
|
186
|
+
* {
|
|
187
|
+
* "id": "1"
|
|
188
|
+
* },
|
|
189
|
+
* {
|
|
190
|
+
* "id": "3"
|
|
183
191
|
* }
|
|
184
|
-
*
|
|
192
|
+
* ]
|
|
193
|
+
* }
|
|
194
|
+
* }
|
|
195
|
+
* ```
|
|
185
196
|
*
|
|
186
197
|
* * `statuses` A list of objects containing status IDs.
|
|
187
198
|
*
|
|
@@ -189,16 +200,17 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
189
200
|
*
|
|
190
201
|
* A condition that allows users belonging to any group from a list of groups to
|
|
191
202
|
* execute a transition.
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
203
|
+
* ```
|
|
204
|
+
* {
|
|
205
|
+
* "type": "UserInAnyGroupCondition",
|
|
206
|
+
* "configuration": {
|
|
207
|
+
* "groups": [
|
|
208
|
+
* "administrators",
|
|
209
|
+
* "atlassian-addons-admin"
|
|
210
|
+
* ]
|
|
211
|
+
* }
|
|
212
|
+
* }
|
|
213
|
+
* ```
|
|
202
214
|
*
|
|
203
215
|
* * `groups` A list of group names.
|
|
204
216
|
*
|
|
@@ -206,26 +218,27 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
206
218
|
*
|
|
207
219
|
* A condition that allows only users with at least one project roles from a list
|
|
208
220
|
* of project roles to execute a transition.
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
* }
|
|
226
|
-
* ]
|
|
221
|
+
* ```
|
|
222
|
+
* {
|
|
223
|
+
* "type": "InAnyProjectRoleCondition",
|
|
224
|
+
* "configuration": {
|
|
225
|
+
* "projectRoles": [
|
|
226
|
+
* {
|
|
227
|
+
* "id": "10002"
|
|
228
|
+
* },
|
|
229
|
+
* {
|
|
230
|
+
* "id": "10003"
|
|
231
|
+
* },
|
|
232
|
+
* {
|
|
233
|
+
* "id": "10012"
|
|
234
|
+
* },
|
|
235
|
+
* {
|
|
236
|
+
* "id": "10013"
|
|
227
237
|
* }
|
|
228
|
-
*
|
|
238
|
+
* ]
|
|
239
|
+
* }
|
|
240
|
+
* }
|
|
241
|
+
* ```
|
|
229
242
|
*
|
|
230
243
|
* * `projectRoles` A list of objects containing project role IDs.
|
|
231
244
|
*
|
|
@@ -233,14 +246,15 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
233
246
|
*
|
|
234
247
|
* A condition that allows only users listed in a given custom field to execute
|
|
235
248
|
* the transition.
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
249
|
+
* ```
|
|
250
|
+
* {
|
|
251
|
+
* "type": "UserIsInCustomFieldCondition",
|
|
252
|
+
* "configuration": {
|
|
253
|
+
* "allowUserInField": false,
|
|
254
|
+
* "fieldId": "customfield_10010"
|
|
255
|
+
* }
|
|
256
|
+
* }
|
|
257
|
+
* ```
|
|
244
258
|
*
|
|
245
259
|
* * `allowUserInField` If `true` only a user who is listed in `fieldId` can
|
|
246
260
|
* perform the transition, otherwise, only a user who is not listed in `fieldId`
|
|
@@ -250,13 +264,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
250
264
|
* ##### User is in group condition #####
|
|
251
265
|
*
|
|
252
266
|
* A condition that allows users belonging to a group to execute a transition.
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
267
|
+
* ```
|
|
268
|
+
* {
|
|
269
|
+
* "type": "UserInGroupCondition",
|
|
270
|
+
* "configuration": {
|
|
271
|
+
* "group": "administrators"
|
|
272
|
+
* }
|
|
273
|
+
* }
|
|
274
|
+
* ```
|
|
260
275
|
*
|
|
261
276
|
* * `group` The name of the group.
|
|
262
277
|
*
|
|
@@ -264,13 +279,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
264
279
|
*
|
|
265
280
|
* A condition that allows users belonging to a group specified in a custom field
|
|
266
281
|
* to execute a transition.
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
282
|
+
* ```
|
|
283
|
+
* {
|
|
284
|
+
* "type": "InGroupCFCondition",
|
|
285
|
+
* "configuration": {
|
|
286
|
+
* "fieldId": "customfield_10012"
|
|
287
|
+
* }
|
|
288
|
+
* }
|
|
289
|
+
* ```
|
|
274
290
|
*
|
|
275
291
|
* * `fieldId` The ID of the field. Allowed field types:
|
|
276
292
|
*
|
|
@@ -285,15 +301,16 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
285
301
|
* ##### User is in project role condition #####
|
|
286
302
|
*
|
|
287
303
|
* A condition that allows users with a project role to execute a transition.
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
* }
|
|
295
|
-
* }
|
|
304
|
+
* ```
|
|
305
|
+
* {
|
|
306
|
+
* "type": "InProjectRoleCondition",
|
|
307
|
+
* "configuration": {
|
|
308
|
+
* "projectRole": {
|
|
309
|
+
* "id": "10002"
|
|
296
310
|
* }
|
|
311
|
+
* }
|
|
312
|
+
* }
|
|
313
|
+
* ```
|
|
297
314
|
*
|
|
298
315
|
* * `projectRole` An object containing the ID of a project role.
|
|
299
316
|
*
|
|
@@ -301,17 +318,18 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
301
318
|
*
|
|
302
319
|
* A conditions that allows a transition to execute if the value of a field is
|
|
303
320
|
* equal to a constant value or simply set.
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
321
|
+
* ```
|
|
322
|
+
* {
|
|
323
|
+
* "type": "ValueFieldCondition",
|
|
324
|
+
* "configuration": {
|
|
325
|
+
* "fieldId": "assignee",
|
|
326
|
+
* "fieldValue":
|
|
310
327
|
* "qm:6e1ecee6-8e64-4db6-8c85-916bb3275f51:54b56885-2bd2-4381-8239-78263442520f",
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
328
|
+
* "comparisonType": "NUMBER",
|
|
329
|
+
* "comparator": "="
|
|
330
|
+
* }
|
|
331
|
+
* }
|
|
332
|
+
* ```
|
|
315
333
|
*
|
|
316
334
|
* * `fieldId` The ID of a field used in the comparison.
|
|
317
335
|
* * `fieldValue` The expected value of the field.
|
|
@@ -339,17 +357,18 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
339
357
|
* ##### Date field validator #####
|
|
340
358
|
*
|
|
341
359
|
* A validator that compares two dates.
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
360
|
+
* ```
|
|
361
|
+
* {
|
|
362
|
+
* "type": "DateFieldValidator",
|
|
363
|
+
* "configuration": {
|
|
364
|
+
* "comparator": ">",
|
|
365
|
+
* "date1": "updated",
|
|
366
|
+
* "date2": "created",
|
|
367
|
+
* "expression": "1d",
|
|
368
|
+
* "includeTime": true
|
|
369
|
+
* }
|
|
370
|
+
* }
|
|
371
|
+
* ```
|
|
353
372
|
*
|
|
354
373
|
* * `comparator` One of the supported comparator: `>`, `>=`, `=`, `<=`, `<`, or
|
|
355
374
|
* `!=`.
|
|
@@ -386,15 +405,16 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
386
405
|
*
|
|
387
406
|
* A validator that checks that a date falls on or after a reference date and
|
|
388
407
|
* before or on the reference date plus a number of days.
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
*
|
|
392
|
-
*
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
*
|
|
396
|
-
* }
|
|
408
|
+
* ```
|
|
409
|
+
* {
|
|
410
|
+
* "type": "WindowsDateValidator",
|
|
411
|
+
* "configuration": {
|
|
412
|
+
* "date1": "customfield_10009",
|
|
413
|
+
* "date2": "created",
|
|
414
|
+
* "windowsDays": 5
|
|
397
415
|
* }
|
|
416
|
+
* }
|
|
417
|
+
* ```
|
|
398
418
|
*
|
|
399
419
|
* * `date1` The date field to validate. Allowed field types:
|
|
400
420
|
*
|
|
@@ -422,19 +442,20 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
422
442
|
*
|
|
423
443
|
* A validator that checks fields are not empty. By default, if a field is not
|
|
424
444
|
* included in the current context it's ignored and not validated.
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
* }
|
|
445
|
+
* ```
|
|
446
|
+
* {
|
|
447
|
+
* "type": "FieldRequiredValidator",
|
|
448
|
+
* "configuration": {
|
|
449
|
+
* "ignoreContext": true,
|
|
450
|
+
* "errorMessage": "Hey",
|
|
451
|
+
* "fieldIds": [
|
|
452
|
+
* "versions",
|
|
453
|
+
* "customfield_10037",
|
|
454
|
+
* "customfield_10003"
|
|
455
|
+
* ]
|
|
437
456
|
* }
|
|
457
|
+
* }
|
|
458
|
+
* ```
|
|
438
459
|
*
|
|
439
460
|
* * `ignoreContext` If `true`, then the context is ignored and all the fields
|
|
440
461
|
* are validated.
|
|
@@ -447,18 +468,19 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
447
468
|
*
|
|
448
469
|
* A validator that checks that a field value is changed. However, this validation
|
|
449
470
|
* can be ignored for users from a list of groups.
|
|
450
|
-
*
|
|
451
|
-
*
|
|
452
|
-
*
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
*
|
|
456
|
-
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
* }
|
|
471
|
+
* ```
|
|
472
|
+
* {
|
|
473
|
+
* "type": "FieldChangedValidator",
|
|
474
|
+
* "configuration": {
|
|
475
|
+
* "fieldId": "comment",
|
|
476
|
+
* "errorMessage": "Hey",
|
|
477
|
+
* "exemptedGroups": [
|
|
478
|
+
* "administrators",
|
|
479
|
+
* "atlassian-addons-admin"
|
|
480
|
+
* ]
|
|
461
481
|
* }
|
|
482
|
+
* }
|
|
483
|
+
* ```
|
|
462
484
|
*
|
|
463
485
|
* * `fieldId` The ID of a field.
|
|
464
486
|
* * `errorMessage` OPTIONAL. The error message displayed if the field is not
|
|
@@ -469,14 +491,15 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
469
491
|
*
|
|
470
492
|
* A validator that checks that a multi-select field has only one value.
|
|
471
493
|
* Optionally, the validation can ignore values copied from subtasks.
|
|
472
|
-
*
|
|
473
|
-
*
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
*
|
|
478
|
-
* }
|
|
494
|
+
* ```
|
|
495
|
+
* {
|
|
496
|
+
* "type": "FieldHasSingleValueValidator",
|
|
497
|
+
* "configuration": {
|
|
498
|
+
* "fieldId": "attachment,
|
|
499
|
+
* "excludeSubtasks": true
|
|
479
500
|
* }
|
|
501
|
+
* }
|
|
502
|
+
* ```
|
|
480
503
|
*
|
|
481
504
|
* * `fieldId` The ID of a field.
|
|
482
505
|
* * `excludeSubtasks` If `true`, then values copied from subtasks are ignored.
|
|
@@ -485,33 +508,35 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
485
508
|
*
|
|
486
509
|
* A validator that checks the status of the parent issue of a subtask. Ìf the
|
|
487
510
|
* issue is not a subtask, no validation is performed.
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
*
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
*
|
|
495
|
-
*
|
|
496
|
-
*
|
|
497
|
-
*
|
|
498
|
-
*
|
|
499
|
-
*
|
|
500
|
-
* }
|
|
511
|
+
* ```
|
|
512
|
+
* {
|
|
513
|
+
* "type": "ParentStatusValidator",
|
|
514
|
+
* "configuration": {
|
|
515
|
+
* "parentStatuses": [
|
|
516
|
+
* {
|
|
517
|
+
* "id":"1"
|
|
518
|
+
* },
|
|
519
|
+
* {
|
|
520
|
+
* "id":"2"
|
|
521
|
+
* }
|
|
522
|
+
* ]
|
|
501
523
|
* }
|
|
524
|
+
* }
|
|
525
|
+
* ```
|
|
502
526
|
*
|
|
503
527
|
* * `parentStatus` The list of required parent issue statuses.
|
|
504
528
|
*
|
|
505
529
|
* ##### Permission validator #####
|
|
506
530
|
*
|
|
507
531
|
* A validator that checks the user has a permission.
|
|
508
|
-
*
|
|
509
|
-
*
|
|
510
|
-
*
|
|
511
|
-
*
|
|
512
|
-
*
|
|
513
|
-
*
|
|
514
|
-
*
|
|
532
|
+
* ```
|
|
533
|
+
* {
|
|
534
|
+
* "type": "PermissionValidator",
|
|
535
|
+
* "configuration": {
|
|
536
|
+
* "permissionKey": "ADMINISTER_PROJECTS"
|
|
537
|
+
* }
|
|
538
|
+
* }
|
|
539
|
+
* ```
|
|
515
540
|
*
|
|
516
541
|
* * `permissionKey` The permission required to perform the transition. Allowed
|
|
517
542
|
* values:
|
|
@@ -521,16 +546,17 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
521
546
|
* ##### Previous status validator #####
|
|
522
547
|
*
|
|
523
548
|
* A validator that checks if the issue has held a status.
|
|
524
|
-
*
|
|
525
|
-
*
|
|
526
|
-
*
|
|
527
|
-
*
|
|
528
|
-
*
|
|
529
|
-
*
|
|
530
|
-
*
|
|
531
|
-
* }
|
|
549
|
+
* ```
|
|
550
|
+
* {
|
|
551
|
+
* "type": "PreviousStatusValidator",
|
|
552
|
+
* "configuration": {
|
|
553
|
+
* "mostRecentStatusOnly": false,
|
|
554
|
+
* "previousStatus": {
|
|
555
|
+
* "id": "15"
|
|
532
556
|
* }
|
|
533
|
-
*
|
|
557
|
+
* }
|
|
558
|
+
* }
|
|
559
|
+
* ```
|
|
534
560
|
*
|
|
535
561
|
* * `mostRecentStatusOnly` If `true`, then only the issue's preceding status
|
|
536
562
|
* (the one immediately before the current status) is checked.
|
|
@@ -539,14 +565,15 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
539
565
|
* ##### Regular expression validator #####
|
|
540
566
|
*
|
|
541
567
|
* A validator that checks the content of a field against a regular expression.
|
|
542
|
-
*
|
|
543
|
-
*
|
|
544
|
-
*
|
|
545
|
-
*
|
|
546
|
-
*
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
568
|
+
* ```
|
|
569
|
+
* {
|
|
570
|
+
* "type": "RegexpFieldValidator",
|
|
571
|
+
* "configuration": {
|
|
572
|
+
* "regExp": "[0-9]",
|
|
573
|
+
* "fieldId": "customfield_10029"
|
|
574
|
+
* }
|
|
575
|
+
* }
|
|
576
|
+
* ```
|
|
550
577
|
*
|
|
551
578
|
* * `regExp`A regular expression.
|
|
552
579
|
* * `fieldId` The ID of a field. Allowed field types:
|
|
@@ -570,15 +597,16 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
570
597
|
* this validator when getting transition rules and can pass it when updating or
|
|
571
598
|
* creating rules, for example, when you want to duplicate the rules from a
|
|
572
599
|
* workflow on a new workflow.
|
|
573
|
-
*
|
|
574
|
-
*
|
|
575
|
-
*
|
|
576
|
-
*
|
|
577
|
-
*
|
|
578
|
-
*
|
|
579
|
-
*
|
|
580
|
-
* }
|
|
600
|
+
* ```
|
|
601
|
+
* {
|
|
602
|
+
* "type": "UserPermissionValidator",
|
|
603
|
+
* "configuration": {
|
|
604
|
+
* "permissionKey": "BROWSE_PROJECTS",
|
|
605
|
+
* "nullAllowed": false,
|
|
606
|
+
* "username": "TestUser"
|
|
581
607
|
* }
|
|
608
|
+
* }
|
|
609
|
+
* ```
|
|
582
610
|
*
|
|
583
611
|
* * `permissionKey` The permission to be validated. Allowed values:
|
|
584
612
|
* [built-in](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions)
|
|
@@ -594,15 +622,16 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
594
622
|
* ##### Fire issue event function #####
|
|
595
623
|
*
|
|
596
624
|
* A post function that fires an event that is processed by the listeners.
|
|
597
|
-
*
|
|
598
|
-
*
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
* }
|
|
604
|
-
* }
|
|
625
|
+
* ```
|
|
626
|
+
* {
|
|
627
|
+
* "type": "FireIssueEventFunction",
|
|
628
|
+
* "configuration": {
|
|
629
|
+
* "event": {
|
|
630
|
+
* "id":"1"
|
|
605
631
|
* }
|
|
632
|
+
* }
|
|
633
|
+
* }
|
|
634
|
+
* ```
|
|
606
635
|
*
|
|
607
636
|
* **Note:** If provided, this post function overrides the default
|
|
608
637
|
* `FireIssueEventFunction`. Can be included once in a transition.
|
|
@@ -613,10 +642,11 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
613
642
|
*
|
|
614
643
|
* A post function that sets issue status to the linked status of the destination
|
|
615
644
|
* workflow status.
|
|
616
|
-
*
|
|
617
|
-
*
|
|
618
|
-
*
|
|
619
|
-
*
|
|
645
|
+
* ```
|
|
646
|
+
* {
|
|
647
|
+
* "type": "UpdateIssueStatusFunction"
|
|
648
|
+
* }
|
|
649
|
+
* ```
|
|
620
650
|
*
|
|
621
651
|
* **Note:** This post function is a default function in global and directed
|
|
622
652
|
* transitions. It can only be added to the initial transition and can only be
|
|
@@ -625,10 +655,11 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
625
655
|
* ##### Create comment #####
|
|
626
656
|
*
|
|
627
657
|
* A post function that adds a comment entered during the transition to an issue.
|
|
628
|
-
*
|
|
629
|
-
*
|
|
630
|
-
*
|
|
631
|
-
*
|
|
658
|
+
* ```
|
|
659
|
+
* {
|
|
660
|
+
* "type": "CreateCommentFunction"
|
|
661
|
+
* }
|
|
662
|
+
* ```
|
|
632
663
|
*
|
|
633
664
|
* **Note:** This post function is a default function in global and directed
|
|
634
665
|
* transitions. It can only be added to the initial transition and can only be
|
|
@@ -637,10 +668,11 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
637
668
|
* ##### Store issue #####
|
|
638
669
|
*
|
|
639
670
|
* A post function that stores updates to an issue.
|
|
640
|
-
*
|
|
641
|
-
*
|
|
642
|
-
*
|
|
643
|
-
*
|
|
671
|
+
* ```
|
|
672
|
+
* {
|
|
673
|
+
* "type": "IssueStoreFunction"
|
|
674
|
+
* }
|
|
675
|
+
* ```
|
|
644
676
|
*
|
|
645
677
|
* **Note:** This post function can only be added to the initial transition and
|
|
646
678
|
* can only be added once.
|
|
@@ -649,10 +681,11 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
649
681
|
*
|
|
650
682
|
* A post function that assigns the issue to the current user if the current user
|
|
651
683
|
* has the `ASSIGNABLE_USER` permission.
|
|
652
|
-
*
|
|
653
|
-
*
|
|
654
|
-
*
|
|
655
|
-
*
|
|
684
|
+
* ```
|
|
685
|
+
* {
|
|
686
|
+
* "type": "AssignToCurrentUserFunction"
|
|
687
|
+
* }
|
|
688
|
+
* ```
|
|
656
689
|
*
|
|
657
690
|
* **Note:** This post function can be included once in a transition.
|
|
658
691
|
*
|
|
@@ -660,33 +693,36 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
660
693
|
*
|
|
661
694
|
* A post function that assigns the issue to the project or component lead
|
|
662
695
|
* developer.
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
*
|
|
696
|
+
* ```
|
|
697
|
+
* {
|
|
698
|
+
* "type": "AssignToLeadFunction"
|
|
699
|
+
* }
|
|
700
|
+
* ```
|
|
667
701
|
*
|
|
668
702
|
* **Note:** This post function can be included once in a transition.
|
|
669
703
|
*
|
|
670
704
|
* ##### Assign to reporter function #####
|
|
671
705
|
*
|
|
672
706
|
* A post function that assigns the issue to the reporter.
|
|
673
|
-
*
|
|
674
|
-
*
|
|
675
|
-
*
|
|
676
|
-
*
|
|
707
|
+
* ```
|
|
708
|
+
* {
|
|
709
|
+
* "type": "AssignToReporterFunction"
|
|
710
|
+
* }
|
|
711
|
+
* ```
|
|
677
712
|
*
|
|
678
713
|
* **Note:** This post function can be included once in a transition.
|
|
679
714
|
*
|
|
680
715
|
* ##### Clear field value function #####
|
|
681
716
|
*
|
|
682
717
|
* A post function that clears the value from a field.
|
|
683
|
-
*
|
|
684
|
-
*
|
|
685
|
-
*
|
|
686
|
-
*
|
|
687
|
-
*
|
|
688
|
-
*
|
|
689
|
-
*
|
|
718
|
+
* ```
|
|
719
|
+
* {
|
|
720
|
+
* "type": "ClearFieldValuePostFunction",
|
|
721
|
+
* "configuration": {
|
|
722
|
+
* "fieldId": "assignee"
|
|
723
|
+
* }
|
|
724
|
+
* }
|
|
725
|
+
* ```
|
|
690
726
|
*
|
|
691
727
|
* * `fieldId` The ID of the field.
|
|
692
728
|
*
|
|
@@ -694,15 +730,16 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
694
730
|
*
|
|
695
731
|
* A post function that copies the value of one field to another, either within an
|
|
696
732
|
* issue or from parent to subtask.
|
|
697
|
-
*
|
|
698
|
-
*
|
|
699
|
-
*
|
|
700
|
-
*
|
|
701
|
-
*
|
|
702
|
-
*
|
|
703
|
-
*
|
|
704
|
-
*
|
|
705
|
-
*
|
|
733
|
+
* ```
|
|
734
|
+
* {
|
|
735
|
+
* "type": "CopyValueFromOtherFieldPostFunction",
|
|
736
|
+
* "configuration": {
|
|
737
|
+
* "sourceFieldId": "assignee",
|
|
738
|
+
* "destinationFieldId": "creator",
|
|
739
|
+
* "copyType": "same"
|
|
740
|
+
* }
|
|
741
|
+
* }
|
|
742
|
+
* ```
|
|
706
743
|
*
|
|
707
744
|
* * `sourceFieldId` The ID of the source field.
|
|
708
745
|
* * `destinationFieldId` The ID of the destination field.
|
|
@@ -713,10 +750,11 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
713
750
|
*
|
|
714
751
|
* A post function that creates a Crucible review for all unreviewed code for the
|
|
715
752
|
* issue.
|
|
716
|
-
*
|
|
717
|
-
*
|
|
718
|
-
*
|
|
719
|
-
*
|
|
753
|
+
* ```
|
|
754
|
+
* {
|
|
755
|
+
* "type": "CreateCrucibleReviewWorkflowFunction"
|
|
756
|
+
* }
|
|
757
|
+
* ```
|
|
720
758
|
*
|
|
721
759
|
* **Note:** This post function can be included once in a transition.
|
|
722
760
|
*
|
|
@@ -724,18 +762,19 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
724
762
|
*
|
|
725
763
|
* A post function that sets the issue's security level if the current user has a
|
|
726
764
|
* project role.
|
|
727
|
-
*
|
|
728
|
-
*
|
|
729
|
-
*
|
|
730
|
-
*
|
|
731
|
-
*
|
|
732
|
-
*
|
|
733
|
-
*
|
|
734
|
-
*
|
|
735
|
-
*
|
|
736
|
-
*
|
|
737
|
-
*
|
|
738
|
-
*
|
|
765
|
+
* ```
|
|
766
|
+
* {
|
|
767
|
+
* "type": "SetIssueSecurityFromRoleFunction",
|
|
768
|
+
* "configuration": {
|
|
769
|
+
* "projectRole": {
|
|
770
|
+
* "id":"10002"
|
|
771
|
+
* },
|
|
772
|
+
* "issueSecurityLevel": {
|
|
773
|
+
* "id":"10000"
|
|
774
|
+
* }
|
|
775
|
+
* }
|
|
776
|
+
* }
|
|
777
|
+
* ```
|
|
739
778
|
*
|
|
740
779
|
* * `projectRole` An object containing the ID of the project role.
|
|
741
780
|
* * `issueSecurityLevel` OPTIONAL. The object containing the ID of the security
|
|
@@ -744,30 +783,32 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
744
783
|
* ##### Trigger a webhook function #####
|
|
745
784
|
*
|
|
746
785
|
* A post function that triggers a webhook.
|
|
747
|
-
*
|
|
748
|
-
*
|
|
749
|
-
*
|
|
750
|
-
*
|
|
751
|
-
*
|
|
752
|
-
*
|
|
753
|
-
* }
|
|
754
|
-
* }
|
|
786
|
+
* ```
|
|
787
|
+
* {
|
|
788
|
+
* "type": "TriggerWebhookFunction",
|
|
789
|
+
* "configuration": {
|
|
790
|
+
* "webhook": {
|
|
791
|
+
* "id": "1"
|
|
755
792
|
* }
|
|
793
|
+
* }
|
|
794
|
+
* }
|
|
795
|
+
* ```
|
|
756
796
|
*
|
|
757
797
|
* * `webhook` An object containing the ID of the webhook listener to trigger.
|
|
758
798
|
*
|
|
759
799
|
* ##### Update issue custom field function #####
|
|
760
800
|
*
|
|
761
801
|
* A post function that updates the content of an issue custom field.
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
*
|
|
765
|
-
*
|
|
766
|
-
*
|
|
767
|
-
*
|
|
768
|
-
*
|
|
769
|
-
*
|
|
770
|
-
*
|
|
802
|
+
* ```
|
|
803
|
+
* {
|
|
804
|
+
* "type": "UpdateIssueCustomFieldPostFunction",
|
|
805
|
+
* "configuration": {
|
|
806
|
+
* "mode": "append",
|
|
807
|
+
* "fieldId": "customfield_10003",
|
|
808
|
+
* "fieldValue": "yikes"
|
|
809
|
+
* }
|
|
810
|
+
* }
|
|
811
|
+
* ```
|
|
771
812
|
*
|
|
772
813
|
* * `mode` Use `replace` to override the field content with `fieldValue` or
|
|
773
814
|
* `append` to add `fieldValue` to the end of the field content.
|
|
@@ -777,14 +818,15 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
777
818
|
* ##### Update issue field function #####
|
|
778
819
|
*
|
|
779
820
|
* A post function that updates a simple issue field.
|
|
780
|
-
*
|
|
781
|
-
*
|
|
782
|
-
*
|
|
783
|
-
*
|
|
784
|
-
*
|
|
785
|
-
*
|
|
786
|
-
*
|
|
787
|
-
*
|
|
821
|
+
* ```
|
|
822
|
+
* {
|
|
823
|
+
* "type": "UpdateIssueFieldFunction",
|
|
824
|
+
* "configuration": {
|
|
825
|
+
* "fieldId": "assignee",
|
|
826
|
+
* "fieldValue": "5f0c277e70b8a90025a00776"
|
|
827
|
+
* }
|
|
828
|
+
* }
|
|
829
|
+
* ```
|
|
788
830
|
*
|
|
789
831
|
* * `fieldId` The ID of the field. Allowed field types:
|
|
790
832
|
*
|
|
@@ -810,13 +852,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
810
852
|
* Connect rules are conditions, validators, and post functions of a transition
|
|
811
853
|
* that are registered by Connect apps. To create a rule registered by the app,
|
|
812
854
|
* the app must be enabled and the rule's module must exist.
|
|
813
|
-
*
|
|
814
|
-
*
|
|
815
|
-
*
|
|
816
|
-
*
|
|
817
|
-
*
|
|
818
|
-
*
|
|
819
|
-
*
|
|
855
|
+
* ```
|
|
856
|
+
* {
|
|
857
|
+
* "type": "appKey__moduleKey",
|
|
858
|
+
* "configuration": {
|
|
859
|
+
* "value":"{\"isValid\":\"true\"}"
|
|
860
|
+
* }
|
|
861
|
+
* }
|
|
862
|
+
* ```
|
|
820
863
|
*
|
|
821
864
|
* * `type` A Connect rule key in a form of `appKey__moduleKey`.
|
|
822
865
|
* * `value` The stringified JSON configuration of a Connect rule.
|
|
@@ -831,20 +874,25 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
831
874
|
* @deprecated
|
|
832
875
|
* @returns Returned if the workflow is created.
|
|
833
876
|
*
|
|
834
|
-
* example:
|
|
877
|
+
* example:
|
|
878
|
+
* ```
|
|
879
|
+
* {
|
|
835
880
|
* "entityId": "d7178e8d-bf6c-4c0c-9e90-758a0b965b67",
|
|
836
881
|
* "name": "Workflow 1"
|
|
837
882
|
* }
|
|
838
|
-
*
|
|
883
|
+
* ```
|
|
884
|
+
* @path POST `/rest/api/3/workflow`
|
|
839
885
|
* @scopes-current manage:jira-configuration
|
|
840
886
|
* @scopes-beta write:workflow:jira, read:workflow:jira
|
|
841
887
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflow-post
|
|
888
|
+
* @param params
|
|
842
889
|
*/
|
|
843
890
|
createWorkflow: ({ createWorkflowDetails, }: {
|
|
844
891
|
/**
|
|
845
892
|
* The workflow details.
|
|
846
893
|
*
|
|
847
|
-
* @example
|
|
894
|
+
* @example
|
|
895
|
+
* {
|
|
848
896
|
* "description": "This is a workflow used for Stories and Tasks",
|
|
849
897
|
* "name": "Workflow 1",
|
|
850
898
|
* "statuses": [
|
|
@@ -955,7 +1003,9 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
955
1003
|
*
|
|
956
1004
|
* @returns Returned if the request is successful.
|
|
957
1005
|
*
|
|
958
|
-
* example:
|
|
1006
|
+
* example:
|
|
1007
|
+
* ```
|
|
1008
|
+
* {
|
|
959
1009
|
* "statuses": [
|
|
960
1010
|
* {
|
|
961
1011
|
* "description": "",
|
|
@@ -1052,14 +1102,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1052
1102
|
* "actions": [],
|
|
1053
1103
|
* "description": "",
|
|
1054
1104
|
* "from": [],
|
|
1055
|
-
* "id": "
|
|
1056
|
-
* "name": "
|
|
1105
|
+
* "id": "1",
|
|
1106
|
+
* "name": "Create",
|
|
1057
1107
|
* "properties": {},
|
|
1058
1108
|
* "to": {
|
|
1059
1109
|
* "statusReference": "10001"
|
|
1060
1110
|
* },
|
|
1061
1111
|
* "triggers": [],
|
|
1062
|
-
* "type": "
|
|
1112
|
+
* "type": "INITIAL",
|
|
1063
1113
|
* "validators": []
|
|
1064
1114
|
* },
|
|
1065
1115
|
* {
|
|
@@ -1080,14 +1130,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1080
1130
|
* "actions": [],
|
|
1081
1131
|
* "description": "",
|
|
1082
1132
|
* "from": [],
|
|
1083
|
-
* "id": "
|
|
1084
|
-
* "name": "
|
|
1133
|
+
* "id": "11",
|
|
1134
|
+
* "name": "To Do",
|
|
1085
1135
|
* "properties": {},
|
|
1086
1136
|
* "to": {
|
|
1087
1137
|
* "statusReference": "10001"
|
|
1088
1138
|
* },
|
|
1089
1139
|
* "triggers": [],
|
|
1090
|
-
* "type": "
|
|
1140
|
+
* "type": "GLOBAL",
|
|
1091
1141
|
* "validators": []
|
|
1092
1142
|
* }
|
|
1093
1143
|
* ],
|
|
@@ -1099,14 +1149,17 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1099
1149
|
* }
|
|
1100
1150
|
* ]
|
|
1101
1151
|
* }
|
|
1102
|
-
*
|
|
1152
|
+
* ```
|
|
1153
|
+
* @path POST `/rest/api/3/workflows/create`
|
|
1103
1154
|
* @scopes-current manage:jira-configuration
|
|
1104
1155
|
* @scopes-beta write:workflow:jira
|
|
1105
1156
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-create-post
|
|
1157
|
+
* @param params
|
|
1106
1158
|
*/
|
|
1107
1159
|
createWorkflows: ({ workflowCreateRequest, }: {
|
|
1108
1160
|
/**
|
|
1109
|
-
* @example
|
|
1161
|
+
* @example
|
|
1162
|
+
* {
|
|
1110
1163
|
* "scope": {
|
|
1111
1164
|
* "type": "GLOBAL"
|
|
1112
1165
|
* },
|
|
@@ -1173,8 +1226,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1173
1226
|
* "name": "Create",
|
|
1174
1227
|
* "properties": {},
|
|
1175
1228
|
* "to": {
|
|
1176
|
-
* "statusReference":
|
|
1177
|
-
* "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
1229
|
+
* "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
1178
1230
|
* },
|
|
1179
1231
|
* "triggers": [],
|
|
1180
1232
|
* "type": "INITIAL",
|
|
@@ -1188,8 +1240,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1188
1240
|
* "name": "To Do",
|
|
1189
1241
|
* "properties": {},
|
|
1190
1242
|
* "to": {
|
|
1191
|
-
* "statusReference":
|
|
1192
|
-
* "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
1243
|
+
* "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
1193
1244
|
* },
|
|
1194
1245
|
* "triggers": [],
|
|
1195
1246
|
* "type": "GLOBAL",
|
|
@@ -1203,8 +1254,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1203
1254
|
* "name": "In Progress",
|
|
1204
1255
|
* "properties": {},
|
|
1205
1256
|
* "to": {
|
|
1206
|
-
* "statusReference":
|
|
1207
|
-
* "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
1257
|
+
* "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
1208
1258
|
* },
|
|
1209
1259
|
* "triggers": [],
|
|
1210
1260
|
* "type": "GLOBAL",
|
|
@@ -1218,8 +1268,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1218
1268
|
* "name": "Done",
|
|
1219
1269
|
* "properties": {},
|
|
1220
1270
|
* "to": {
|
|
1221
|
-
* "statusReference":
|
|
1222
|
-
* "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
1271
|
+
* "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
1223
1272
|
* },
|
|
1224
1273
|
* "triggers": [],
|
|
1225
1274
|
* "type": "GLOBAL",
|
|
@@ -1245,10 +1294,11 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1245
1294
|
* **[Permissions](#permissions) required:** *Administer Jira* [global
|
|
1246
1295
|
* permission](https://confluence.atlassian.com/x/x4dKLg).
|
|
1247
1296
|
*
|
|
1248
|
-
* @path
|
|
1297
|
+
* @path DELETE `/rest/api/3/workflow/{entityId}`
|
|
1249
1298
|
* @scopes-current manage:jira-configuration
|
|
1250
1299
|
* @scopes-beta delete:workflow:jira
|
|
1251
1300
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflow-entityid-delete
|
|
1301
|
+
* @param params
|
|
1252
1302
|
*/
|
|
1253
1303
|
deleteInactiveWorkflow: ({ entityId, }: {
|
|
1254
1304
|
/** The entity ID of the workflow. */
|
|
@@ -1267,7 +1317,9 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1267
1317
|
* @deprecated
|
|
1268
1318
|
* @returns Returned if the request is successful.
|
|
1269
1319
|
*
|
|
1270
|
-
* example:
|
|
1320
|
+
* example:
|
|
1321
|
+
* ```
|
|
1322
|
+
* [
|
|
1271
1323
|
* {
|
|
1272
1324
|
* "default": true,
|
|
1273
1325
|
* "description": "A classic Jira workflow",
|
|
@@ -1278,11 +1330,12 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1278
1330
|
* "steps": 5
|
|
1279
1331
|
* }
|
|
1280
1332
|
* ]
|
|
1281
|
-
*
|
|
1333
|
+
* ```
|
|
1334
|
+
* @path GET `/rest/api/3/workflow`
|
|
1282
1335
|
* @scopes-current manage:jira-configuration
|
|
1283
|
-
* @scopes-beta read:workflow:jira, read:project:jira, read:project-category:jira,
|
|
1284
|
-
* read:avatar:jira
|
|
1336
|
+
* @scopes-beta read:workflow:jira, read:project:jira, read:project-category:jira, read:avatar:jira
|
|
1285
1337
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflow-get
|
|
1338
|
+
* @param params
|
|
1286
1339
|
*/
|
|
1287
1340
|
getAllWorkflows: ({ workflowName, }?: {
|
|
1288
1341
|
/** The name of the workflow to be returned. Only one workflow can be specified. */
|
|
@@ -1300,7 +1353,9 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1300
1353
|
*
|
|
1301
1354
|
* @returns Returned if the request is successful.
|
|
1302
1355
|
*
|
|
1303
|
-
* example:
|
|
1356
|
+
* example:
|
|
1357
|
+
* ```
|
|
1358
|
+
* {
|
|
1304
1359
|
* "isLast": false,
|
|
1305
1360
|
* "maxResults": 1,
|
|
1306
1361
|
* "startAt": 0,
|
|
@@ -1311,8 +1366,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1311
1366
|
* "name": "SCRUM Workflow",
|
|
1312
1367
|
* "entityId": "5ed312c5-f7a6-4a78-a1f6-8ff7f307d063"
|
|
1313
1368
|
* },
|
|
1314
|
-
* "description": "A workflow used for Software projects in the SCRUM
|
|
1315
|
-
* methodology",
|
|
1369
|
+
* "description": "A workflow used for Software projects in the SCRUM methodology",
|
|
1316
1370
|
* "transitions": [
|
|
1317
1371
|
* {
|
|
1318
1372
|
* "id": "5",
|
|
@@ -1427,13 +1481,12 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1427
1481
|
* }
|
|
1428
1482
|
* ]
|
|
1429
1483
|
* }
|
|
1430
|
-
*
|
|
1484
|
+
* ```
|
|
1485
|
+
* @path GET `/rest/api/3/workflow/search`
|
|
1431
1486
|
* @scopes-current manage:jira-project
|
|
1432
|
-
* @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira,
|
|
1433
|
-
* read:screen:jira, read:status:jira, read:user:jira, read:workflow:jira,
|
|
1434
|
-
* read:webhook:jira, read:avatar:jira, read:project-category:jira,
|
|
1435
|
-
* read:project:jira
|
|
1487
|
+
* @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira, read:screen:jira, read:status:jira, read:user:jira, read:workflow:jira, read:webhook:jira, read:avatar:jira, read:project-category:jira, read:project:jira
|
|
1436
1488
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflow-search-get
|
|
1489
|
+
* @param params
|
|
1437
1490
|
*/
|
|
1438
1491
|
getWorkflowsPaginated: ({ startAt, maxResults, workflowName, expand, queryString, orderBy, isActive, }?: {
|
|
1439
1492
|
/** The index of the first item to return in a page of results (page offset). */
|
|
@@ -1498,7 +1551,9 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1498
1551
|
*
|
|
1499
1552
|
* @returns Returned if the request is successful.
|
|
1500
1553
|
*
|
|
1501
|
-
* example:
|
|
1554
|
+
* example:
|
|
1555
|
+
* ```
|
|
1556
|
+
* {
|
|
1502
1557
|
* "statuses": [
|
|
1503
1558
|
* {
|
|
1504
1559
|
* "description": "",
|
|
@@ -1580,13 +1635,11 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1580
1635
|
* {
|
|
1581
1636
|
* "actions": [],
|
|
1582
1637
|
* "description": "",
|
|
1583
|
-
* "
|
|
1584
|
-
* "
|
|
1585
|
-
* "name": "
|
|
1638
|
+
* "id": "21",
|
|
1639
|
+
* "links": [],
|
|
1640
|
+
* "name": "In Progress",
|
|
1586
1641
|
* "properties": {},
|
|
1587
|
-
* "
|
|
1588
|
-
* "statusReference": "10003"
|
|
1589
|
-
* },
|
|
1642
|
+
* "toStatusReference": "10002",
|
|
1590
1643
|
* "triggers": [],
|
|
1591
1644
|
* "type": "GLOBAL",
|
|
1592
1645
|
* "validators": []
|
|
@@ -1594,13 +1647,11 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1594
1647
|
* {
|
|
1595
1648
|
* "actions": [],
|
|
1596
1649
|
* "description": "",
|
|
1597
|
-
* "from": [],
|
|
1598
1650
|
* "id": "11",
|
|
1651
|
+
* "links": [],
|
|
1599
1652
|
* "name": "To Do",
|
|
1600
1653
|
* "properties": {},
|
|
1601
|
-
* "
|
|
1602
|
-
* "statusReference": "10001"
|
|
1603
|
-
* },
|
|
1654
|
+
* "toStatusReference": "10001",
|
|
1604
1655
|
* "triggers": [],
|
|
1605
1656
|
* "type": "GLOBAL",
|
|
1606
1657
|
* "validators": []
|
|
@@ -1608,13 +1659,11 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1608
1659
|
* {
|
|
1609
1660
|
* "actions": [],
|
|
1610
1661
|
* "description": "",
|
|
1611
|
-
* "
|
|
1612
|
-
* "
|
|
1613
|
-
* "name": "
|
|
1662
|
+
* "id": "31",
|
|
1663
|
+
* "links": [],
|
|
1664
|
+
* "name": "Done",
|
|
1614
1665
|
* "properties": {},
|
|
1615
|
-
* "
|
|
1616
|
-
* "statusReference": "10002"
|
|
1617
|
-
* },
|
|
1666
|
+
* "toStatusReference": "10003",
|
|
1618
1667
|
* "triggers": [],
|
|
1619
1668
|
* "type": "GLOBAL",
|
|
1620
1669
|
* "validators": []
|
|
@@ -1622,13 +1671,29 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1622
1671
|
* {
|
|
1623
1672
|
* "actions": [],
|
|
1624
1673
|
* "description": "",
|
|
1625
|
-
* "
|
|
1674
|
+
* "id": "41",
|
|
1675
|
+
* "links": [
|
|
1676
|
+
* {
|
|
1677
|
+
* "fromPort": 0,
|
|
1678
|
+
* "fromStatusReference": "10001",
|
|
1679
|
+
* "toPort": 1
|
|
1680
|
+
* }
|
|
1681
|
+
* ],
|
|
1682
|
+
* "name": "Start work",
|
|
1683
|
+
* "properties": {},
|
|
1684
|
+
* "toStatusReference": "10002",
|
|
1685
|
+
* "triggers": [],
|
|
1686
|
+
* "type": "DIRECTED",
|
|
1687
|
+
* "validators": []
|
|
1688
|
+
* },
|
|
1689
|
+
* {
|
|
1690
|
+
* "actions": [],
|
|
1691
|
+
* "description": "",
|
|
1626
1692
|
* "id": "1",
|
|
1693
|
+
* "links": [],
|
|
1627
1694
|
* "name": "Create",
|
|
1628
1695
|
* "properties": {},
|
|
1629
|
-
* "
|
|
1630
|
-
* "statusReference": "10001"
|
|
1631
|
-
* },
|
|
1696
|
+
* "toStatusReference": "10001",
|
|
1632
1697
|
* "triggers": [],
|
|
1633
1698
|
* "type": "INITIAL",
|
|
1634
1699
|
* "validators": []
|
|
@@ -1642,12 +1707,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1642
1707
|
* }
|
|
1643
1708
|
* ]
|
|
1644
1709
|
* }
|
|
1645
|
-
*
|
|
1710
|
+
* ```
|
|
1711
|
+
* @path POST `/rest/api/3/workflows`
|
|
1646
1712
|
* @scopes-current manage:jira-configuration
|
|
1647
1713
|
* @scopes-beta read:workflow:jira
|
|
1648
1714
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-post
|
|
1715
|
+
* @param params
|
|
1649
1716
|
*/
|
|
1650
|
-
readWorkflows: ({ expand, workflowReadRequest, }: {
|
|
1717
|
+
readWorkflows: ({ expand, useTransitionLinksFormat, workflowReadRequest, }: {
|
|
1651
1718
|
/**
|
|
1652
1719
|
* Use [expand](#expansion) to include additional information in the response.
|
|
1653
1720
|
* This parameter accepts a comma-separated list. Expand options include:
|
|
@@ -1659,7 +1726,13 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1659
1726
|
*/
|
|
1660
1727
|
expand?: string | undefined;
|
|
1661
1728
|
/**
|
|
1662
|
-
*
|
|
1729
|
+
* Return the new fields (`toStatusReference`/`links`) instead of the deprecated
|
|
1730
|
+
* fields (`to`/`from`) for workflow transition port mappings.
|
|
1731
|
+
*/
|
|
1732
|
+
useTransitionLinksFormat?: boolean | undefined;
|
|
1733
|
+
/**
|
|
1734
|
+
* @example
|
|
1735
|
+
* {
|
|
1663
1736
|
* "projectAndIssueTypes": [],
|
|
1664
1737
|
* "workflowIds": [],
|
|
1665
1738
|
* "workflowNames": [
|
|
@@ -1681,7 +1754,9 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1681
1754
|
*
|
|
1682
1755
|
* @returns Returned if the request is successful.
|
|
1683
1756
|
*
|
|
1684
|
-
* example:
|
|
1757
|
+
* example:
|
|
1758
|
+
* ```
|
|
1759
|
+
* {
|
|
1685
1760
|
* "statuses": [
|
|
1686
1761
|
* {
|
|
1687
1762
|
* "description": "",
|
|
@@ -1779,14 +1854,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1779
1854
|
* "actions": [],
|
|
1780
1855
|
* "description": "",
|
|
1781
1856
|
* "from": [],
|
|
1782
|
-
* "id": "
|
|
1783
|
-
* "name": "
|
|
1857
|
+
* "id": "1",
|
|
1858
|
+
* "name": "Create",
|
|
1784
1859
|
* "properties": {},
|
|
1785
1860
|
* "to": {
|
|
1786
1861
|
* "statusReference": "10001"
|
|
1787
1862
|
* },
|
|
1788
1863
|
* "triggers": [],
|
|
1789
|
-
* "type": "
|
|
1864
|
+
* "type": "INITIAL",
|
|
1790
1865
|
* "validators": []
|
|
1791
1866
|
* },
|
|
1792
1867
|
* {
|
|
@@ -1807,14 +1882,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1807
1882
|
* "actions": [],
|
|
1808
1883
|
* "description": "",
|
|
1809
1884
|
* "from": [],
|
|
1810
|
-
* "id": "
|
|
1811
|
-
* "name": "
|
|
1885
|
+
* "id": "11",
|
|
1886
|
+
* "name": "To Do",
|
|
1812
1887
|
* "properties": {},
|
|
1813
1888
|
* "to": {
|
|
1814
1889
|
* "statusReference": "10001"
|
|
1815
1890
|
* },
|
|
1816
1891
|
* "triggers": [],
|
|
1817
|
-
* "type": "
|
|
1892
|
+
* "type": "GLOBAL",
|
|
1818
1893
|
* "validators": []
|
|
1819
1894
|
* }
|
|
1820
1895
|
* ],
|
|
@@ -1826,10 +1901,12 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1826
1901
|
* }
|
|
1827
1902
|
* ]
|
|
1828
1903
|
* }
|
|
1829
|
-
*
|
|
1904
|
+
* ```
|
|
1905
|
+
* @path POST `/rest/api/3/workflows/update`
|
|
1830
1906
|
* @scopes-current manage:jira-configuration
|
|
1831
1907
|
* @scopes-beta write:workflow:jira
|
|
1832
1908
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-update-post
|
|
1909
|
+
* @param params
|
|
1833
1910
|
*/
|
|
1834
1911
|
updateWorkflows: ({ expand, workflowUpdateRequest, }: {
|
|
1835
1912
|
/**
|
|
@@ -1843,7 +1920,8 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1843
1920
|
*/
|
|
1844
1921
|
expand?: string | undefined;
|
|
1845
1922
|
/**
|
|
1846
|
-
* @example
|
|
1923
|
+
* @example
|
|
1924
|
+
* {
|
|
1847
1925
|
* "statuses": [
|
|
1848
1926
|
* {
|
|
1849
1927
|
* "description": "",
|
|
@@ -1925,8 +2003,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1925
2003
|
* "name": "Create",
|
|
1926
2004
|
* "properties": {},
|
|
1927
2005
|
* "to": {
|
|
1928
|
-
* "statusReference":
|
|
1929
|
-
* "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2006
|
+
* "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
1930
2007
|
* },
|
|
1931
2008
|
* "triggers": [],
|
|
1932
2009
|
* "type": "INITIAL",
|
|
@@ -1940,8 +2017,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1940
2017
|
* "name": "To Do",
|
|
1941
2018
|
* "properties": {},
|
|
1942
2019
|
* "to": {
|
|
1943
|
-
* "statusReference":
|
|
1944
|
-
* "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2020
|
+
* "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
1945
2021
|
* },
|
|
1946
2022
|
* "triggers": [],
|
|
1947
2023
|
* "type": "GLOBAL",
|
|
@@ -1955,8 +2031,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1955
2031
|
* "name": "In Progress",
|
|
1956
2032
|
* "properties": {},
|
|
1957
2033
|
* "to": {
|
|
1958
|
-
* "statusReference":
|
|
1959
|
-
* "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
2034
|
+
* "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
1960
2035
|
* },
|
|
1961
2036
|
* "triggers": [],
|
|
1962
2037
|
* "type": "GLOBAL",
|
|
@@ -1970,8 +2045,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1970
2045
|
* "name": "Done",
|
|
1971
2046
|
* "properties": {},
|
|
1972
2047
|
* "to": {
|
|
1973
|
-
* "statusReference":
|
|
1974
|
-
* "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
2048
|
+
* "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
1975
2049
|
* },
|
|
1976
2050
|
* "triggers": [],
|
|
1977
2051
|
* "type": "GLOBAL",
|
|
@@ -1999,7 +2073,9 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
1999
2073
|
*
|
|
2000
2074
|
* @returns Returned if the request is successful.
|
|
2001
2075
|
*
|
|
2002
|
-
* example:
|
|
2076
|
+
* example:
|
|
2077
|
+
* ```
|
|
2078
|
+
* {
|
|
2003
2079
|
* "errors": [
|
|
2004
2080
|
* {
|
|
2005
2081
|
* "code": "NON_UNIQUE_STATUS_NAME",
|
|
@@ -2012,14 +2088,17 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2012
2088
|
* }
|
|
2013
2089
|
* ]
|
|
2014
2090
|
* }
|
|
2015
|
-
*
|
|
2091
|
+
* ```
|
|
2092
|
+
* @path POST `/rest/api/3/workflows/create/validation`
|
|
2016
2093
|
* @scopes-current manage:jira-configuration
|
|
2017
2094
|
* @scopes-beta write:workflow:jira
|
|
2018
2095
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-create-validation-post
|
|
2096
|
+
* @param params
|
|
2019
2097
|
*/
|
|
2020
2098
|
validateCreateWorkflows: ({ workflowCreateValidateRequest, }: {
|
|
2021
2099
|
/**
|
|
2022
|
-
* @example
|
|
2100
|
+
* @example
|
|
2101
|
+
* {
|
|
2023
2102
|
* "payload": {
|
|
2024
2103
|
* "scope": {
|
|
2025
2104
|
* "type": "GLOBAL"
|
|
@@ -2059,8 +2138,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2059
2138
|
* "y": -16
|
|
2060
2139
|
* },
|
|
2061
2140
|
* "properties": {},
|
|
2062
|
-
* "statusReference":
|
|
2063
|
-
* "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2141
|
+
* "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2064
2142
|
* },
|
|
2065
2143
|
* {
|
|
2066
2144
|
* "layout": {
|
|
@@ -2068,8 +2146,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2068
2146
|
* "y": -16
|
|
2069
2147
|
* },
|
|
2070
2148
|
* "properties": {},
|
|
2071
|
-
* "statusReference":
|
|
2072
|
-
* "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
2149
|
+
* "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
2073
2150
|
* },
|
|
2074
2151
|
* {
|
|
2075
2152
|
* "layout": {
|
|
@@ -2077,8 +2154,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2077
2154
|
* "y": -16
|
|
2078
2155
|
* },
|
|
2079
2156
|
* "properties": {},
|
|
2080
|
-
* "statusReference":
|
|
2081
|
-
* "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
2157
|
+
* "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
2082
2158
|
* }
|
|
2083
2159
|
* ],
|
|
2084
2160
|
* "transitions": [
|
|
@@ -2090,8 +2166,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2090
2166
|
* "name": "Create",
|
|
2091
2167
|
* "properties": {},
|
|
2092
2168
|
* "to": {
|
|
2093
|
-
* "statusReference":
|
|
2094
|
-
* "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2169
|
+
* "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2095
2170
|
* },
|
|
2096
2171
|
* "triggers": [],
|
|
2097
2172
|
* "type": "INITIAL",
|
|
@@ -2105,8 +2180,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2105
2180
|
* "name": "To Do",
|
|
2106
2181
|
* "properties": {},
|
|
2107
2182
|
* "to": {
|
|
2108
|
-
* "statusReference":
|
|
2109
|
-
* "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2183
|
+
* "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2110
2184
|
* },
|
|
2111
2185
|
* "triggers": [],
|
|
2112
2186
|
* "type": "GLOBAL",
|
|
@@ -2120,8 +2194,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2120
2194
|
* "name": "In Progress",
|
|
2121
2195
|
* "properties": {},
|
|
2122
2196
|
* "to": {
|
|
2123
|
-
* "statusReference":
|
|
2124
|
-
* "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
2197
|
+
* "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
2125
2198
|
* },
|
|
2126
2199
|
* "triggers": [],
|
|
2127
2200
|
* "type": "GLOBAL",
|
|
@@ -2135,8 +2208,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2135
2208
|
* "name": "Done",
|
|
2136
2209
|
* "properties": {},
|
|
2137
2210
|
* "to": {
|
|
2138
|
-
* "statusReference":
|
|
2139
|
-
* "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
2211
|
+
* "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
2140
2212
|
* },
|
|
2141
2213
|
* "triggers": [],
|
|
2142
2214
|
* "type": "GLOBAL",
|
|
@@ -2167,7 +2239,9 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2167
2239
|
*
|
|
2168
2240
|
* @returns Returned if the request is successful.
|
|
2169
2241
|
*
|
|
2170
|
-
* example:
|
|
2242
|
+
* example:
|
|
2243
|
+
* ```
|
|
2244
|
+
* {
|
|
2171
2245
|
* "errors": [
|
|
2172
2246
|
* {
|
|
2173
2247
|
* "code": "NON_UNIQUE_STATUS_NAME",
|
|
@@ -2180,14 +2254,17 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2180
2254
|
* }
|
|
2181
2255
|
* ]
|
|
2182
2256
|
* }
|
|
2183
|
-
*
|
|
2257
|
+
* ```
|
|
2258
|
+
* @path POST `/rest/api/3/workflows/update/validation`
|
|
2184
2259
|
* @scopes-current manage:jira-configuration
|
|
2185
2260
|
* @scopes-beta write:workflow:jira
|
|
2186
2261
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-update-validation-post
|
|
2262
|
+
* @param params
|
|
2187
2263
|
*/
|
|
2188
2264
|
validateUpdateWorkflows: ({ workflowUpdateValidateRequestBean, }: {
|
|
2189
2265
|
/**
|
|
2190
|
-
* @example
|
|
2266
|
+
* @example
|
|
2267
|
+
* {
|
|
2191
2268
|
* "payload": {
|
|
2192
2269
|
* "statuses": [
|
|
2193
2270
|
* {
|
|
@@ -2242,8 +2319,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2242
2319
|
* "y": -16
|
|
2243
2320
|
* },
|
|
2244
2321
|
* "properties": {},
|
|
2245
|
-
* "statusReference":
|
|
2246
|
-
* "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2322
|
+
* "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2247
2323
|
* },
|
|
2248
2324
|
* {
|
|
2249
2325
|
* "layout": {
|
|
@@ -2251,8 +2327,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2251
2327
|
* "y": -16
|
|
2252
2328
|
* },
|
|
2253
2329
|
* "properties": {},
|
|
2254
|
-
* "statusReference":
|
|
2255
|
-
* "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
2330
|
+
* "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
2256
2331
|
* },
|
|
2257
2332
|
* {
|
|
2258
2333
|
* "layout": {
|
|
@@ -2260,8 +2335,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2260
2335
|
* "y": -16
|
|
2261
2336
|
* },
|
|
2262
2337
|
* "properties": {},
|
|
2263
|
-
* "statusReference":
|
|
2264
|
-
* "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
2338
|
+
* "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
2265
2339
|
* }
|
|
2266
2340
|
* ],
|
|
2267
2341
|
* "transitions": [
|
|
@@ -2273,8 +2347,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2273
2347
|
* "name": "Create",
|
|
2274
2348
|
* "properties": {},
|
|
2275
2349
|
* "to": {
|
|
2276
|
-
* "statusReference":
|
|
2277
|
-
* "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2350
|
+
* "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2278
2351
|
* },
|
|
2279
2352
|
* "triggers": [],
|
|
2280
2353
|
* "type": "INITIAL",
|
|
@@ -2288,8 +2361,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2288
2361
|
* "name": "To Do",
|
|
2289
2362
|
* "properties": {},
|
|
2290
2363
|
* "to": {
|
|
2291
|
-
* "statusReference":
|
|
2292
|
-
* "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2364
|
+
* "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
|
|
2293
2365
|
* },
|
|
2294
2366
|
* "triggers": [],
|
|
2295
2367
|
* "type": "GLOBAL",
|
|
@@ -2303,8 +2375,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2303
2375
|
* "name": "In Progress",
|
|
2304
2376
|
* "properties": {},
|
|
2305
2377
|
* "to": {
|
|
2306
|
-
* "statusReference":
|
|
2307
|
-
* "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
2378
|
+
* "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
|
|
2308
2379
|
* },
|
|
2309
2380
|
* "triggers": [],
|
|
2310
2381
|
* "type": "GLOBAL",
|
|
@@ -2318,8 +2389,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2318
2389
|
* "name": "Done",
|
|
2319
2390
|
* "properties": {},
|
|
2320
2391
|
* "to": {
|
|
2321
|
-
* "statusReference":
|
|
2322
|
-
* "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
2392
|
+
* "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
|
|
2323
2393
|
* },
|
|
2324
2394
|
* "triggers": [],
|
|
2325
2395
|
* "type": "GLOBAL",
|
|
@@ -2368,13 +2438,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2368
2438
|
*
|
|
2369
2439
|
* A validator rule that checks if a user has the required permissions to execute
|
|
2370
2440
|
* the transition in the workflow.
|
|
2371
|
-
*
|
|
2372
|
-
*
|
|
2373
|
-
*
|
|
2374
|
-
*
|
|
2375
|
-
*
|
|
2376
|
-
*
|
|
2377
|
-
*
|
|
2441
|
+
* ```
|
|
2442
|
+
* {
|
|
2443
|
+
* "ruleKey": "system:check-permission-validator",
|
|
2444
|
+
* "parameters": {
|
|
2445
|
+
* "permissionKey": "ADMINISTER_PROJECTS"
|
|
2446
|
+
* }
|
|
2447
|
+
* }
|
|
2448
|
+
* ```
|
|
2378
2449
|
*
|
|
2379
2450
|
* Parameters:
|
|
2380
2451
|
*
|
|
@@ -2386,14 +2457,15 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2386
2457
|
*
|
|
2387
2458
|
* A validator to block the child issue\\u2019s transition depending on the parent
|
|
2388
2459
|
* issue\\u2019s status.
|
|
2389
|
-
*
|
|
2390
|
-
*
|
|
2391
|
-
*
|
|
2392
|
-
*
|
|
2393
|
-
*
|
|
2394
|
-
*
|
|
2395
|
-
*
|
|
2396
|
-
*
|
|
2460
|
+
* ```
|
|
2461
|
+
* {
|
|
2462
|
+
* "ruleKey" : "system:parent-or-child-blocking-validator"
|
|
2463
|
+
* "parameters" : {
|
|
2464
|
+
* "blocker" : "PARENT"
|
|
2465
|
+
* "statusIds" : "1,2,3"
|
|
2466
|
+
* }
|
|
2467
|
+
* }
|
|
2468
|
+
* ```
|
|
2397
2469
|
*
|
|
2398
2470
|
* Parameters:
|
|
2399
2471
|
*
|
|
@@ -2404,14 +2476,15 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2404
2476
|
*
|
|
2405
2477
|
* A validator that checks if an issue has transitioned through specified previous
|
|
2406
2478
|
* status(es) before allowing the current transition to occur.
|
|
2407
|
-
*
|
|
2408
|
-
*
|
|
2409
|
-
*
|
|
2410
|
-
*
|
|
2411
|
-
*
|
|
2412
|
-
*
|
|
2413
|
-
*
|
|
2414
|
-
*
|
|
2479
|
+
* ```
|
|
2480
|
+
* {
|
|
2481
|
+
* "ruleKey": "system:previous-status-validator",
|
|
2482
|
+
* "parameters": {
|
|
2483
|
+
* "previousStatusIds": "10014",
|
|
2484
|
+
* "mostRecentStatusOnly": "true"
|
|
2485
|
+
* }
|
|
2486
|
+
* }
|
|
2487
|
+
* ```
|
|
2415
2488
|
*
|
|
2416
2489
|
* Parameters:
|
|
2417
2490
|
*
|
|
@@ -2428,16 +2501,17 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2428
2501
|
* Depending on the rule type, the result will vary:
|
|
2429
2502
|
*
|
|
2430
2503
|
* ###### Field required ######
|
|
2431
|
-
*
|
|
2432
|
-
*
|
|
2433
|
-
*
|
|
2434
|
-
*
|
|
2435
|
-
*
|
|
2436
|
-
*
|
|
2437
|
-
*
|
|
2438
|
-
*
|
|
2439
|
-
*
|
|
2440
|
-
*
|
|
2504
|
+
* ```
|
|
2505
|
+
* {
|
|
2506
|
+
* "ruleKey": "system:validate-field-value",
|
|
2507
|
+
* "parameters": {
|
|
2508
|
+
* "ruleType": "fieldRequired",
|
|
2509
|
+
* "fieldsRequired": "assignee",
|
|
2510
|
+
* "ignoreContext": "true",
|
|
2511
|
+
* "errorMessage": "An assignee must be set!"
|
|
2512
|
+
* }
|
|
2513
|
+
* }
|
|
2514
|
+
* ```
|
|
2441
2515
|
*
|
|
2442
2516
|
* Parameters:
|
|
2443
2517
|
*
|
|
@@ -2453,16 +2527,17 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2453
2527
|
* don't provide one (Optional).
|
|
2454
2528
|
*
|
|
2455
2529
|
* ###### Field changed ######
|
|
2456
|
-
*
|
|
2457
|
-
*
|
|
2458
|
-
*
|
|
2459
|
-
*
|
|
2460
|
-
*
|
|
2461
|
-
*
|
|
2462
|
-
*
|
|
2463
|
-
*
|
|
2464
|
-
*
|
|
2465
|
-
*
|
|
2530
|
+
* ```
|
|
2531
|
+
* {
|
|
2532
|
+
* "ruleKey": "system:validate-field-value",
|
|
2533
|
+
* "parameters": {
|
|
2534
|
+
* "ruleType": "fieldChanged",
|
|
2535
|
+
* "groupsExemptFromValidation": "6862ac20-8672-4f68-896d-4854f5efb79e",
|
|
2536
|
+
* "fieldKey": "versions",
|
|
2537
|
+
* "errorMessage": "Affect versions must be modified before transition"
|
|
2538
|
+
* }
|
|
2539
|
+
* }
|
|
2540
|
+
* ```
|
|
2466
2541
|
*
|
|
2467
2542
|
* Parameters:
|
|
2468
2543
|
*
|
|
@@ -2475,15 +2550,16 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2475
2550
|
* provide one (Optional).
|
|
2476
2551
|
*
|
|
2477
2552
|
* ###### Field has a single value ######
|
|
2478
|
-
*
|
|
2479
|
-
*
|
|
2480
|
-
*
|
|
2481
|
-
*
|
|
2482
|
-
*
|
|
2483
|
-
*
|
|
2484
|
-
*
|
|
2485
|
-
*
|
|
2486
|
-
*
|
|
2553
|
+
* ```
|
|
2554
|
+
* {
|
|
2555
|
+
* "ruleKey": "system:validate-field-value",
|
|
2556
|
+
* "parameters": {
|
|
2557
|
+
* "ruleType": "fieldHasSingleValue",
|
|
2558
|
+
* "fieldKey": "created",
|
|
2559
|
+
* "excludeSubtasks": "true"
|
|
2560
|
+
* }
|
|
2561
|
+
* }
|
|
2562
|
+
* ```
|
|
2487
2563
|
*
|
|
2488
2564
|
* Parameters:
|
|
2489
2565
|
*
|
|
@@ -2493,15 +2569,16 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2493
2569
|
* values: `true`, `false`.
|
|
2494
2570
|
*
|
|
2495
2571
|
* ###### Field matches regular expression ######
|
|
2496
|
-
*
|
|
2497
|
-
*
|
|
2498
|
-
*
|
|
2499
|
-
*
|
|
2500
|
-
*
|
|
2501
|
-
*
|
|
2502
|
-
*
|
|
2503
|
-
*
|
|
2504
|
-
*
|
|
2572
|
+
* ```
|
|
2573
|
+
* {
|
|
2574
|
+
* "ruleKey": "system:validate-field-value",
|
|
2575
|
+
* "parameters": {
|
|
2576
|
+
* "ruleType": "fieldMatchesRegularExpression",
|
|
2577
|
+
* "regexp": "[0-9]{4}",
|
|
2578
|
+
* "fieldKey": "description"
|
|
2579
|
+
* }
|
|
2580
|
+
* }
|
|
2581
|
+
* ```
|
|
2505
2582
|
*
|
|
2506
2583
|
* Parameters:
|
|
2507
2584
|
*
|
|
@@ -2510,17 +2587,18 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2510
2587
|
* look like `customfield_123`.
|
|
2511
2588
|
*
|
|
2512
2589
|
* ###### Date field comparison ######
|
|
2513
|
-
*
|
|
2514
|
-
*
|
|
2515
|
-
*
|
|
2516
|
-
*
|
|
2517
|
-
*
|
|
2518
|
-
*
|
|
2519
|
-
*
|
|
2520
|
-
*
|
|
2521
|
-
*
|
|
2522
|
-
*
|
|
2523
|
-
*
|
|
2590
|
+
* ```
|
|
2591
|
+
* {
|
|
2592
|
+
* "ruleKey": "system:validate-field-value",
|
|
2593
|
+
* "parameters": {
|
|
2594
|
+
* "ruleType": "dateFieldComparison",
|
|
2595
|
+
* "date1FieldKey": "duedate",
|
|
2596
|
+
* "date2FieldKey": "customfield_10054",
|
|
2597
|
+
* "includeTime": "true",
|
|
2598
|
+
* "conditionSelected": ">="
|
|
2599
|
+
* }
|
|
2600
|
+
* }
|
|
2601
|
+
* ```
|
|
2524
2602
|
*
|
|
2525
2603
|
* Parameters:
|
|
2526
2604
|
*
|
|
@@ -2534,16 +2612,17 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2534
2612
|
* `>=`, `=`, `<=`, `<`, `!=`.
|
|
2535
2613
|
*
|
|
2536
2614
|
* ###### Date range comparison ######
|
|
2537
|
-
*
|
|
2538
|
-
*
|
|
2539
|
-
*
|
|
2540
|
-
*
|
|
2541
|
-
*
|
|
2542
|
-
*
|
|
2543
|
-
*
|
|
2544
|
-
*
|
|
2545
|
-
*
|
|
2546
|
-
*
|
|
2615
|
+
* ```
|
|
2616
|
+
* {
|
|
2617
|
+
* "ruleKey": "system:validate-field-value",
|
|
2618
|
+
* "parameters": {
|
|
2619
|
+
* "ruleType": "windowDateComparison",
|
|
2620
|
+
* "date1FieldKey": "customfield_10009",
|
|
2621
|
+
* "date2FieldKey": "customfield_10054",
|
|
2622
|
+
* "numberOfDays": "3"
|
|
2623
|
+
* }
|
|
2624
|
+
* }
|
|
2625
|
+
* ```
|
|
2547
2626
|
*
|
|
2548
2627
|
* Parameters:
|
|
2549
2628
|
*
|
|
@@ -2566,20 +2645,22 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2566
2645
|
* ##### Proforma: Forms attached validator #####
|
|
2567
2646
|
*
|
|
2568
2647
|
* Validates that one or more forms are attached to the issue.
|
|
2569
|
-
*
|
|
2570
|
-
*
|
|
2571
|
-
*
|
|
2572
|
-
*
|
|
2573
|
-
*
|
|
2648
|
+
* ```
|
|
2649
|
+
* {
|
|
2650
|
+
* "ruleKey" : "system:proforma-forms-attached"
|
|
2651
|
+
* "parameters" : {}
|
|
2652
|
+
* }
|
|
2653
|
+
* ```
|
|
2574
2654
|
*
|
|
2575
2655
|
* ##### Proforma: Forms submitted validator #####
|
|
2576
2656
|
*
|
|
2577
2657
|
* Validates that all forms attached to the issue have been submitted.
|
|
2578
|
-
*
|
|
2579
|
-
*
|
|
2580
|
-
*
|
|
2581
|
-
*
|
|
2582
|
-
*
|
|
2658
|
+
* ```
|
|
2659
|
+
* {
|
|
2660
|
+
* "ruleKey" : "system:proforma-forms-submitted"
|
|
2661
|
+
* "parameters" : {}
|
|
2662
|
+
* }
|
|
2663
|
+
* ```
|
|
2583
2664
|
*
|
|
2584
2665
|
* #### Conditions ####
|
|
2585
2666
|
*
|
|
@@ -2590,16 +2671,17 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2590
2671
|
* A condition rule evaluates as true if a specific field's value meets the
|
|
2591
2672
|
* defined criteria. This rule ensures that an issue can only transition to the
|
|
2592
2673
|
* next step in the workflow if the field's value matches the desired condition.
|
|
2593
|
-
*
|
|
2594
|
-
*
|
|
2595
|
-
*
|
|
2596
|
-
*
|
|
2597
|
-
*
|
|
2598
|
-
*
|
|
2599
|
-
*
|
|
2600
|
-
*
|
|
2601
|
-
*
|
|
2602
|
-
*
|
|
2674
|
+
* ```
|
|
2675
|
+
* {
|
|
2676
|
+
* "ruleKey": "system:check-field-value",
|
|
2677
|
+
* "parameters": {
|
|
2678
|
+
* "fieldId": "description",
|
|
2679
|
+
* "fieldValue": "[\"Done\"]",
|
|
2680
|
+
* "comparator": "=",
|
|
2681
|
+
* "comparisonType": "STRING"
|
|
2682
|
+
* }
|
|
2683
|
+
* }
|
|
2684
|
+
* ```
|
|
2603
2685
|
*
|
|
2604
2686
|
* Parameters:
|
|
2605
2687
|
*
|
|
@@ -2618,20 +2700,21 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2618
2700
|
* roles, group memberships, and permissions, maintaining control over who can
|
|
2619
2701
|
* transition an issue. This condition evaluates as `true` if any of the following
|
|
2620
2702
|
* criteria is met.
|
|
2621
|
-
*
|
|
2622
|
-
*
|
|
2623
|
-
*
|
|
2624
|
-
*
|
|
2625
|
-
*
|
|
2626
|
-
*
|
|
2627
|
-
*
|
|
2628
|
-
*
|
|
2629
|
-
*
|
|
2630
|
-
*
|
|
2703
|
+
* ```
|
|
2704
|
+
* {
|
|
2705
|
+
* "ruleKey": "system:restrict-issue-transition",
|
|
2706
|
+
* "parameters": {
|
|
2707
|
+
* "accountIds": "allow-reporter,5e68ac137d64450d01a77fa0",
|
|
2708
|
+
* "roleIds": "10002,10004",
|
|
2709
|
+
* "groupIds": "703ff44a-7dc8-4f4b-9aa6-a65bf3574fa4",
|
|
2710
|
+
* "permissionKeys": "ADMINISTER_PROJECTS",
|
|
2711
|
+
* "groupCustomFields": "customfield_10028",
|
|
2712
|
+
* "allowUserCustomFields":
|
|
2631
2713
|
* "customfield_10072,customfield_10144,customfield_10007",
|
|
2632
|
-
*
|
|
2633
|
-
*
|
|
2634
|
-
*
|
|
2714
|
+
* "denyUserCustomFields": "customfield_10107"
|
|
2715
|
+
* }
|
|
2716
|
+
* }
|
|
2717
|
+
* ```
|
|
2635
2718
|
*
|
|
2636
2719
|
* Parameters:
|
|
2637
2720
|
*
|
|
@@ -2665,17 +2748,18 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2665
2748
|
*
|
|
2666
2749
|
* A condition that evaluates based on an issue's previous status(es) and specific
|
|
2667
2750
|
* criteria.
|
|
2668
|
-
*
|
|
2669
|
-
*
|
|
2670
|
-
*
|
|
2671
|
-
*
|
|
2672
|
-
*
|
|
2673
|
-
*
|
|
2674
|
-
*
|
|
2675
|
-
*
|
|
2676
|
-
*
|
|
2677
|
-
*
|
|
2678
|
-
*
|
|
2751
|
+
* ```
|
|
2752
|
+
* {
|
|
2753
|
+
* "ruleKey" : "system:previous-status-condition"
|
|
2754
|
+
* "parameters" : {
|
|
2755
|
+
* "previousStatusIds" : "10004",
|
|
2756
|
+
* "not": "true",
|
|
2757
|
+
* "mostRecentStatusOnly" : "true",
|
|
2758
|
+
* "includeCurrentStatus": "true",
|
|
2759
|
+
* "ignoreLoopTransitions": "true"
|
|
2760
|
+
* }
|
|
2761
|
+
* }
|
|
2762
|
+
* ```
|
|
2679
2763
|
*
|
|
2680
2764
|
* Parameters:
|
|
2681
2765
|
*
|
|
@@ -2695,14 +2779,15 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2695
2779
|
*
|
|
2696
2780
|
* A condition to block the parent\\u2019s issue transition depending on the
|
|
2697
2781
|
* child\\u2019s issue status.
|
|
2698
|
-
*
|
|
2699
|
-
*
|
|
2700
|
-
*
|
|
2701
|
-
*
|
|
2702
|
-
*
|
|
2703
|
-
*
|
|
2704
|
-
*
|
|
2705
|
-
*
|
|
2782
|
+
* ```
|
|
2783
|
+
* {
|
|
2784
|
+
* "ruleKey" : "system:parent-or-child-blocking-condition"
|
|
2785
|
+
* "parameters" : {
|
|
2786
|
+
* "blocker" : "CHILD",
|
|
2787
|
+
* "statusIds" : "1,2,3"
|
|
2788
|
+
* }
|
|
2789
|
+
* }
|
|
2790
|
+
* ```
|
|
2706
2791
|
*
|
|
2707
2792
|
* Parameters:
|
|
2708
2793
|
*
|
|
@@ -2713,14 +2798,15 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2713
2798
|
*
|
|
2714
2799
|
* A condition preventing the user from performing, if the user has already
|
|
2715
2800
|
* performed a transition on the issue.
|
|
2716
|
-
*
|
|
2717
|
-
*
|
|
2718
|
-
*
|
|
2719
|
-
*
|
|
2720
|
-
*
|
|
2721
|
-
*
|
|
2722
|
-
*
|
|
2723
|
-
*
|
|
2801
|
+
* ```
|
|
2802
|
+
* {
|
|
2803
|
+
* "ruleKey": "system:separation-of-duties",
|
|
2804
|
+
* "parameters": {
|
|
2805
|
+
* "fromStatusId": "10161",
|
|
2806
|
+
* "toStatusId": "10160"
|
|
2807
|
+
* }
|
|
2808
|
+
* }
|
|
2809
|
+
* ```
|
|
2724
2810
|
*
|
|
2725
2811
|
* Parameters:
|
|
2726
2812
|
*
|
|
@@ -2735,13 +2821,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2735
2821
|
*
|
|
2736
2822
|
* A condition preventing all users from transitioning the issue can also
|
|
2737
2823
|
* optionally include APIs as well.
|
|
2738
|
-
*
|
|
2739
|
-
*
|
|
2740
|
-
*
|
|
2741
|
-
*
|
|
2742
|
-
*
|
|
2743
|
-
*
|
|
2744
|
-
*
|
|
2824
|
+
* ```
|
|
2825
|
+
* {
|
|
2826
|
+
* "ruleKey": "system:restrict-from-all-users",
|
|
2827
|
+
* "parameters": {
|
|
2828
|
+
* "restrictMode": "users"
|
|
2829
|
+
* }
|
|
2830
|
+
* }
|
|
2831
|
+
* ```
|
|
2745
2832
|
*
|
|
2746
2833
|
* Parameters:
|
|
2747
2834
|
*
|
|
@@ -2752,13 +2839,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2752
2839
|
*
|
|
2753
2840
|
* Block an issue transition until approval. Note: This is only supported in
|
|
2754
2841
|
* team-managed projects.
|
|
2755
|
-
*
|
|
2756
|
-
*
|
|
2757
|
-
*
|
|
2758
|
-
*
|
|
2759
|
-
*
|
|
2760
|
-
*
|
|
2761
|
-
*
|
|
2842
|
+
* ```
|
|
2843
|
+
* {
|
|
2844
|
+
* "ruleKey": "system:jsd-approvals-block-until-approved",
|
|
2845
|
+
* "parameters": {
|
|
2846
|
+
* "approvalConfigurationJson": "{"statusExternalUuid...}"
|
|
2847
|
+
* }
|
|
2848
|
+
* }
|
|
2849
|
+
* ```
|
|
2762
2850
|
*
|
|
2763
2851
|
* Parameters:
|
|
2764
2852
|
*
|
|
@@ -2769,13 +2857,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2769
2857
|
*
|
|
2770
2858
|
* Block an issue transition until rejected. Note: This is only supported in
|
|
2771
2859
|
* team-managed projects.
|
|
2772
|
-
*
|
|
2773
|
-
*
|
|
2774
|
-
*
|
|
2775
|
-
*
|
|
2776
|
-
*
|
|
2777
|
-
*
|
|
2778
|
-
*
|
|
2860
|
+
* ```
|
|
2861
|
+
* {
|
|
2862
|
+
* "ruleKey": "system:jsd-approvals-block-until-rejected",
|
|
2863
|
+
* "parameters": {
|
|
2864
|
+
* "approvalConfigurationJson": "{"statusExternalUuid...}"
|
|
2865
|
+
* }
|
|
2866
|
+
* }
|
|
2867
|
+
* ```
|
|
2779
2868
|
*
|
|
2780
2869
|
* Parameters:
|
|
2781
2870
|
*
|
|
@@ -2786,11 +2875,12 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2786
2875
|
*
|
|
2787
2876
|
* Condition to block issue transition if there is pending approval. Note: This is
|
|
2788
2877
|
* only supported in company-managed projects.
|
|
2789
|
-
*
|
|
2790
|
-
*
|
|
2791
|
-
*
|
|
2792
|
-
*
|
|
2793
|
-
*
|
|
2878
|
+
* ```
|
|
2879
|
+
* {
|
|
2880
|
+
* "ruleKey": "system:block-in-progress-approval",
|
|
2881
|
+
* "parameters": {}
|
|
2882
|
+
* }
|
|
2883
|
+
* ```
|
|
2794
2884
|
*
|
|
2795
2885
|
* #### Post functions ####
|
|
2796
2886
|
*
|
|
@@ -2800,14 +2890,15 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2800
2890
|
* ##### Change assignee #####
|
|
2801
2891
|
*
|
|
2802
2892
|
* A post function rule that changes the assignee of an issue after a transition.
|
|
2803
|
-
*
|
|
2804
|
-
*
|
|
2805
|
-
*
|
|
2806
|
-
*
|
|
2807
|
-
*
|
|
2808
|
-
*
|
|
2809
|
-
*
|
|
2810
|
-
*
|
|
2893
|
+
* ```
|
|
2894
|
+
* {
|
|
2895
|
+
* "ruleKey": "system:change-assignee",
|
|
2896
|
+
* "parameters": {
|
|
2897
|
+
* "type": "to-selected-user",
|
|
2898
|
+
* "accountId": "example-account-id"
|
|
2899
|
+
* }
|
|
2900
|
+
* }
|
|
2901
|
+
* ```
|
|
2811
2902
|
*
|
|
2812
2903
|
* Parameters:
|
|
2813
2904
|
*
|
|
@@ -2822,15 +2913,16 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2822
2913
|
* A post function that automates the process of copying values between fields
|
|
2823
2914
|
* during a specific transition, ensuring data consistency and reducing manual
|
|
2824
2915
|
* effort.
|
|
2825
|
-
*
|
|
2826
|
-
*
|
|
2827
|
-
*
|
|
2828
|
-
*
|
|
2829
|
-
*
|
|
2830
|
-
*
|
|
2831
|
-
*
|
|
2832
|
-
*
|
|
2833
|
-
*
|
|
2916
|
+
* ```
|
|
2917
|
+
* {
|
|
2918
|
+
* "ruleKey": "system:copy-value-from-other-field",
|
|
2919
|
+
* "parameters": {
|
|
2920
|
+
* "sourceFieldKey": "description",
|
|
2921
|
+
* "targetFieldKey": "components",
|
|
2922
|
+
* "issueSource": "SAME"
|
|
2923
|
+
* }
|
|
2924
|
+
* }
|
|
2925
|
+
* ```
|
|
2834
2926
|
*
|
|
2835
2927
|
* Parameters:
|
|
2836
2928
|
*
|
|
@@ -2844,15 +2936,16 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2844
2936
|
* ##### Update field #####
|
|
2845
2937
|
*
|
|
2846
2938
|
* A post function that updates or appends a specific field with the given value.
|
|
2847
|
-
*
|
|
2848
|
-
*
|
|
2849
|
-
*
|
|
2850
|
-
*
|
|
2851
|
-
*
|
|
2852
|
-
*
|
|
2853
|
-
*
|
|
2854
|
-
*
|
|
2855
|
-
*
|
|
2939
|
+
* ```
|
|
2940
|
+
* {
|
|
2941
|
+
* "ruleKey": "system:update-field",
|
|
2942
|
+
* "parameters": {
|
|
2943
|
+
* "field": "customfield_10056",
|
|
2944
|
+
* "value": "asdf",
|
|
2945
|
+
* "mode": "append"
|
|
2946
|
+
* }
|
|
2947
|
+
* }
|
|
2948
|
+
* ```
|
|
2856
2949
|
*
|
|
2857
2950
|
* Parameters:
|
|
2858
2951
|
*
|
|
@@ -2866,13 +2959,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2866
2959
|
*
|
|
2867
2960
|
* A post function that automatically triggers a predefined webhook when a
|
|
2868
2961
|
* transition occurs in the workflow.
|
|
2869
|
-
*
|
|
2870
|
-
*
|
|
2871
|
-
*
|
|
2872
|
-
*
|
|
2873
|
-
*
|
|
2874
|
-
*
|
|
2875
|
-
*
|
|
2962
|
+
* ```
|
|
2963
|
+
* {
|
|
2964
|
+
* "ruleKey": "system:trigger-webhook",
|
|
2965
|
+
* "parameters": {
|
|
2966
|
+
* "webhookId": "1"
|
|
2967
|
+
* }
|
|
2968
|
+
* }
|
|
2969
|
+
* ```
|
|
2876
2970
|
*
|
|
2877
2971
|
* Parameters:
|
|
2878
2972
|
*
|
|
@@ -2886,15 +2980,16 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2886
2980
|
* with an issue screen during a transition. This rule is useful for ensuring that
|
|
2887
2981
|
* users provide or modify necessary information before moving an issue to the
|
|
2888
2982
|
* next step in the workflow.
|
|
2889
|
-
*
|
|
2890
|
-
*
|
|
2891
|
-
*
|
|
2892
|
-
*
|
|
2893
|
-
*
|
|
2894
|
-
*
|
|
2895
|
-
*
|
|
2896
|
-
*
|
|
2897
|
-
*
|
|
2983
|
+
* ```
|
|
2984
|
+
* {
|
|
2985
|
+
* "ruleKey": "system:remind-people-to-update-fields",
|
|
2986
|
+
* "params": {
|
|
2987
|
+
* "remindingFieldIds": "assignee,customfield_10025",
|
|
2988
|
+
* "remindingMessage": "The message",
|
|
2989
|
+
* "remindingAlwaysAsk": "true"
|
|
2990
|
+
* }
|
|
2991
|
+
* }
|
|
2992
|
+
* ```
|
|
2898
2993
|
*
|
|
2899
2994
|
* Parameters:
|
|
2900
2995
|
*
|
|
@@ -2909,13 +3004,14 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2909
3004
|
* ##### Shared transition screen #####
|
|
2910
3005
|
*
|
|
2911
3006
|
* A common screen that is shared between transitions in a workflow.
|
|
2912
|
-
*
|
|
2913
|
-
*
|
|
2914
|
-
*
|
|
2915
|
-
*
|
|
2916
|
-
*
|
|
2917
|
-
*
|
|
2918
|
-
*
|
|
3007
|
+
* ```
|
|
3008
|
+
* {
|
|
3009
|
+
* "ruleKey": "system:transition-screen",
|
|
3010
|
+
* "params": {
|
|
3011
|
+
* "screenId": "3"
|
|
3012
|
+
* }
|
|
3013
|
+
* }
|
|
3014
|
+
* ```
|
|
2919
3015
|
*
|
|
2920
3016
|
* Parameters:
|
|
2921
3017
|
*
|
|
@@ -2926,17 +3022,18 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2926
3022
|
* ##### Connect rules #####
|
|
2927
3023
|
*
|
|
2928
3024
|
* Validator/Condition/Post function for Connect app.
|
|
2929
|
-
*
|
|
2930
|
-
*
|
|
2931
|
-
*
|
|
2932
|
-
*
|
|
2933
|
-
*
|
|
2934
|
-
*
|
|
2935
|
-
*
|
|
2936
|
-
*
|
|
2937
|
-
*
|
|
2938
|
-
*
|
|
2939
|
-
*
|
|
3025
|
+
* ```
|
|
3026
|
+
* {
|
|
3027
|
+
* "ruleKey": "connect:expression-validator",
|
|
3028
|
+
* "parameters": {
|
|
3029
|
+
* "appKey": "com.atlassian.app",
|
|
3030
|
+
* "config": "",
|
|
3031
|
+
* "id": "90ce590f-e90c-4cd3-8281-165ce41f2ac3",
|
|
3032
|
+
* "disabled": "false",
|
|
3033
|
+
* "tag": ""
|
|
3034
|
+
* }
|
|
3035
|
+
* }
|
|
3036
|
+
* ```
|
|
2940
3037
|
*
|
|
2941
3038
|
* Parameters:
|
|
2942
3039
|
*
|
|
@@ -2953,16 +3050,17 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2953
3050
|
* ##### Forge rules #####
|
|
2954
3051
|
*
|
|
2955
3052
|
* Validator/Condition/Post function for Forge app.
|
|
2956
|
-
*
|
|
2957
|
-
*
|
|
2958
|
-
*
|
|
2959
|
-
*
|
|
2960
|
-
*
|
|
3053
|
+
* ```
|
|
3054
|
+
* {
|
|
3055
|
+
* "ruleKey": "forge:expression-validator",
|
|
3056
|
+
* "parameters": {
|
|
3057
|
+
* "key":
|
|
2961
3058
|
* "ari:cloud:ecosystem::extension/{appId}/{environmentId}/static/{moduleKey}",
|
|
2962
|
-
*
|
|
2963
|
-
*
|
|
2964
|
-
*
|
|
2965
|
-
*
|
|
3059
|
+
* "config": "{"searchString":"workflow validator"}",
|
|
3060
|
+
* "id": "a865ddf6-bb3f-4a7b-9540-c2f8b3f9f6c2"
|
|
3061
|
+
* }
|
|
3062
|
+
* }
|
|
3063
|
+
* ```
|
|
2966
3064
|
*
|
|
2967
3065
|
* Parameters:
|
|
2968
3066
|
*
|
|
@@ -2974,7 +3072,9 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2974
3072
|
*
|
|
2975
3073
|
* @returns Returned if the request is successful.
|
|
2976
3074
|
*
|
|
2977
|
-
* example:
|
|
3075
|
+
* example:
|
|
3076
|
+
* ```
|
|
3077
|
+
* {
|
|
2978
3078
|
* "connectRules": [
|
|
2979
3079
|
* {
|
|
2980
3080
|
* "addonKey": "com.atlassian.jira.refapp",
|
|
@@ -2992,8 +3092,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
2992
3092
|
* "forgeRules": [
|
|
2993
3093
|
* {
|
|
2994
3094
|
* "description": "A Jira workflow validator example.",
|
|
2995
|
-
* "id":
|
|
2996
|
-
* "ari:cloud:ecosystem::extension/9df6d15f-1bbe-443e-be08-150309e8dbb0/f6a3bed3-737f-4e7a-8942-130df302b749/static/workflow-validator-example-workflow-validator",
|
|
3095
|
+
* "id": "ari:cloud:ecosystem::extension/9df6d15f-1bbe-443e-be08-150309e8dbb0/f6a3bed3-737f-4e7a-8942-130df302b749/static/workflow-validator-example-workflow-validator",
|
|
2997
3096
|
* "name": "workflow-validator",
|
|
2998
3097
|
* "ruleKey": "forge:expression-validator",
|
|
2999
3098
|
* "ruleType": "Validator"
|
|
@@ -3005,8 +3104,7 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
3005
3104
|
* ],
|
|
3006
3105
|
* "systemRules": [
|
|
3007
3106
|
* {
|
|
3008
|
-
* "description": "Automatically assign a request to someone after moving
|
|
3009
|
-
* the request using a particular transition.",
|
|
3107
|
+
* "description": "Automatically assign a request to someone after moving the request using a particular transition.",
|
|
3010
3108
|
* "incompatibleRuleKeys": [],
|
|
3011
3109
|
* "isAvailableForInitialTransition": true,
|
|
3012
3110
|
* "isVisible": true,
|
|
@@ -3019,21 +3117,21 @@ export declare class WorkflowsService extends CommonHttpService {
|
|
|
3019
3117
|
* {
|
|
3020
3118
|
* "availableTypes": [
|
|
3021
3119
|
* {
|
|
3022
|
-
* "description": "Automatically transitions the issue when a related
|
|
3023
|
-
* branch is created in a connected repository",
|
|
3120
|
+
* "description": "Automatically transitions the issue when a related branch is created in a connected repository",
|
|
3024
3121
|
* "name": "Branch created",
|
|
3025
|
-
* "type":
|
|
3026
|
-
* "com.atlassian.jira.plugins.jira-development-integration-plugin:branch-created-trigger"
|
|
3122
|
+
* "type": "com.atlassian.jira.plugins.jira-development-integration-plugin:branch-created-trigger"
|
|
3027
3123
|
* }
|
|
3028
3124
|
* ],
|
|
3029
3125
|
* "ruleKey": "system:development-triggers"
|
|
3030
3126
|
* }
|
|
3031
3127
|
* ]
|
|
3032
3128
|
* }
|
|
3033
|
-
*
|
|
3129
|
+
* ```
|
|
3130
|
+
* @path GET `/rest/api/3/workflows/capabilities`
|
|
3034
3131
|
* @scopes-current manage:jira-configuration
|
|
3035
3132
|
* @scopes-beta read:workflow:jira
|
|
3036
3133
|
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-capabilities-get
|
|
3134
|
+
* @param params
|
|
3037
3135
|
*/
|
|
3038
3136
|
workflowCapabilities: ({ workflowId, projectId, issueTypeId, }?: {
|
|
3039
3137
|
workflowId?: string | undefined;
|