@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.
Files changed (515) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +51 -19
  3. package/lib/openapi/{platform/core → core}/CommonHttpClient.d.ts +54 -3
  4. package/lib/openapi/{serviceManagement/core → core}/CommonHttpClient.js +14 -0
  5. package/lib/openapi/core/CommonHttpClient.js.map +1 -0
  6. package/lib/openapi/{software/core → core}/CommonHttpService.d.ts +17 -0
  7. package/lib/openapi/{platform/core → core}/CommonHttpService.js +11 -0
  8. package/lib/openapi/core/CommonHttpService.js.map +1 -0
  9. package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -0
  10. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +5 -5
  11. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +3 -3
  12. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  13. package/lib/openapi/platform/models/announcementBanner.d.ts +1 -1
  14. package/lib/openapi/platform/models/appDataPolicies.d.ts +1 -1
  15. package/lib/openapi/platform/models/appMigration.d.ts +13 -7
  16. package/lib/openapi/platform/models/appMigration.js.map +1 -1
  17. package/lib/openapi/platform/models/appProperties.d.ts +3 -2
  18. package/lib/openapi/platform/models/appProperties.js.map +1 -1
  19. package/lib/openapi/platform/models/auditRecords.d.ts +1 -1
  20. package/lib/openapi/platform/models/avatars.d.ts +1 -1
  21. package/lib/openapi/platform/models/classificationLevels.d.ts +1 -1
  22. package/lib/openapi/platform/models/common.d.ts +3 -5
  23. package/lib/openapi/platform/models/common.js.map +1 -1
  24. package/lib/openapi/platform/models/dashboards.d.ts +2 -3
  25. package/lib/openapi/platform/models/dashboards.js.map +1 -1
  26. package/lib/openapi/platform/models/dynamicModules.d.ts +5 -3
  27. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  28. package/lib/openapi/platform/models/filterSharing.d.ts +1 -1
  29. package/lib/openapi/platform/models/filters.d.ts +1 -1
  30. package/lib/openapi/platform/models/groupAndUserPicker.d.ts +1 -1
  31. package/lib/openapi/platform/models/groups.d.ts +1 -1
  32. package/lib/openapi/platform/models/issueAttachments.d.ts +1 -1
  33. package/lib/openapi/platform/models/issueBulkOperations.d.ts +2 -3
  34. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -1
  35. package/lib/openapi/platform/models/issueCommentProperties.d.ts +1 -1
  36. package/lib/openapi/platform/models/issueComments.d.ts +1 -1
  37. package/lib/openapi/platform/models/issueCustomFieldConfigurationApps.d.ts +1 -1
  38. package/lib/openapi/platform/models/issueCustomFieldContexts.d.ts +1 -1
  39. package/lib/openapi/platform/models/issueCustomFieldOptions.d.ts +1 -1
  40. package/lib/openapi/platform/models/issueCustomFieldOptionsApps.d.ts +1 -1
  41. package/lib/openapi/platform/models/issueCustomFieldValuesApps.d.ts +1 -1
  42. package/lib/openapi/platform/models/issueFieldConfigurations.d.ts +1 -1
  43. package/lib/openapi/platform/models/issueFields.d.ts +1 -1
  44. package/lib/openapi/platform/models/issueLinkTypes.d.ts +1 -1
  45. package/lib/openapi/platform/models/issueLinks.d.ts +1 -1
  46. package/lib/openapi/platform/models/issueNotificationSchemes.d.ts +1 -1
  47. package/lib/openapi/platform/models/issuePriorities.d.ts +1 -1
  48. package/lib/openapi/platform/models/issueProperties.d.ts +1 -1
  49. package/lib/openapi/platform/models/issueRemoteLinks.d.ts +1 -1
  50. package/lib/openapi/platform/models/issueResolutions.d.ts +1 -1
  51. package/lib/openapi/platform/models/issueSearch.d.ts +2 -3
  52. package/lib/openapi/platform/models/issueSearch.js.map +1 -1
  53. package/lib/openapi/platform/models/issueSecurityLevel.d.ts +1 -1
  54. package/lib/openapi/platform/models/issueSecuritySchemes.d.ts +1 -1
  55. package/lib/openapi/platform/models/issueTypeSchemes.d.ts +1 -1
  56. package/lib/openapi/platform/models/issueTypeScreenSchemes.d.ts +1 -1
  57. package/lib/openapi/platform/models/issueTypes.d.ts +1 -1
  58. package/lib/openapi/platform/models/issueVotes.d.ts +1 -1
  59. package/lib/openapi/platform/models/issueWatchers.d.ts +1 -1
  60. package/lib/openapi/platform/models/issueWorklogs.d.ts +1 -1
  61. package/lib/openapi/platform/models/issues.d.ts +16 -14
  62. package/lib/openapi/platform/models/issues.js.map +1 -1
  63. package/lib/openapi/platform/models/jiraExpressions.d.ts +8 -6
  64. package/lib/openapi/platform/models/jiraExpressions.js.map +1 -1
  65. package/lib/openapi/platform/models/jiraSettings.d.ts +1 -1
  66. package/lib/openapi/platform/models/jql.d.ts +9 -5
  67. package/lib/openapi/platform/models/jql.js.map +1 -1
  68. package/lib/openapi/platform/models/jqlFunctionsApps.d.ts +1 -1
  69. package/lib/openapi/platform/models/labels.d.ts +1 -1
  70. package/lib/openapi/platform/models/licenseMetrics.d.ts +1 -1
  71. package/lib/openapi/platform/models/myself.d.ts +1 -1
  72. package/lib/openapi/platform/models/permissionSchemes.d.ts +1 -1
  73. package/lib/openapi/platform/models/permissions.d.ts +2 -3
  74. package/lib/openapi/platform/models/permissions.js.map +1 -1
  75. package/lib/openapi/platform/models/prioritySchemes.d.ts +1 -1
  76. package/lib/openapi/platform/models/projectAvatars.d.ts +1 -1
  77. package/lib/openapi/platform/models/projectClassificationLevels.d.ts +1 -1
  78. package/lib/openapi/platform/models/projectComponents.d.ts +1 -1
  79. package/lib/openapi/platform/models/projectEmail.d.ts +1 -1
  80. package/lib/openapi/platform/models/projectFeatures.d.ts +1 -1
  81. package/lib/openapi/platform/models/projectPermissionSchemes.d.ts +1 -1
  82. package/lib/openapi/platform/models/projectRoleActors.d.ts +1 -1
  83. package/lib/openapi/platform/models/projectRoles.d.ts +1 -1
  84. package/lib/openapi/platform/models/projectTypes.d.ts +1 -1
  85. package/lib/openapi/platform/models/projectVersions.d.ts +1 -1
  86. package/lib/openapi/platform/models/projects.d.ts +1 -1
  87. package/lib/openapi/platform/models/screenSchemes.d.ts +2 -2
  88. package/lib/openapi/platform/models/screenSchemes.js +1 -1
  89. package/lib/openapi/platform/models/screenSchemes.js.map +1 -1
  90. package/lib/openapi/platform/models/screenTabFields.d.ts +1 -1
  91. package/lib/openapi/platform/models/screens.d.ts +1 -1
  92. package/lib/openapi/platform/models/serverInfo.d.ts +1 -1
  93. package/lib/openapi/platform/models/serviceRegistry.d.ts +3 -2
  94. package/lib/openapi/platform/models/serviceRegistry.js.map +1 -1
  95. package/lib/openapi/platform/models/status.d.ts +1 -1
  96. package/lib/openapi/platform/models/timeTracking.d.ts +1 -1
  97. package/lib/openapi/platform/models/uiModificationsApps.d.ts +1 -1
  98. package/lib/openapi/platform/models/userSearch.d.ts +1 -1
  99. package/lib/openapi/platform/models/users.d.ts +1 -1
  100. package/lib/openapi/platform/models/webhooks.d.ts +1 -1
  101. package/lib/openapi/platform/models/workflowSchemeDrafts.d.ts +1 -1
  102. package/lib/openapi/platform/models/workflowSchemeProjectAssociations.d.ts +1 -1
  103. package/lib/openapi/platform/models/workflowSchemes.d.ts +1 -1
  104. package/lib/openapi/platform/models/workflowTransitionProperties.d.ts +1 -1
  105. package/lib/openapi/platform/models/workflowTransitionRules.d.ts +1 -1
  106. package/lib/openapi/platform/models/workflows.d.ts +104 -70
  107. package/lib/openapi/platform/models/workflows.js +12 -0
  108. package/lib/openapi/platform/models/workflows.js.map +1 -1
  109. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +12 -9
  110. package/lib/openapi/platform/services/AnnouncementBannerService.js +10 -7
  111. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  112. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +12 -5
  113. package/lib/openapi/platform/services/AppDataPoliciesService.js +13 -6
  114. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  115. package/lib/openapi/platform/services/AppMigrationService.d.ts +13 -6
  116. package/lib/openapi/platform/services/AppMigrationService.js +12 -6
  117. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  118. package/lib/openapi/platform/services/AppPropertiesService.d.ts +43 -19
  119. package/lib/openapi/platform/services/AppPropertiesService.js +44 -20
  120. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  121. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +20 -21
  122. package/lib/openapi/platform/services/ApplicationRolesService.js +21 -22
  123. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  124. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -3
  125. package/lib/openapi/platform/services/AuditRecordsService.js +8 -4
  126. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  127. package/lib/openapi/platform/services/AvatarsService.d.ts +45 -38
  128. package/lib/openapi/platform/services/AvatarsService.js +45 -38
  129. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  130. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +16 -22
  131. package/lib/openapi/platform/services/ClassificationLevelsService.js +17 -23
  132. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  133. package/lib/openapi/platform/services/DashboardsService.d.ts +140 -146
  134. package/lib/openapi/platform/services/DashboardsService.js +122 -130
  135. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  136. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -4
  137. package/lib/openapi/platform/services/DynamicModulesService.js +7 -5
  138. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  139. package/lib/openapi/platform/services/FilterSharingService.d.ts +73 -96
  140. package/lib/openapi/platform/services/FilterSharingService.js +70 -95
  141. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  142. package/lib/openapi/platform/services/FiltersService.d.ts +179 -258
  143. package/lib/openapi/platform/services/FiltersService.js +174 -256
  144. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  145. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +9 -7
  146. package/lib/openapi/platform/services/GroupAndUserPickerService.js +10 -8
  147. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  148. package/lib/openapi/platform/services/GroupsService.d.ts +43 -27
  149. package/lib/openapi/platform/services/GroupsService.js +40 -26
  150. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  151. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +174 -170
  152. package/lib/openapi/platform/services/IssueAttachmentsService.js +175 -171
  153. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  154. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +36 -20
  155. package/lib/openapi/platform/services/IssueBulkOperationsService.js +35 -20
  156. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -1
  157. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +20 -10
  158. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +21 -11
  159. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  160. package/lib/openapi/platform/services/IssueCommentsService.d.ts +66 -81
  161. package/lib/openapi/platform/services/IssueCommentsService.js +59 -71
  162. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  163. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -5
  164. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +10 -5
  165. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  166. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +72 -38
  167. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +55 -27
  168. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  169. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +51 -29
  170. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +48 -28
  171. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  172. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +38 -17
  173. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +33 -15
  174. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  175. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +9 -5
  176. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +6 -4
  177. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  178. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +78 -35
  179. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +63 -28
  180. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  181. package/lib/openapi/platform/services/IssueFieldsService.d.ts +57 -47
  182. package/lib/openapi/platform/services/IssueFieldsService.js +52 -42
  183. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  184. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +30 -12
  185. package/lib/openapi/platform/services/IssueLinkTypesService.js +27 -11
  186. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  187. package/lib/openapi/platform/services/IssueLinksService.d.ts +21 -24
  188. package/lib/openapi/platform/services/IssueLinksService.js +20 -24
  189. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  190. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +8 -4
  191. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +9 -5
  192. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  193. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +64 -70
  194. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +59 -68
  195. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  196. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +45 -27
  197. package/lib/openapi/platform/services/IssuePrioritiesService.js +38 -24
  198. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  199. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +34 -17
  200. package/lib/openapi/platform/services/IssuePropertiesService.js +29 -15
  201. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  202. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +42 -28
  203. package/lib/openapi/platform/services/IssueRemoteLinksService.js +39 -27
  204. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  205. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +40 -17
  206. package/lib/openapi/platform/services/IssueResolutionsService.js +33 -14
  207. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  208. package/lib/openapi/platform/services/IssueSearchService.d.ts +86 -139
  209. package/lib/openapi/platform/services/IssueSearchService.js +81 -137
  210. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  211. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +20 -19
  212. package/lib/openapi/platform/services/IssueSecurityLevelService.js +21 -20
  213. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  214. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +78 -40
  215. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +65 -34
  216. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  217. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +22 -11
  218. package/lib/openapi/platform/services/IssueTypePropertiesService.js +21 -11
  219. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  220. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +53 -34
  221. package/lib/openapi/platform/services/IssueTypeSchemesService.js +42 -26
  222. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  223. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +56 -27
  224. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +45 -22
  225. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  226. package/lib/openapi/platform/services/IssueTypesService.d.ts +53 -42
  227. package/lib/openapi/platform/services/IssueTypesService.js +50 -41
  228. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  229. package/lib/openapi/platform/services/IssueVotesService.d.ts +17 -17
  230. package/lib/openapi/platform/services/IssueVotesService.js +18 -18
  231. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  232. package/lib/openapi/platform/services/IssueWatchersService.d.ts +20 -10
  233. package/lib/openapi/platform/services/IssueWatchersService.js +19 -10
  234. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  235. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +20 -13
  236. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +21 -14
  237. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  238. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +69 -67
  239. package/lib/openapi/platform/services/IssueWorklogsService.js +64 -65
  240. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  241. package/lib/openapi/platform/services/IssuesService.d.ts +226 -228
  242. package/lib/openapi/platform/services/IssuesService.js +197 -209
  243. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  244. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +25 -24
  245. package/lib/openapi/platform/services/JiraExpressionsService.js +21 -20
  246. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  247. package/lib/openapi/platform/services/JiraSettingsService.d.ts +21 -9
  248. package/lib/openapi/platform/services/JiraSettingsService.js +20 -9
  249. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  250. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +13 -9
  251. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +12 -9
  252. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  253. package/lib/openapi/platform/services/JqlService.d.ts +55 -43
  254. package/lib/openapi/platform/services/JqlService.js +45 -33
  255. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  256. package/lib/openapi/platform/services/LabelsService.d.ts +7 -3
  257. package/lib/openapi/platform/services/LabelsService.js +8 -4
  258. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  259. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +17 -7
  260. package/lib/openapi/platform/services/LicenseMetricsService.js +18 -8
  261. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  262. package/lib/openapi/platform/services/MyselfService.d.ts +28 -21
  263. package/lib/openapi/platform/services/MyselfService.js +27 -21
  264. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  265. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +67 -55
  266. package/lib/openapi/platform/services/PermissionSchemesService.js +62 -53
  267. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  268. package/lib/openapi/platform/services/PermissionsService.d.ts +23 -11
  269. package/lib/openapi/platform/services/PermissionsService.js +22 -11
  270. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  271. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +60 -26
  272. package/lib/openapi/platform/services/PrioritySchemesService.js +54 -23
  273. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  274. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +27 -24
  275. package/lib/openapi/platform/services/ProjectAvatarsService.js +26 -24
  276. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  277. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +30 -12
  278. package/lib/openapi/platform/services/ProjectCategoriesService.js +27 -11
  279. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  280. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +17 -14
  281. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +15 -12
  282. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  283. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +198 -321
  284. package/lib/openapi/platform/services/ProjectComponentsService.js +195 -320
  285. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  286. package/lib/openapi/platform/services/ProjectEmailService.d.ts +11 -5
  287. package/lib/openapi/platform/services/ProjectEmailService.js +10 -5
  288. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  289. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +23 -22
  290. package/lib/openapi/platform/services/ProjectFeaturesService.js +22 -22
  291. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  292. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +19 -7
  293. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +20 -8
  294. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  295. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +32 -23
  296. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +31 -23
  297. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  298. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +22 -11
  299. package/lib/openapi/platform/services/ProjectPropertiesService.js +21 -11
  300. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  301. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +47 -33
  302. package/lib/openapi/platform/services/ProjectRoleActorsService.js +42 -31
  303. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  304. package/lib/openapi/platform/services/ProjectRolesService.d.ts +67 -43
  305. package/lib/openapi/platform/services/ProjectRolesService.js +62 -41
  306. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  307. package/lib/openapi/platform/services/ProjectTypesService.d.ts +29 -21
  308. package/lib/openapi/platform/services/ProjectTypesService.js +30 -22
  309. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  310. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +87 -36
  311. package/lib/openapi/platform/services/ProjectVersionsService.js +78 -32
  312. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  313. package/lib/openapi/platform/services/ProjectsService.d.ts +207 -313
  314. package/lib/openapi/platform/services/ProjectsService.js +203 -310
  315. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  316. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +22 -11
  317. package/lib/openapi/platform/services/ScreenSchemesService.js +19 -10
  318. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  319. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +15 -7
  320. package/lib/openapi/platform/services/ScreenTabFieldsService.js +14 -7
  321. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  322. package/lib/openapi/platform/services/ScreenTabsService.d.ts +27 -11
  323. package/lib/openapi/platform/services/ScreenTabsService.js +26 -11
  324. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  325. package/lib/openapi/platform/services/ScreensService.d.ts +42 -28
  326. package/lib/openapi/platform/services/ScreensService.js +38 -25
  327. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  328. package/lib/openapi/platform/services/ServerInfoService.d.ts +6 -3
  329. package/lib/openapi/platform/services/ServerInfoService.js +7 -4
  330. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  331. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +5 -3
  332. package/lib/openapi/platform/services/ServiceRegistryService.js +4 -3
  333. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  334. package/lib/openapi/platform/services/StatusService.d.ts +29 -15
  335. package/lib/openapi/platform/services/StatusService.js +26 -14
  336. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  337. package/lib/openapi/platform/services/TasksService.d.ts +9 -4
  338. package/lib/openapi/platform/services/TasksService.js +10 -5
  339. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  340. package/lib/openapi/platform/services/TimeTrackingService.d.ts +31 -14
  341. package/lib/openapi/platform/services/TimeTrackingService.js +27 -12
  342. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  343. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +26 -19
  344. package/lib/openapi/platform/services/UiModificationsAppsService.js +23 -18
  345. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  346. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -10
  347. package/lib/openapi/platform/services/UserPropertiesService.js +21 -11
  348. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  349. package/lib/openapi/platform/services/UserSearchService.d.ts +95 -126
  350. package/lib/openapi/platform/services/UserSearchService.js +96 -127
  351. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  352. package/lib/openapi/platform/services/UsersService.d.ts +97 -95
  353. package/lib/openapi/platform/services/UsersService.js +96 -95
  354. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  355. package/lib/openapi/platform/services/WebhooksService.d.ts +35 -18
  356. package/lib/openapi/platform/services/WebhooksService.js +30 -16
  357. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  358. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +133 -147
  359. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +124 -143
  360. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  361. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +13 -10
  362. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +12 -10
  363. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  364. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +121 -82
  365. package/lib/openapi/platform/services/WorkflowSchemesService.js +106 -75
  366. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  367. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +12 -5
  368. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +13 -6
  369. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  370. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +12 -5
  371. package/lib/openapi/platform/services/WorkflowStatusesService.js +13 -6
  372. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  373. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +25 -10
  374. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +22 -9
  375. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  376. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +25 -13
  377. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +22 -12
  378. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  379. package/lib/openapi/platform/services/WorkflowsService.d.ts +791 -693
  380. package/lib/openapi/platform/services/WorkflowsService.js +754 -644
  381. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  382. package/lib/openapi/platform/validationSchemaStorage.d.ts +1 -1
  383. package/lib/openapi/platform/validationSchemaStorage.js +1 -1
  384. package/lib/openapi/platform/validationSchemaStorage.js.map +1 -1
  385. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +3 -3
  386. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +3 -3
  387. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js.map +1 -1
  388. package/lib/openapi/serviceManagement/models/assets.d.ts +1 -1
  389. package/lib/openapi/serviceManagement/models/common.d.ts +1 -1
  390. package/lib/openapi/serviceManagement/models/customer.d.ts +1 -1
  391. package/lib/openapi/serviceManagement/models/info.d.ts +1 -1
  392. package/lib/openapi/serviceManagement/models/knowledgebase.d.ts +1 -1
  393. package/lib/openapi/serviceManagement/models/organization.d.ts +1 -1
  394. package/lib/openapi/serviceManagement/models/request.d.ts +1 -1
  395. package/lib/openapi/serviceManagement/models/servicedesk.d.ts +4 -7
  396. package/lib/openapi/serviceManagement/models/servicedesk.js.map +1 -1
  397. package/lib/openapi/serviceManagement/services/AssetsService.d.ts +11 -8
  398. package/lib/openapi/serviceManagement/services/AssetsService.js +12 -9
  399. package/lib/openapi/serviceManagement/services/AssetsService.js.map +1 -1
  400. package/lib/openapi/serviceManagement/services/CustomerService.d.ts +17 -20
  401. package/lib/openapi/serviceManagement/services/CustomerService.js +16 -20
  402. package/lib/openapi/serviceManagement/services/CustomerService.js.map +1 -1
  403. package/lib/openapi/serviceManagement/services/InfoService.d.ts +6 -3
  404. package/lib/openapi/serviceManagement/services/InfoService.js +7 -4
  405. package/lib/openapi/serviceManagement/services/InfoService.js.map +1 -1
  406. package/lib/openapi/serviceManagement/services/KnowledgebaseService.d.ts +11 -11
  407. package/lib/openapi/serviceManagement/services/KnowledgebaseService.js +12 -12
  408. package/lib/openapi/serviceManagement/services/KnowledgebaseService.js.map +1 -1
  409. package/lib/openapi/serviceManagement/services/OrganizationService.d.ts +108 -104
  410. package/lib/openapi/serviceManagement/services/OrganizationService.js +97 -99
  411. package/lib/openapi/serviceManagement/services/OrganizationService.js.map +1 -1
  412. package/lib/openapi/serviceManagement/services/RequestService.d.ts +420 -578
  413. package/lib/openapi/serviceManagement/services/RequestService.js +405 -571
  414. package/lib/openapi/serviceManagement/services/RequestService.js.map +1 -1
  415. package/lib/openapi/serviceManagement/services/RequesttypeService.d.ts +25 -39
  416. package/lib/openapi/serviceManagement/services/RequesttypeService.js +26 -40
  417. package/lib/openapi/serviceManagement/services/RequesttypeService.js.map +1 -1
  418. package/lib/openapi/serviceManagement/services/ServicedeskService.d.ts +195 -215
  419. package/lib/openapi/serviceManagement/services/ServicedeskService.js +190 -213
  420. package/lib/openapi/serviceManagement/services/ServicedeskService.js.map +1 -1
  421. package/lib/openapi/serviceManagement/validationSchemaStorage.d.ts +1 -1
  422. package/lib/openapi/serviceManagement/validationSchemaStorage.js +1 -1
  423. package/lib/openapi/serviceManagement/validationSchemaStorage.js.map +1 -1
  424. package/lib/openapi/software/BaseJiraSoftwareApiClient.d.ts +2 -2
  425. package/lib/openapi/software/BaseJiraSoftwareApiClient.js +2 -2
  426. package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
  427. package/lib/openapi/software/models/board.d.ts +4 -7
  428. package/lib/openapi/software/models/board.js.map +1 -1
  429. package/lib/openapi/software/models/builds.d.ts +39 -20
  430. package/lib/openapi/software/models/builds.js.map +1 -1
  431. package/lib/openapi/software/models/common.d.ts +8 -6
  432. package/lib/openapi/software/models/common.js.map +1 -1
  433. package/lib/openapi/software/models/deployments.d.ts +37 -18
  434. package/lib/openapi/software/models/deployments.js.map +1 -1
  435. package/lib/openapi/software/models/devOpsComponents.d.ts +7 -4
  436. package/lib/openapi/software/models/devOpsComponents.js.map +1 -1
  437. package/lib/openapi/software/models/developmentInformation.d.ts +107 -55
  438. package/lib/openapi/software/models/developmentInformation.js.map +1 -1
  439. package/lib/openapi/software/models/epic.d.ts +1 -1
  440. package/lib/openapi/software/models/featureFlags.d.ts +17 -9
  441. package/lib/openapi/software/models/featureFlags.js.map +1 -1
  442. package/lib/openapi/software/models/issue.d.ts +1 -1
  443. package/lib/openapi/software/models/operations.d.ts +61 -31
  444. package/lib/openapi/software/models/operations.js.map +1 -1
  445. package/lib/openapi/software/models/remoteLinks.d.ts +37 -19
  446. package/lib/openapi/software/models/remoteLinks.js.map +1 -1
  447. package/lib/openapi/software/models/securityInformation.d.ts +53 -27
  448. package/lib/openapi/software/models/securityInformation.js.map +1 -1
  449. package/lib/openapi/software/models/sprint.d.ts +1 -1
  450. package/lib/openapi/software/services/BacklogService.d.ts +14 -8
  451. package/lib/openapi/software/services/BacklogService.js +11 -7
  452. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  453. package/lib/openapi/software/services/BoardService.d.ts +200 -204
  454. package/lib/openapi/software/services/BoardService.js +197 -203
  455. package/lib/openapi/software/services/BoardService.js.map +1 -1
  456. package/lib/openapi/software/services/BuildsService.d.ts +11 -9
  457. package/lib/openapi/software/services/BuildsService.js +12 -10
  458. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  459. package/lib/openapi/software/services/DeploymentsService.d.ts +13 -13
  460. package/lib/openapi/software/services/DeploymentsService.js +14 -14
  461. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  462. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +33 -20
  463. package/lib/openapi/software/services/DevOpsComponentsService.js +12 -10
  464. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  465. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +14 -9
  466. package/lib/openapi/software/services/DevelopmentInformationService.js +15 -10
  467. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  468. package/lib/openapi/software/services/EpicService.d.ts +67 -76
  469. package/lib/openapi/software/services/EpicService.js +60 -73
  470. package/lib/openapi/software/services/EpicService.js.map +1 -1
  471. package/lib/openapi/software/services/FeatureFlagsService.d.ts +11 -9
  472. package/lib/openapi/software/services/FeatureFlagsService.js +12 -10
  473. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  474. package/lib/openapi/software/services/IssueService.d.ts +45 -44
  475. package/lib/openapi/software/services/IssueService.js +42 -43
  476. package/lib/openapi/software/services/IssueService.js.map +1 -1
  477. package/lib/openapi/software/services/OperationsService.d.ts +66 -38
  478. package/lib/openapi/software/services/OperationsService.js +23 -17
  479. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  480. package/lib/openapi/software/services/RemoteLinksService.d.ts +18 -13
  481. package/lib/openapi/software/services/RemoteLinksService.js +12 -10
  482. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  483. package/lib/openapi/software/services/SecurityInformationService.d.ts +19 -13
  484. package/lib/openapi/software/services/SecurityInformationService.js +20 -14
  485. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  486. package/lib/openapi/software/services/SprintService.d.ts +79 -55
  487. package/lib/openapi/software/services/SprintService.js +70 -51
  488. package/lib/openapi/software/services/SprintService.js.map +1 -1
  489. package/lib/openapi/software/validationSchemaStorage.d.ts +1 -1
  490. package/lib/openapi/software/validationSchemaStorage.js +1 -1
  491. package/lib/openapi/software/validationSchemaStorage.js.map +1 -1
  492. package/package.json +3 -3
  493. package/lib/openapi/platform/core/CommonHttpClient.js +0 -390
  494. package/lib/openapi/platform/core/CommonHttpClient.js.map +0 -1
  495. package/lib/openapi/platform/core/CommonHttpService.d.ts +0 -9
  496. package/lib/openapi/platform/core/CommonHttpService.js.map +0 -1
  497. package/lib/openapi/platform/core/CommonValidationSchemaStorage.js.map +0 -1
  498. package/lib/openapi/serviceManagement/core/CommonHttpClient.d.ts +0 -196
  499. package/lib/openapi/serviceManagement/core/CommonHttpClient.js.map +0 -1
  500. package/lib/openapi/serviceManagement/core/CommonHttpService.d.ts +0 -9
  501. package/lib/openapi/serviceManagement/core/CommonHttpService.js +0 -29
  502. package/lib/openapi/serviceManagement/core/CommonHttpService.js.map +0 -1
  503. package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.d.ts +0 -35
  504. package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js +0 -65
  505. package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js.map +0 -1
  506. package/lib/openapi/software/core/CommonHttpClient.d.ts +0 -196
  507. package/lib/openapi/software/core/CommonHttpClient.js +0 -390
  508. package/lib/openapi/software/core/CommonHttpClient.js.map +0 -1
  509. package/lib/openapi/software/core/CommonHttpService.js +0 -29
  510. package/lib/openapi/software/core/CommonHttpService.js.map +0 -1
  511. package/lib/openapi/software/core/CommonValidationSchemaStorage.d.ts +0 -35
  512. package/lib/openapi/software/core/CommonValidationSchemaStorage.js +0 -65
  513. package/lib/openapi/software/core/CommonValidationSchemaStorage.js.map +0 -1
  514. /package/lib/openapi/{platform/core → core}/CommonValidationSchemaStorage.d.ts +0 -0
  515. /package/lib/openapi/{platform/core → core}/CommonValidationSchemaStorage.js +0 -0
@@ -5,8 +5,8 @@ exports.WorkflowsService = void 0;
5
5
  // This file is generated by "api-typescript-generator".
6
6
  // To update this file run "yarn build:openapi".
7
7
  const zod_1 = require("zod");
8
- const commonHttpClient = require("../core/CommonHttpClient");
9
- const CommonHttpService_1 = require("../core/CommonHttpService");
8
+ const commonHttpClient = require("../../core/CommonHttpClient");
9
+ const CommonHttpService_1 = require("../../core/CommonHttpService");
10
10
  const workflows_1 = require("../models/workflows");
11
11
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
12
  /**
@@ -38,32 +38,35 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
38
38
  * ##### Always false condition #####
39
39
  *
40
40
  * A condition that always fails.
41
- *
42
- * {
43
- * "type": "AlwaysFalseCondition"
44
- * }
41
+ * ```
42
+ * {
43
+ * "type": "AlwaysFalseCondition"
44
+ * }
45
+ * ```
45
46
  *
46
47
  * ##### Block transition until approval #####
47
48
  *
48
49
  * A condition that blocks issue transition if there is a pending approval.
49
- *
50
- * {
51
- * "type": "BlockInProgressApprovalCondition"
52
- * }
50
+ * ```
51
+ * {
52
+ * "type": "BlockInProgressApprovalCondition"
53
+ * }
54
+ * ```
53
55
  *
54
56
  * ##### Compare number custom field condition #####
55
57
  *
56
58
  * A condition that allows transition if a comparison between a number custom
57
59
  * field and a value is true.
58
- *
59
- * {
60
- * "type": "CompareNumberCFCondition",
61
- * "configuration": {
62
- * "comparator": "=",
63
- * "fieldId": "customfield_10029",
64
- * "fieldValue": 2
65
- * }
66
- * }
60
+ * ```
61
+ * {
62
+ * "type": "CompareNumberCFCondition",
63
+ * "configuration": {
64
+ * "comparator": "=",
65
+ * "fieldId": "customfield_10029",
66
+ * "fieldValue": 2
67
+ * }
68
+ * }
69
+ * ```
67
70
  *
68
71
  * * `comparator` One of the supported comparator: `=`, `>`, and `<`.
69
72
  * * `fieldId` The custom numeric field ID. Allowed field types:
@@ -76,46 +79,51 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
76
79
  *
77
80
  * A condition that hides a transition from users. The transition can only be
78
81
  * triggered from a workflow function or REST API operation.
79
- *
80
- * {
81
- * "type": "RemoteOnlyCondition"
82
- * }
82
+ * ```
83
+ * {
84
+ * "type": "RemoteOnlyCondition"
85
+ * }
86
+ * ```
83
87
  *
84
88
  * ##### Only assignee condition #####
85
89
  *
86
90
  * A condition that allows only the assignee to execute a transition.
87
- *
88
- * {
89
- * "type": "AllowOnlyAssignee"
90
- * }
91
+ * ```
92
+ * {
93
+ * "type": "AllowOnlyAssignee"
94
+ * }
95
+ * ```
91
96
  *
92
97
  * ##### Only Bamboo notifications workflow condition (deprecated) #####
93
98
  *
94
99
  * A condition that makes the transition available only to Bamboo build
95
100
  * notifications.
96
- *
97
- * {
98
- * "type": "OnlyBambooNotificationsCondition"
99
- * }
101
+ * ```
102
+ * {
103
+ * "type": "OnlyBambooNotificationsCondition"
104
+ * }
105
+ * ```
100
106
  *
101
107
  * ##### Only reporter condition #####
102
108
  *
103
109
  * A condition that allows only the reporter to execute a transition.
104
- *
105
- * {
106
- * "type": "AllowOnlyReporter"
107
- * }
110
+ * ```
111
+ * {
112
+ * "type": "AllowOnlyReporter"
113
+ * }
114
+ * ```
108
115
  *
109
116
  * ##### Permission condition #####
110
117
  *
111
118
  * A condition that allows only users with a permission to execute a transition.
112
- *
113
- * {
114
- * "type": "PermissionCondition",
115
- * "configuration": {
116
- * "permissionKey": "BROWSE_PROJECTS"
117
- * }
118
- * }
119
+ * ```
120
+ * {
121
+ * "type": "PermissionCondition",
122
+ * "configuration": {
123
+ * "permissionKey": "BROWSE_PROJECTS"
124
+ * }
125
+ * }
126
+ * ```
119
127
  *
120
128
  * * `permissionKey` The permission required to perform the transition. Allowed
121
129
  * values:
@@ -126,19 +134,20 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
126
134
  *
127
135
  * A condition that allows a transition based on whether an issue has or has not
128
136
  * transitioned through a status.
129
- *
130
- * {
131
- * "type": "PreviousStatusCondition",
132
- * "configuration": {
133
- * "ignoreLoopTransitions": true,
134
- * "includeCurrentStatus": true,
135
- * "mostRecentStatusOnly": true,
136
- * "reverseCondition": true,
137
- * "previousStatus": {
138
- * "id": "5"
139
- * }
140
- * }
141
- * }
137
+ * ```
138
+ * {
139
+ * "type": "PreviousStatusCondition",
140
+ * "configuration": {
141
+ * "ignoreLoopTransitions": true,
142
+ * "includeCurrentStatus": true,
143
+ * "mostRecentStatusOnly": true,
144
+ * "reverseCondition": true,
145
+ * "previousStatus": {
146
+ * "id": "5"
147
+ * }
148
+ * }
149
+ * }
150
+ * ```
142
151
  *
143
152
  * By default this condition allows the transition if the status, as defined by
144
153
  * its ID in the `previousStatus` object, matches any previous issue status,
@@ -156,18 +165,19 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
156
165
  *
157
166
  * A condition that prevents a user to perform the transition, if the user has
158
167
  * already performed a transition on the issue.
159
- *
160
- * {
161
- * "type": "SeparationOfDutiesCondition",
162
- * "configuration": {
163
- * "fromStatus": {
164
- * "id": "5"
165
- * },
166
- * "toStatus": {
167
- * "id": "6"
168
- * }
169
- * }
170
- * }
168
+ * ```
169
+ * {
170
+ * "type": "SeparationOfDutiesCondition",
171
+ * "configuration": {
172
+ * "fromStatus": {
173
+ * "id": "5"
174
+ * },
175
+ * "toStatus": {
176
+ * "id": "6"
177
+ * }
178
+ * }
179
+ * }
180
+ * ```
171
181
  *
172
182
  * * `fromStatus` OPTIONAL. An object containing the ID of the source status of
173
183
  * the transition that is blocked. If omitted any transition to `toStatus` is
@@ -179,20 +189,21 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
179
189
  *
180
190
  * A condition that blocks transition on a parent issue if any of its subtasks are
181
191
  * in any of one or more statuses.
182
- *
183
- * {
184
- * "type": "SubTaskBlockingCondition",
185
- * "configuration": {
186
- * "statuses": [
187
- * {
188
- * "id": "1"
189
- * },
190
- * {
191
- * "id": "3"
192
- * }
193
- * ]
192
+ * ```
193
+ * {
194
+ * "type": "SubTaskBlockingCondition",
195
+ * "configuration": {
196
+ * "statuses": [
197
+ * {
198
+ * "id": "1"
199
+ * },
200
+ * {
201
+ * "id": "3"
194
202
  * }
195
- * }
203
+ * ]
204
+ * }
205
+ * }
206
+ * ```
196
207
  *
197
208
  * * `statuses` A list of objects containing status IDs.
198
209
  *
@@ -200,16 +211,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
200
211
  *
201
212
  * A condition that allows users belonging to any group from a list of groups to
202
213
  * execute a transition.
203
- *
204
- * {
205
- * "type": "UserInAnyGroupCondition",
206
- * "configuration": {
207
- * "groups": [
208
- * "administrators",
209
- * "atlassian-addons-admin"
210
- * ]
211
- * }
212
- * }
214
+ * ```
215
+ * {
216
+ * "type": "UserInAnyGroupCondition",
217
+ * "configuration": {
218
+ * "groups": [
219
+ * "administrators",
220
+ * "atlassian-addons-admin"
221
+ * ]
222
+ * }
223
+ * }
224
+ * ```
213
225
  *
214
226
  * * `groups` A list of group names.
215
227
  *
@@ -217,26 +229,27 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
217
229
  *
218
230
  * A condition that allows only users with at least one project roles from a list
219
231
  * of project roles to execute a transition.
220
- *
221
- * {
222
- * "type": "InAnyProjectRoleCondition",
223
- * "configuration": {
224
- * "projectRoles": [
225
- * {
226
- * "id": "10002"
227
- * },
228
- * {
229
- * "id": "10003"
230
- * },
231
- * {
232
- * "id": "10012"
233
- * },
234
- * {
235
- * "id": "10013"
236
- * }
237
- * ]
232
+ * ```
233
+ * {
234
+ * "type": "InAnyProjectRoleCondition",
235
+ * "configuration": {
236
+ * "projectRoles": [
237
+ * {
238
+ * "id": "10002"
239
+ * },
240
+ * {
241
+ * "id": "10003"
242
+ * },
243
+ * {
244
+ * "id": "10012"
245
+ * },
246
+ * {
247
+ * "id": "10013"
238
248
  * }
239
- * }
249
+ * ]
250
+ * }
251
+ * }
252
+ * ```
240
253
  *
241
254
  * * `projectRoles` A list of objects containing project role IDs.
242
255
  *
@@ -244,14 +257,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
244
257
  *
245
258
  * A condition that allows only users listed in a given custom field to execute
246
259
  * the transition.
247
- *
248
- * {
249
- * "type": "UserIsInCustomFieldCondition",
250
- * "configuration": {
251
- * "allowUserInField": false,
252
- * "fieldId": "customfield_10010"
253
- * }
254
- * }
260
+ * ```
261
+ * {
262
+ * "type": "UserIsInCustomFieldCondition",
263
+ * "configuration": {
264
+ * "allowUserInField": false,
265
+ * "fieldId": "customfield_10010"
266
+ * }
267
+ * }
268
+ * ```
255
269
  *
256
270
  * * `allowUserInField` If `true` only a user who is listed in `fieldId` can
257
271
  * perform the transition, otherwise, only a user who is not listed in `fieldId`
@@ -261,13 +275,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
261
275
  * ##### User is in group condition #####
262
276
  *
263
277
  * A condition that allows users belonging to a group to execute a transition.
264
- *
265
- * {
266
- * "type": "UserInGroupCondition",
267
- * "configuration": {
268
- * "group": "administrators"
269
- * }
270
- * }
278
+ * ```
279
+ * {
280
+ * "type": "UserInGroupCondition",
281
+ * "configuration": {
282
+ * "group": "administrators"
283
+ * }
284
+ * }
285
+ * ```
271
286
  *
272
287
  * * `group` The name of the group.
273
288
  *
@@ -275,13 +290,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
275
290
  *
276
291
  * A condition that allows users belonging to a group specified in a custom field
277
292
  * to execute a transition.
278
- *
279
- * {
280
- * "type": "InGroupCFCondition",
281
- * "configuration": {
282
- * "fieldId": "customfield_10012"
283
- * }
284
- * }
293
+ * ```
294
+ * {
295
+ * "type": "InGroupCFCondition",
296
+ * "configuration": {
297
+ * "fieldId": "customfield_10012"
298
+ * }
299
+ * }
300
+ * ```
285
301
  *
286
302
  * * `fieldId` The ID of the field. Allowed field types:
287
303
  *
@@ -296,15 +312,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
296
312
  * ##### User is in project role condition #####
297
313
  *
298
314
  * A condition that allows users with a project role to execute a transition.
299
- *
300
- * {
301
- * "type": "InProjectRoleCondition",
302
- * "configuration": {
303
- * "projectRole": {
304
- * "id": "10002"
305
- * }
306
- * }
315
+ * ```
316
+ * {
317
+ * "type": "InProjectRoleCondition",
318
+ * "configuration": {
319
+ * "projectRole": {
320
+ * "id": "10002"
307
321
  * }
322
+ * }
323
+ * }
324
+ * ```
308
325
  *
309
326
  * * `projectRole` An object containing the ID of a project role.
310
327
  *
@@ -312,17 +329,18 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
312
329
  *
313
330
  * A conditions that allows a transition to execute if the value of a field is
314
331
  * equal to a constant value or simply set.
315
- *
316
- * {
317
- * "type": "ValueFieldCondition",
318
- * "configuration": {
319
- * "fieldId": "assignee",
320
- * "fieldValue":
332
+ * ```
333
+ * {
334
+ * "type": "ValueFieldCondition",
335
+ * "configuration": {
336
+ * "fieldId": "assignee",
337
+ * "fieldValue":
321
338
  * "qm:6e1ecee6-8e64-4db6-8c85-916bb3275f51:54b56885-2bd2-4381-8239-78263442520f",
322
- * "comparisonType": "NUMBER",
323
- * "comparator": "="
324
- * }
325
- * }
339
+ * "comparisonType": "NUMBER",
340
+ * "comparator": "="
341
+ * }
342
+ * }
343
+ * ```
326
344
  *
327
345
  * * `fieldId` The ID of a field used in the comparison.
328
346
  * * `fieldValue` The expected value of the field.
@@ -350,17 +368,18 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
350
368
  * ##### Date field validator #####
351
369
  *
352
370
  * A validator that compares two dates.
353
- *
354
- * {
355
- * "type": "DateFieldValidator",
356
- * "configuration": {
357
- * "comparator": ">",
358
- * "date1": "updated",
359
- * "date2": "created",
360
- * "expression": "1d",
361
- * "includeTime": true
362
- * }
363
- * }
371
+ * ```
372
+ * {
373
+ * "type": "DateFieldValidator",
374
+ * "configuration": {
375
+ * "comparator": ">",
376
+ * "date1": "updated",
377
+ * "date2": "created",
378
+ * "expression": "1d",
379
+ * "includeTime": true
380
+ * }
381
+ * }
382
+ * ```
364
383
  *
365
384
  * * `comparator` One of the supported comparator: `>`, `>=`, `=`, `<=`, `<`, or
366
385
  * `!=`.
@@ -397,15 +416,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
397
416
  *
398
417
  * A validator that checks that a date falls on or after a reference date and
399
418
  * before or on the reference date plus a number of days.
400
- *
401
- * {
402
- * "type": "WindowsDateValidator",
403
- * "configuration": {
404
- * "date1": "customfield_10009",
405
- * "date2": "created",
406
- * "windowsDays": 5
407
- * }
419
+ * ```
420
+ * {
421
+ * "type": "WindowsDateValidator",
422
+ * "configuration": {
423
+ * "date1": "customfield_10009",
424
+ * "date2": "created",
425
+ * "windowsDays": 5
408
426
  * }
427
+ * }
428
+ * ```
409
429
  *
410
430
  * * `date1` The date field to validate. Allowed field types:
411
431
  *
@@ -433,19 +453,20 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
433
453
  *
434
454
  * A validator that checks fields are not empty. By default, if a field is not
435
455
  * included in the current context it's ignored and not validated.
436
- *
437
- * {
438
- * "type": "FieldRequiredValidator",
439
- * "configuration": {
440
- * "ignoreContext": true,
441
- * "errorMessage": "Hey",
442
- * "fieldIds": [
443
- * "versions",
444
- * "customfield_10037",
445
- * "customfield_10003"
446
- * ]
447
- * }
456
+ * ```
457
+ * {
458
+ * "type": "FieldRequiredValidator",
459
+ * "configuration": {
460
+ * "ignoreContext": true,
461
+ * "errorMessage": "Hey",
462
+ * "fieldIds": [
463
+ * "versions",
464
+ * "customfield_10037",
465
+ * "customfield_10003"
466
+ * ]
448
467
  * }
468
+ * }
469
+ * ```
449
470
  *
450
471
  * * `ignoreContext` If `true`, then the context is ignored and all the fields
451
472
  * are validated.
@@ -458,18 +479,19 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
458
479
  *
459
480
  * A validator that checks that a field value is changed. However, this validation
460
481
  * can be ignored for users from a list of groups.
461
- *
462
- * {
463
- * "type": "FieldChangedValidator",
464
- * "configuration": {
465
- * "fieldId": "comment",
466
- * "errorMessage": "Hey",
467
- * "exemptedGroups": [
468
- * "administrators",
469
- * "atlassian-addons-admin"
470
- * ]
471
- * }
482
+ * ```
483
+ * {
484
+ * "type": "FieldChangedValidator",
485
+ * "configuration": {
486
+ * "fieldId": "comment",
487
+ * "errorMessage": "Hey",
488
+ * "exemptedGroups": [
489
+ * "administrators",
490
+ * "atlassian-addons-admin"
491
+ * ]
472
492
  * }
493
+ * }
494
+ * ```
473
495
  *
474
496
  * * `fieldId` The ID of a field.
475
497
  * * `errorMessage` OPTIONAL. The error message displayed if the field is not
@@ -480,14 +502,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
480
502
  *
481
503
  * A validator that checks that a multi-select field has only one value.
482
504
  * Optionally, the validation can ignore values copied from subtasks.
483
- *
484
- * {
485
- * "type": "FieldHasSingleValueValidator",
486
- * "configuration": {
487
- * "fieldId": "attachment,
488
- * "excludeSubtasks": true
489
- * }
505
+ * ```
506
+ * {
507
+ * "type": "FieldHasSingleValueValidator",
508
+ * "configuration": {
509
+ * "fieldId": "attachment,
510
+ * "excludeSubtasks": true
490
511
  * }
512
+ * }
513
+ * ```
491
514
  *
492
515
  * * `fieldId` The ID of a field.
493
516
  * * `excludeSubtasks` If `true`, then values copied from subtasks are ignored.
@@ -496,33 +519,35 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
496
519
  *
497
520
  * A validator that checks the status of the parent issue of a subtask. Ìf the
498
521
  * issue is not a subtask, no validation is performed.
499
- *
500
- * {
501
- * "type": "ParentStatusValidator",
502
- * "configuration": {
503
- * "parentStatuses": [
504
- * {
505
- * "id":"1"
506
- * },
507
- * {
508
- * "id":"2"
509
- * }
510
- * ]
511
- * }
522
+ * ```
523
+ * {
524
+ * "type": "ParentStatusValidator",
525
+ * "configuration": {
526
+ * "parentStatuses": [
527
+ * {
528
+ * "id":"1"
529
+ * },
530
+ * {
531
+ * "id":"2"
532
+ * }
533
+ * ]
512
534
  * }
535
+ * }
536
+ * ```
513
537
  *
514
538
  * * `parentStatus` The list of required parent issue statuses.
515
539
  *
516
540
  * ##### Permission validator #####
517
541
  *
518
542
  * A validator that checks the user has a permission.
519
- *
520
- * {
521
- * "type": "PermissionValidator",
522
- * "configuration": {
523
- * "permissionKey": "ADMINISTER_PROJECTS"
524
- * }
525
- * }
543
+ * ```
544
+ * {
545
+ * "type": "PermissionValidator",
546
+ * "configuration": {
547
+ * "permissionKey": "ADMINISTER_PROJECTS"
548
+ * }
549
+ * }
550
+ * ```
526
551
  *
527
552
  * * `permissionKey` The permission required to perform the transition. Allowed
528
553
  * values:
@@ -532,16 +557,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
532
557
  * ##### Previous status validator #####
533
558
  *
534
559
  * A validator that checks if the issue has held a status.
535
- *
536
- * {
537
- * "type": "PreviousStatusValidator",
538
- * "configuration": {
539
- * "mostRecentStatusOnly": false,
540
- * "previousStatus": {
541
- * "id": "15"
542
- * }
560
+ * ```
561
+ * {
562
+ * "type": "PreviousStatusValidator",
563
+ * "configuration": {
564
+ * "mostRecentStatusOnly": false,
565
+ * "previousStatus": {
566
+ * "id": "15"
543
567
  * }
544
- * }
568
+ * }
569
+ * }
570
+ * ```
545
571
  *
546
572
  * * `mostRecentStatusOnly` If `true`, then only the issue's preceding status
547
573
  * (the one immediately before the current status) is checked.
@@ -550,14 +576,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
550
576
  * ##### Regular expression validator #####
551
577
  *
552
578
  * A validator that checks the content of a field against a regular expression.
553
- *
554
- * {
555
- * "type": "RegexpFieldValidator",
556
- * "configuration": {
557
- * "regExp": "[0-9]",
558
- * "fieldId": "customfield_10029"
559
- * }
560
- * }
579
+ * ```
580
+ * {
581
+ * "type": "RegexpFieldValidator",
582
+ * "configuration": {
583
+ * "regExp": "[0-9]",
584
+ * "fieldId": "customfield_10029"
585
+ * }
586
+ * }
587
+ * ```
561
588
  *
562
589
  * * `regExp`A regular expression.
563
590
  * * `fieldId` The ID of a field. Allowed field types:
@@ -581,15 +608,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
581
608
  * this validator when getting transition rules and can pass it when updating or
582
609
  * creating rules, for example, when you want to duplicate the rules from a
583
610
  * workflow on a new workflow.
584
- *
585
- * {
586
- * "type": "UserPermissionValidator",
587
- * "configuration": {
588
- * "permissionKey": "BROWSE_PROJECTS",
589
- * "nullAllowed": false,
590
- * "username": "TestUser"
591
- * }
611
+ * ```
612
+ * {
613
+ * "type": "UserPermissionValidator",
614
+ * "configuration": {
615
+ * "permissionKey": "BROWSE_PROJECTS",
616
+ * "nullAllowed": false,
617
+ * "username": "TestUser"
592
618
  * }
619
+ * }
620
+ * ```
593
621
  *
594
622
  * * `permissionKey` The permission to be validated. Allowed values:
595
623
  * [built-in](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions)
@@ -605,15 +633,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
605
633
  * ##### Fire issue event function #####
606
634
  *
607
635
  * A post function that fires an event that is processed by the listeners.
608
- *
609
- * {
610
- * "type": "FireIssueEventFunction",
611
- * "configuration": {
612
- * "event": {
613
- * "id":"1"
614
- * }
615
- * }
636
+ * ```
637
+ * {
638
+ * "type": "FireIssueEventFunction",
639
+ * "configuration": {
640
+ * "event": {
641
+ * "id":"1"
616
642
  * }
643
+ * }
644
+ * }
645
+ * ```
617
646
  *
618
647
  * **Note:** If provided, this post function overrides the default
619
648
  * `FireIssueEventFunction`. Can be included once in a transition.
@@ -624,10 +653,11 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
624
653
  *
625
654
  * A post function that sets issue status to the linked status of the destination
626
655
  * workflow status.
627
- *
628
- * {
629
- * "type": "UpdateIssueStatusFunction"
630
- * }
656
+ * ```
657
+ * {
658
+ * "type": "UpdateIssueStatusFunction"
659
+ * }
660
+ * ```
631
661
  *
632
662
  * **Note:** This post function is a default function in global and directed
633
663
  * transitions. It can only be added to the initial transition and can only be
@@ -636,10 +666,11 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
636
666
  * ##### Create comment #####
637
667
  *
638
668
  * A post function that adds a comment entered during the transition to an issue.
639
- *
640
- * {
641
- * "type": "CreateCommentFunction"
642
- * }
669
+ * ```
670
+ * {
671
+ * "type": "CreateCommentFunction"
672
+ * }
673
+ * ```
643
674
  *
644
675
  * **Note:** This post function is a default function in global and directed
645
676
  * transitions. It can only be added to the initial transition and can only be
@@ -648,10 +679,11 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
648
679
  * ##### Store issue #####
649
680
  *
650
681
  * A post function that stores updates to an issue.
651
- *
652
- * {
653
- * "type": "IssueStoreFunction"
654
- * }
682
+ * ```
683
+ * {
684
+ * "type": "IssueStoreFunction"
685
+ * }
686
+ * ```
655
687
  *
656
688
  * **Note:** This post function can only be added to the initial transition and
657
689
  * can only be added once.
@@ -660,10 +692,11 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
660
692
  *
661
693
  * A post function that assigns the issue to the current user if the current user
662
694
  * has the `ASSIGNABLE_USER` permission.
663
- *
664
- * {
665
- * "type": "AssignToCurrentUserFunction"
666
- * }
695
+ * ```
696
+ * {
697
+ * "type": "AssignToCurrentUserFunction"
698
+ * }
699
+ * ```
667
700
  *
668
701
  * **Note:** This post function can be included once in a transition.
669
702
  *
@@ -671,33 +704,36 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
671
704
  *
672
705
  * A post function that assigns the issue to the project or component lead
673
706
  * developer.
674
- *
675
- * {
676
- * "type": "AssignToLeadFunction"
677
- * }
707
+ * ```
708
+ * {
709
+ * "type": "AssignToLeadFunction"
710
+ * }
711
+ * ```
678
712
  *
679
713
  * **Note:** This post function can be included once in a transition.
680
714
  *
681
715
  * ##### Assign to reporter function #####
682
716
  *
683
717
  * A post function that assigns the issue to the reporter.
684
- *
685
- * {
686
- * "type": "AssignToReporterFunction"
687
- * }
718
+ * ```
719
+ * {
720
+ * "type": "AssignToReporterFunction"
721
+ * }
722
+ * ```
688
723
  *
689
724
  * **Note:** This post function can be included once in a transition.
690
725
  *
691
726
  * ##### Clear field value function #####
692
727
  *
693
728
  * A post function that clears the value from a field.
694
- *
695
- * {
696
- * "type": "ClearFieldValuePostFunction",
697
- * "configuration": {
698
- * "fieldId": "assignee"
699
- * }
700
- * }
729
+ * ```
730
+ * {
731
+ * "type": "ClearFieldValuePostFunction",
732
+ * "configuration": {
733
+ * "fieldId": "assignee"
734
+ * }
735
+ * }
736
+ * ```
701
737
  *
702
738
  * * `fieldId` The ID of the field.
703
739
  *
@@ -705,15 +741,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
705
741
  *
706
742
  * A post function that copies the value of one field to another, either within an
707
743
  * issue or from parent to subtask.
708
- *
709
- * {
710
- * "type": "CopyValueFromOtherFieldPostFunction",
711
- * "configuration": {
712
- * "sourceFieldId": "assignee",
713
- * "destinationFieldId": "creator",
714
- * "copyType": "same"
715
- * }
716
- * }
744
+ * ```
745
+ * {
746
+ * "type": "CopyValueFromOtherFieldPostFunction",
747
+ * "configuration": {
748
+ * "sourceFieldId": "assignee",
749
+ * "destinationFieldId": "creator",
750
+ * "copyType": "same"
751
+ * }
752
+ * }
753
+ * ```
717
754
  *
718
755
  * * `sourceFieldId` The ID of the source field.
719
756
  * * `destinationFieldId` The ID of the destination field.
@@ -724,10 +761,11 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
724
761
  *
725
762
  * A post function that creates a Crucible review for all unreviewed code for the
726
763
  * issue.
727
- *
728
- * {
729
- * "type": "CreateCrucibleReviewWorkflowFunction"
730
- * }
764
+ * ```
765
+ * {
766
+ * "type": "CreateCrucibleReviewWorkflowFunction"
767
+ * }
768
+ * ```
731
769
  *
732
770
  * **Note:** This post function can be included once in a transition.
733
771
  *
@@ -735,18 +773,19 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
735
773
  *
736
774
  * A post function that sets the issue's security level if the current user has a
737
775
  * project role.
738
- *
739
- * {
740
- * "type": "SetIssueSecurityFromRoleFunction",
741
- * "configuration": {
742
- * "projectRole": {
743
- * "id":"10002"
744
- * },
745
- * "issueSecurityLevel": {
746
- * "id":"10000"
747
- * }
748
- * }
749
- * }
776
+ * ```
777
+ * {
778
+ * "type": "SetIssueSecurityFromRoleFunction",
779
+ * "configuration": {
780
+ * "projectRole": {
781
+ * "id":"10002"
782
+ * },
783
+ * "issueSecurityLevel": {
784
+ * "id":"10000"
785
+ * }
786
+ * }
787
+ * }
788
+ * ```
750
789
  *
751
790
  * * `projectRole` An object containing the ID of the project role.
752
791
  * * `issueSecurityLevel` OPTIONAL. The object containing the ID of the security
@@ -755,30 +794,32 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
755
794
  * ##### Trigger a webhook function #####
756
795
  *
757
796
  * A post function that triggers a webhook.
758
- *
759
- * {
760
- * "type": "TriggerWebhookFunction",
761
- * "configuration": {
762
- * "webhook": {
763
- * "id": "1"
764
- * }
765
- * }
797
+ * ```
798
+ * {
799
+ * "type": "TriggerWebhookFunction",
800
+ * "configuration": {
801
+ * "webhook": {
802
+ * "id": "1"
766
803
  * }
804
+ * }
805
+ * }
806
+ * ```
767
807
  *
768
808
  * * `webhook` An object containing the ID of the webhook listener to trigger.
769
809
  *
770
810
  * ##### Update issue custom field function #####
771
811
  *
772
812
  * A post function that updates the content of an issue custom field.
773
- *
774
- * {
775
- * "type": "UpdateIssueCustomFieldPostFunction",
776
- * "configuration": {
777
- * "mode": "append",
778
- * "fieldId": "customfield_10003",
779
- * "fieldValue": "yikes"
780
- * }
781
- * }
813
+ * ```
814
+ * {
815
+ * "type": "UpdateIssueCustomFieldPostFunction",
816
+ * "configuration": {
817
+ * "mode": "append",
818
+ * "fieldId": "customfield_10003",
819
+ * "fieldValue": "yikes"
820
+ * }
821
+ * }
822
+ * ```
782
823
  *
783
824
  * * `mode` Use `replace` to override the field content with `fieldValue` or
784
825
  * `append` to add `fieldValue` to the end of the field content.
@@ -788,14 +829,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
788
829
  * ##### Update issue field function #####
789
830
  *
790
831
  * A post function that updates a simple issue field.
791
- *
792
- * {
793
- * "type": "UpdateIssueFieldFunction",
794
- * "configuration": {
795
- * "fieldId": "assignee",
796
- * "fieldValue": "5f0c277e70b8a90025a00776"
797
- * }
798
- * }
832
+ * ```
833
+ * {
834
+ * "type": "UpdateIssueFieldFunction",
835
+ * "configuration": {
836
+ * "fieldId": "assignee",
837
+ * "fieldValue": "5f0c277e70b8a90025a00776"
838
+ * }
839
+ * }
840
+ * ```
799
841
  *
800
842
  * * `fieldId` The ID of the field. Allowed field types:
801
843
  *
@@ -821,13 +863,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
821
863
  * Connect rules are conditions, validators, and post functions of a transition
822
864
  * that are registered by Connect apps. To create a rule registered by the app,
823
865
  * the app must be enabled and the rule's module must exist.
824
- *
825
- * {
826
- * "type": "appKey__moduleKey",
827
- * "configuration": {
828
- * "value":"{\"isValid\":\"true\"}"
829
- * }
830
- * }
866
+ * ```
867
+ * {
868
+ * "type": "appKey__moduleKey",
869
+ * "configuration": {
870
+ * "value":"{\"isValid\":\"true\"}"
871
+ * }
872
+ * }
873
+ * ```
831
874
  *
832
875
  * * `type` A Connect rule key in a form of `appKey__moduleKey`.
833
876
  * * `value` The stringified JSON configuration of a Connect rule.
@@ -842,14 +885,18 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
842
885
  * @deprecated
843
886
  * @returns Returned if the workflow is created.
844
887
  *
845
- * example: {
888
+ * example:
889
+ * ```
890
+ * {
846
891
  * "entityId": "d7178e8d-bf6c-4c0c-9e90-758a0b965b67",
847
892
  * "name": "Workflow 1"
848
893
  * }
849
- * @path {POST} /rest/api/3/workflow
894
+ * ```
895
+ * @path POST `/rest/api/3/workflow`
850
896
  * @scopes-current manage:jira-configuration
851
897
  * @scopes-beta write:workflow:jira, read:workflow:jira
852
898
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflow-post
899
+ * @param params
853
900
  */
854
901
  this.createWorkflow = ({ createWorkflowDetails, }) => {
855
902
  return this.getClientInstance()
@@ -881,7 +928,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
881
928
  *
882
929
  * @returns Returned if the request is successful.
883
930
  *
884
- * example: {
931
+ * example:
932
+ * ```
933
+ * {
885
934
  * "statuses": [
886
935
  * {
887
936
  * "description": "",
@@ -978,14 +1027,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
978
1027
  * "actions": [],
979
1028
  * "description": "",
980
1029
  * "from": [],
981
- * "id": "11",
982
- * "name": "To Do",
1030
+ * "id": "1",
1031
+ * "name": "Create",
983
1032
  * "properties": {},
984
1033
  * "to": {
985
1034
  * "statusReference": "10001"
986
1035
  * },
987
1036
  * "triggers": [],
988
- * "type": "GLOBAL",
1037
+ * "type": "INITIAL",
989
1038
  * "validators": []
990
1039
  * },
991
1040
  * {
@@ -1006,14 +1055,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1006
1055
  * "actions": [],
1007
1056
  * "description": "",
1008
1057
  * "from": [],
1009
- * "id": "1",
1010
- * "name": "Create",
1058
+ * "id": "11",
1059
+ * "name": "To Do",
1011
1060
  * "properties": {},
1012
1061
  * "to": {
1013
1062
  * "statusReference": "10001"
1014
1063
  * },
1015
1064
  * "triggers": [],
1016
- * "type": "INITIAL",
1065
+ * "type": "GLOBAL",
1017
1066
  * "validators": []
1018
1067
  * }
1019
1068
  * ],
@@ -1025,10 +1074,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1025
1074
  * }
1026
1075
  * ]
1027
1076
  * }
1028
- * @path {POST} /rest/api/3/workflows/create
1077
+ * ```
1078
+ * @path POST `/rest/api/3/workflows/create`
1029
1079
  * @scopes-current manage:jira-configuration
1030
1080
  * @scopes-beta write:workflow:jira
1031
1081
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-create-post
1082
+ * @param params
1032
1083
  */
1033
1084
  this.createWorkflows = ({ workflowCreateRequest, }) => {
1034
1085
  return this.getClientInstance()
@@ -1062,10 +1113,11 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1062
1113
  * **[Permissions](#permissions) required:** *Administer Jira* [global
1063
1114
  * permission](https://confluence.atlassian.com/x/x4dKLg).
1064
1115
  *
1065
- * @path {DELETE} /rest/api/3/workflow/{entityId}
1116
+ * @path DELETE `/rest/api/3/workflow/{entityId}`
1066
1117
  * @scopes-current manage:jira-configuration
1067
1118
  * @scopes-beta delete:workflow:jira
1068
1119
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflow-entityid-delete
1120
+ * @param params
1069
1121
  */
1070
1122
  this.deleteInactiveWorkflow = ({ entityId, }) => {
1071
1123
  return this.getClientInstance()
@@ -1091,7 +1143,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1091
1143
  * @deprecated
1092
1144
  * @returns Returned if the request is successful.
1093
1145
  *
1094
- * example: [
1146
+ * example:
1147
+ * ```
1148
+ * [
1095
1149
  * {
1096
1150
  * "default": true,
1097
1151
  * "description": "A classic Jira workflow",
@@ -1102,11 +1156,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1102
1156
  * "steps": 5
1103
1157
  * }
1104
1158
  * ]
1105
- * @path {GET} /rest/api/3/workflow
1159
+ * ```
1160
+ * @path GET `/rest/api/3/workflow`
1106
1161
  * @scopes-current manage:jira-configuration
1107
- * @scopes-beta read:workflow:jira, read:project:jira, read:project-category:jira,
1108
- * read:avatar:jira
1162
+ * @scopes-beta read:workflow:jira, read:project:jira, read:project-category:jira, read:avatar:jira
1109
1163
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflow-get
1164
+ * @param params
1110
1165
  */
1111
1166
  this.getAllWorkflows = ({ workflowName, } = {}) => {
1112
1167
  return this.getClientInstance()
@@ -1138,7 +1193,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1138
1193
  *
1139
1194
  * @returns Returned if the request is successful.
1140
1195
  *
1141
- * example: {
1196
+ * example:
1197
+ * ```
1198
+ * {
1142
1199
  * "isLast": false,
1143
1200
  * "maxResults": 1,
1144
1201
  * "startAt": 0,
@@ -1149,8 +1206,7 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1149
1206
  * "name": "SCRUM Workflow",
1150
1207
  * "entityId": "5ed312c5-f7a6-4a78-a1f6-8ff7f307d063"
1151
1208
  * },
1152
- * "description": "A workflow used for Software projects in the SCRUM
1153
- * methodology",
1209
+ * "description": "A workflow used for Software projects in the SCRUM methodology",
1154
1210
  * "transitions": [
1155
1211
  * {
1156
1212
  * "id": "5",
@@ -1265,13 +1321,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1265
1321
  * }
1266
1322
  * ]
1267
1323
  * }
1268
- * @path {GET} /rest/api/3/workflow/search
1324
+ * ```
1325
+ * @path GET `/rest/api/3/workflow/search`
1269
1326
  * @scopes-current manage:jira-project
1270
- * @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira,
1271
- * read:screen:jira, read:status:jira, read:user:jira, read:workflow:jira,
1272
- * read:webhook:jira, read:avatar:jira, read:project-category:jira,
1273
- * read:project:jira
1327
+ * @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
1274
1328
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflow-search-get
1329
+ * @param params
1275
1330
  */
1276
1331
  this.getWorkflowsPaginated = ({ startAt, maxResults, workflowName, expand, queryString, orderBy, isActive, } = {}) => {
1277
1332
  return this.getClientInstance()
@@ -1310,7 +1365,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1310
1365
  *
1311
1366
  * @returns Returned if the request is successful.
1312
1367
  *
1313
- * example: {
1368
+ * example:
1369
+ * ```
1370
+ * {
1314
1371
  * "statuses": [
1315
1372
  * {
1316
1373
  * "description": "",
@@ -1392,13 +1449,11 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1392
1449
  * {
1393
1450
  * "actions": [],
1394
1451
  * "description": "",
1395
- * "from": [],
1396
- * "id": "31",
1397
- * "name": "Done",
1452
+ * "id": "21",
1453
+ * "links": [],
1454
+ * "name": "In Progress",
1398
1455
  * "properties": {},
1399
- * "to": {
1400
- * "statusReference": "10003"
1401
- * },
1456
+ * "toStatusReference": "10002",
1402
1457
  * "triggers": [],
1403
1458
  * "type": "GLOBAL",
1404
1459
  * "validators": []
@@ -1406,13 +1461,11 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1406
1461
  * {
1407
1462
  * "actions": [],
1408
1463
  * "description": "",
1409
- * "from": [],
1410
1464
  * "id": "11",
1465
+ * "links": [],
1411
1466
  * "name": "To Do",
1412
1467
  * "properties": {},
1413
- * "to": {
1414
- * "statusReference": "10001"
1415
- * },
1468
+ * "toStatusReference": "10001",
1416
1469
  * "triggers": [],
1417
1470
  * "type": "GLOBAL",
1418
1471
  * "validators": []
@@ -1420,13 +1473,11 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1420
1473
  * {
1421
1474
  * "actions": [],
1422
1475
  * "description": "",
1423
- * "from": [],
1424
- * "id": "21",
1425
- * "name": "In Progress",
1476
+ * "id": "31",
1477
+ * "links": [],
1478
+ * "name": "Done",
1426
1479
  * "properties": {},
1427
- * "to": {
1428
- * "statusReference": "10002"
1429
- * },
1480
+ * "toStatusReference": "10003",
1430
1481
  * "triggers": [],
1431
1482
  * "type": "GLOBAL",
1432
1483
  * "validators": []
@@ -1434,13 +1485,29 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1434
1485
  * {
1435
1486
  * "actions": [],
1436
1487
  * "description": "",
1437
- * "from": [],
1488
+ * "id": "41",
1489
+ * "links": [
1490
+ * {
1491
+ * "fromPort": 0,
1492
+ * "fromStatusReference": "10001",
1493
+ * "toPort": 1
1494
+ * }
1495
+ * ],
1496
+ * "name": "Start work",
1497
+ * "properties": {},
1498
+ * "toStatusReference": "10002",
1499
+ * "triggers": [],
1500
+ * "type": "DIRECTED",
1501
+ * "validators": []
1502
+ * },
1503
+ * {
1504
+ * "actions": [],
1505
+ * "description": "",
1438
1506
  * "id": "1",
1507
+ * "links": [],
1439
1508
  * "name": "Create",
1440
1509
  * "properties": {},
1441
- * "to": {
1442
- * "statusReference": "10001"
1443
- * },
1510
+ * "toStatusReference": "10001",
1444
1511
  * "triggers": [],
1445
1512
  * "type": "INITIAL",
1446
1513
  * "validators": []
@@ -1454,18 +1521,21 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1454
1521
  * }
1455
1522
  * ]
1456
1523
  * }
1457
- * @path {POST} /rest/api/3/workflows
1524
+ * ```
1525
+ * @path POST `/rest/api/3/workflows`
1458
1526
  * @scopes-current manage:jira-configuration
1459
1527
  * @scopes-beta read:workflow:jira
1460
1528
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-post
1529
+ * @param params
1461
1530
  */
1462
- this.readWorkflows = ({ expand, workflowReadRequest, }) => {
1531
+ this.readWorkflows = ({ expand, useTransitionLinksFormat, workflowReadRequest, }) => {
1463
1532
  return this.getClientInstance()
1464
1533
  .request({
1465
1534
  path: "/rest/api/3/workflows",
1466
1535
  method: "POST",
1467
1536
  query: {
1468
1537
  expand,
1538
+ useTransitionLinksFormat,
1469
1539
  },
1470
1540
  headers: {
1471
1541
  "Content-Type": "application/json",
@@ -1492,7 +1562,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1492
1562
  *
1493
1563
  * @returns Returned if the request is successful.
1494
1564
  *
1495
- * example: {
1565
+ * example:
1566
+ * ```
1567
+ * {
1496
1568
  * "statuses": [
1497
1569
  * {
1498
1570
  * "description": "",
@@ -1590,14 +1662,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1590
1662
  * "actions": [],
1591
1663
  * "description": "",
1592
1664
  * "from": [],
1593
- * "id": "11",
1594
- * "name": "To Do",
1665
+ * "id": "1",
1666
+ * "name": "Create",
1595
1667
  * "properties": {},
1596
1668
  * "to": {
1597
1669
  * "statusReference": "10001"
1598
1670
  * },
1599
1671
  * "triggers": [],
1600
- * "type": "GLOBAL",
1672
+ * "type": "INITIAL",
1601
1673
  * "validators": []
1602
1674
  * },
1603
1675
  * {
@@ -1618,14 +1690,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1618
1690
  * "actions": [],
1619
1691
  * "description": "",
1620
1692
  * "from": [],
1621
- * "id": "1",
1622
- * "name": "Create",
1693
+ * "id": "11",
1694
+ * "name": "To Do",
1623
1695
  * "properties": {},
1624
1696
  * "to": {
1625
1697
  * "statusReference": "10001"
1626
1698
  * },
1627
1699
  * "triggers": [],
1628
- * "type": "INITIAL",
1700
+ * "type": "GLOBAL",
1629
1701
  * "validators": []
1630
1702
  * }
1631
1703
  * ],
@@ -1637,10 +1709,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1637
1709
  * }
1638
1710
  * ]
1639
1711
  * }
1640
- * @path {POST} /rest/api/3/workflows/update
1712
+ * ```
1713
+ * @path POST `/rest/api/3/workflows/update`
1641
1714
  * @scopes-current manage:jira-configuration
1642
1715
  * @scopes-beta write:workflow:jira
1643
1716
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-update-post
1717
+ * @param params
1644
1718
  */
1645
1719
  this.updateWorkflows = ({ expand, workflowUpdateRequest, }) => {
1646
1720
  return this.getClientInstance()
@@ -1675,7 +1749,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1675
1749
  *
1676
1750
  * @returns Returned if the request is successful.
1677
1751
  *
1678
- * example: {
1752
+ * example:
1753
+ * ```
1754
+ * {
1679
1755
  * "errors": [
1680
1756
  * {
1681
1757
  * "code": "NON_UNIQUE_STATUS_NAME",
@@ -1688,10 +1764,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1688
1764
  * }
1689
1765
  * ]
1690
1766
  * }
1691
- * @path {POST} /rest/api/3/workflows/create/validation
1767
+ * ```
1768
+ * @path POST `/rest/api/3/workflows/create/validation`
1692
1769
  * @scopes-current manage:jira-configuration
1693
1770
  * @scopes-beta write:workflow:jira
1694
1771
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-create-validation-post
1772
+ * @param params
1695
1773
  */
1696
1774
  this.validateCreateWorkflows = ({ workflowCreateValidateRequest, }) => {
1697
1775
  return this.getClientInstance()
@@ -1723,7 +1801,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1723
1801
  *
1724
1802
  * @returns Returned if the request is successful.
1725
1803
  *
1726
- * example: {
1804
+ * example:
1805
+ * ```
1806
+ * {
1727
1807
  * "errors": [
1728
1808
  * {
1729
1809
  * "code": "NON_UNIQUE_STATUS_NAME",
@@ -1736,10 +1816,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1736
1816
  * }
1737
1817
  * ]
1738
1818
  * }
1739
- * @path {POST} /rest/api/3/workflows/update/validation
1819
+ * ```
1820
+ * @path POST `/rest/api/3/workflows/update/validation`
1740
1821
  * @scopes-current manage:jira-configuration
1741
1822
  * @scopes-beta write:workflow:jira
1742
1823
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-update-validation-post
1824
+ * @param params
1743
1825
  */
1744
1826
  this.validateUpdateWorkflows = ({ workflowUpdateValidateRequestBean, }) => {
1745
1827
  return this.getClientInstance()
@@ -1785,13 +1867,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1785
1867
  *
1786
1868
  * A validator rule that checks if a user has the required permissions to execute
1787
1869
  * the transition in the workflow.
1788
- *
1789
- * {
1790
- * "ruleKey": "system:check-permission-validator",
1791
- * "parameters": {
1792
- * "permissionKey": "ADMINISTER_PROJECTS"
1793
- * }
1794
- * }
1870
+ * ```
1871
+ * {
1872
+ * "ruleKey": "system:check-permission-validator",
1873
+ * "parameters": {
1874
+ * "permissionKey": "ADMINISTER_PROJECTS"
1875
+ * }
1876
+ * }
1877
+ * ```
1795
1878
  *
1796
1879
  * Parameters:
1797
1880
  *
@@ -1803,14 +1886,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1803
1886
  *
1804
1887
  * A validator to block the child issue\\u2019s transition depending on the parent
1805
1888
  * issue\\u2019s status.
1806
- *
1807
- * {
1808
- * "ruleKey" : "system:parent-or-child-blocking-validator"
1809
- * "parameters" : {
1810
- * "blocker" : "PARENT"
1811
- * "statusIds" : "1,2,3"
1812
- * }
1813
- * }
1889
+ * ```
1890
+ * {
1891
+ * "ruleKey" : "system:parent-or-child-blocking-validator"
1892
+ * "parameters" : {
1893
+ * "blocker" : "PARENT"
1894
+ * "statusIds" : "1,2,3"
1895
+ * }
1896
+ * }
1897
+ * ```
1814
1898
  *
1815
1899
  * Parameters:
1816
1900
  *
@@ -1821,14 +1905,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1821
1905
  *
1822
1906
  * A validator that checks if an issue has transitioned through specified previous
1823
1907
  * status(es) before allowing the current transition to occur.
1824
- *
1825
- * {
1826
- * "ruleKey": "system:previous-status-validator",
1827
- * "parameters": {
1828
- * "previousStatusIds": "10014",
1829
- * "mostRecentStatusOnly": "true"
1830
- * }
1831
- * }
1908
+ * ```
1909
+ * {
1910
+ * "ruleKey": "system:previous-status-validator",
1911
+ * "parameters": {
1912
+ * "previousStatusIds": "10014",
1913
+ * "mostRecentStatusOnly": "true"
1914
+ * }
1915
+ * }
1916
+ * ```
1832
1917
  *
1833
1918
  * Parameters:
1834
1919
  *
@@ -1845,16 +1930,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1845
1930
  * Depending on the rule type, the result will vary:
1846
1931
  *
1847
1932
  * ###### Field required ######
1848
- *
1849
- * {
1850
- * "ruleKey": "system:validate-field-value",
1851
- * "parameters": {
1852
- * "ruleType": "fieldRequired",
1853
- * "fieldsRequired": "assignee",
1854
- * "ignoreContext": "true",
1855
- * "errorMessage": "An assignee must be set!"
1856
- * }
1857
- * }
1933
+ * ```
1934
+ * {
1935
+ * "ruleKey": "system:validate-field-value",
1936
+ * "parameters": {
1937
+ * "ruleType": "fieldRequired",
1938
+ * "fieldsRequired": "assignee",
1939
+ * "ignoreContext": "true",
1940
+ * "errorMessage": "An assignee must be set!"
1941
+ * }
1942
+ * }
1943
+ * ```
1858
1944
  *
1859
1945
  * Parameters:
1860
1946
  *
@@ -1870,16 +1956,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1870
1956
  * don't provide one (Optional).
1871
1957
  *
1872
1958
  * ###### Field changed ######
1873
- *
1874
- * {
1875
- * "ruleKey": "system:validate-field-value",
1876
- * "parameters": {
1877
- * "ruleType": "fieldChanged",
1878
- * "groupsExemptFromValidation": "6862ac20-8672-4f68-896d-4854f5efb79e",
1879
- * "fieldKey": "versions",
1880
- * "errorMessage": "Affect versions must be modified before transition"
1881
- * }
1882
- * }
1959
+ * ```
1960
+ * {
1961
+ * "ruleKey": "system:validate-field-value",
1962
+ * "parameters": {
1963
+ * "ruleType": "fieldChanged",
1964
+ * "groupsExemptFromValidation": "6862ac20-8672-4f68-896d-4854f5efb79e",
1965
+ * "fieldKey": "versions",
1966
+ * "errorMessage": "Affect versions must be modified before transition"
1967
+ * }
1968
+ * }
1969
+ * ```
1883
1970
  *
1884
1971
  * Parameters:
1885
1972
  *
@@ -1892,15 +1979,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1892
1979
  * provide one (Optional).
1893
1980
  *
1894
1981
  * ###### Field has a single value ######
1895
- *
1896
- * {
1897
- * "ruleKey": "system:validate-field-value",
1898
- * "parameters": {
1899
- * "ruleType": "fieldHasSingleValue",
1900
- * "fieldKey": "created",
1901
- * "excludeSubtasks": "true"
1902
- * }
1903
- * }
1982
+ * ```
1983
+ * {
1984
+ * "ruleKey": "system:validate-field-value",
1985
+ * "parameters": {
1986
+ * "ruleType": "fieldHasSingleValue",
1987
+ * "fieldKey": "created",
1988
+ * "excludeSubtasks": "true"
1989
+ * }
1990
+ * }
1991
+ * ```
1904
1992
  *
1905
1993
  * Parameters:
1906
1994
  *
@@ -1910,15 +1998,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1910
1998
  * values: `true`, `false`.
1911
1999
  *
1912
2000
  * ###### Field matches regular expression ######
1913
- *
1914
- * {
1915
- * "ruleKey": "system:validate-field-value",
1916
- * "parameters": {
1917
- * "ruleType": "fieldMatchesRegularExpression",
1918
- * "regexp": "[0-9]{4}",
1919
- * "fieldKey": "description"
1920
- * }
1921
- * }
2001
+ * ```
2002
+ * {
2003
+ * "ruleKey": "system:validate-field-value",
2004
+ * "parameters": {
2005
+ * "ruleType": "fieldMatchesRegularExpression",
2006
+ * "regexp": "[0-9]{4}",
2007
+ * "fieldKey": "description"
2008
+ * }
2009
+ * }
2010
+ * ```
1922
2011
  *
1923
2012
  * Parameters:
1924
2013
  *
@@ -1927,17 +2016,18 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1927
2016
  * look like `customfield_123`.
1928
2017
  *
1929
2018
  * ###### Date field comparison ######
1930
- *
1931
- * {
1932
- * "ruleKey": "system:validate-field-value",
1933
- * "parameters": {
1934
- * "ruleType": "dateFieldComparison",
1935
- * "date1FieldKey": "duedate",
1936
- * "date2FieldKey": "customfield_10054",
1937
- * "includeTime": "true",
1938
- * "conditionSelected": ">="
1939
- * }
1940
- * }
2019
+ * ```
2020
+ * {
2021
+ * "ruleKey": "system:validate-field-value",
2022
+ * "parameters": {
2023
+ * "ruleType": "dateFieldComparison",
2024
+ * "date1FieldKey": "duedate",
2025
+ * "date2FieldKey": "customfield_10054",
2026
+ * "includeTime": "true",
2027
+ * "conditionSelected": ">="
2028
+ * }
2029
+ * }
2030
+ * ```
1941
2031
  *
1942
2032
  * Parameters:
1943
2033
  *
@@ -1951,16 +2041,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1951
2041
  * `>=`, `=`, `<=`, `<`, `!=`.
1952
2042
  *
1953
2043
  * ###### Date range comparison ######
1954
- *
1955
- * {
1956
- * "ruleKey": "system:validate-field-value",
1957
- * "parameters": {
1958
- * "ruleType": "windowDateComparison",
1959
- * "date1FieldKey": "customfield_10009",
1960
- * "date2FieldKey": "customfield_10054",
1961
- * "numberOfDays": "3"
1962
- * }
1963
- * }
2044
+ * ```
2045
+ * {
2046
+ * "ruleKey": "system:validate-field-value",
2047
+ * "parameters": {
2048
+ * "ruleType": "windowDateComparison",
2049
+ * "date1FieldKey": "customfield_10009",
2050
+ * "date2FieldKey": "customfield_10054",
2051
+ * "numberOfDays": "3"
2052
+ * }
2053
+ * }
2054
+ * ```
1964
2055
  *
1965
2056
  * Parameters:
1966
2057
  *
@@ -1983,20 +2074,22 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1983
2074
  * ##### Proforma: Forms attached validator #####
1984
2075
  *
1985
2076
  * Validates that one or more forms are attached to the issue.
1986
- *
1987
- * {
1988
- * "ruleKey" : "system:proforma-forms-attached"
1989
- * "parameters" : {}
1990
- * }
2077
+ * ```
2078
+ * {
2079
+ * "ruleKey" : "system:proforma-forms-attached"
2080
+ * "parameters" : {}
2081
+ * }
2082
+ * ```
1991
2083
  *
1992
2084
  * ##### Proforma: Forms submitted validator #####
1993
2085
  *
1994
2086
  * Validates that all forms attached to the issue have been submitted.
1995
- *
1996
- * {
1997
- * "ruleKey" : "system:proforma-forms-submitted"
1998
- * "parameters" : {}
1999
- * }
2087
+ * ```
2088
+ * {
2089
+ * "ruleKey" : "system:proforma-forms-submitted"
2090
+ * "parameters" : {}
2091
+ * }
2092
+ * ```
2000
2093
  *
2001
2094
  * #### Conditions ####
2002
2095
  *
@@ -2007,16 +2100,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2007
2100
  * A condition rule evaluates as true if a specific field's value meets the
2008
2101
  * defined criteria. This rule ensures that an issue can only transition to the
2009
2102
  * next step in the workflow if the field's value matches the desired condition.
2010
- *
2011
- * {
2012
- * "ruleKey": "system:check-field-value",
2013
- * "parameters": {
2014
- * "fieldId": "description",
2015
- * "fieldValue": "[\"Done\"]",
2016
- * "comparator": "=",
2017
- * "comparisonType": "STRING"
2018
- * }
2019
- * }
2103
+ * ```
2104
+ * {
2105
+ * "ruleKey": "system:check-field-value",
2106
+ * "parameters": {
2107
+ * "fieldId": "description",
2108
+ * "fieldValue": "[\"Done\"]",
2109
+ * "comparator": "=",
2110
+ * "comparisonType": "STRING"
2111
+ * }
2112
+ * }
2113
+ * ```
2020
2114
  *
2021
2115
  * Parameters:
2022
2116
  *
@@ -2035,20 +2129,21 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2035
2129
  * roles, group memberships, and permissions, maintaining control over who can
2036
2130
  * transition an issue. This condition evaluates as `true` if any of the following
2037
2131
  * criteria is met.
2038
- *
2039
- * {
2040
- * "ruleKey": "system:restrict-issue-transition",
2041
- * "parameters": {
2042
- * "accountIds": "allow-reporter,5e68ac137d64450d01a77fa0",
2043
- * "roleIds": "10002,10004",
2044
- * "groupIds": "703ff44a-7dc8-4f4b-9aa6-a65bf3574fa4",
2045
- * "permissionKeys": "ADMINISTER_PROJECTS",
2046
- * "groupCustomFields": "customfield_10028",
2047
- * "allowUserCustomFields":
2132
+ * ```
2133
+ * {
2134
+ * "ruleKey": "system:restrict-issue-transition",
2135
+ * "parameters": {
2136
+ * "accountIds": "allow-reporter,5e68ac137d64450d01a77fa0",
2137
+ * "roleIds": "10002,10004",
2138
+ * "groupIds": "703ff44a-7dc8-4f4b-9aa6-a65bf3574fa4",
2139
+ * "permissionKeys": "ADMINISTER_PROJECTS",
2140
+ * "groupCustomFields": "customfield_10028",
2141
+ * "allowUserCustomFields":
2048
2142
  * "customfield_10072,customfield_10144,customfield_10007",
2049
- * "denyUserCustomFields": "customfield_10107"
2050
- * }
2051
- * }
2143
+ * "denyUserCustomFields": "customfield_10107"
2144
+ * }
2145
+ * }
2146
+ * ```
2052
2147
  *
2053
2148
  * Parameters:
2054
2149
  *
@@ -2082,17 +2177,18 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2082
2177
  *
2083
2178
  * A condition that evaluates based on an issue's previous status(es) and specific
2084
2179
  * criteria.
2085
- *
2086
- * {
2087
- * "ruleKey" : "system:previous-status-condition"
2088
- * "parameters" : {
2089
- * "previousStatusIds" : "10004",
2090
- * "not": "true",
2091
- * "mostRecentStatusOnly" : "true",
2092
- * "includeCurrentStatus": "true",
2093
- * "ignoreLoopTransitions": "true"
2094
- * }
2095
- * }
2180
+ * ```
2181
+ * {
2182
+ * "ruleKey" : "system:previous-status-condition"
2183
+ * "parameters" : {
2184
+ * "previousStatusIds" : "10004",
2185
+ * "not": "true",
2186
+ * "mostRecentStatusOnly" : "true",
2187
+ * "includeCurrentStatus": "true",
2188
+ * "ignoreLoopTransitions": "true"
2189
+ * }
2190
+ * }
2191
+ * ```
2096
2192
  *
2097
2193
  * Parameters:
2098
2194
  *
@@ -2112,14 +2208,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2112
2208
  *
2113
2209
  * A condition to block the parent\\u2019s issue transition depending on the
2114
2210
  * child\\u2019s issue status.
2115
- *
2116
- * {
2117
- * "ruleKey" : "system:parent-or-child-blocking-condition"
2118
- * "parameters" : {
2119
- * "blocker" : "CHILD",
2120
- * "statusIds" : "1,2,3"
2121
- * }
2122
- * }
2211
+ * ```
2212
+ * {
2213
+ * "ruleKey" : "system:parent-or-child-blocking-condition"
2214
+ * "parameters" : {
2215
+ * "blocker" : "CHILD",
2216
+ * "statusIds" : "1,2,3"
2217
+ * }
2218
+ * }
2219
+ * ```
2123
2220
  *
2124
2221
  * Parameters:
2125
2222
  *
@@ -2130,14 +2227,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2130
2227
  *
2131
2228
  * A condition preventing the user from performing, if the user has already
2132
2229
  * performed a transition on the issue.
2133
- *
2134
- * {
2135
- * "ruleKey": "system:separation-of-duties",
2136
- * "parameters": {
2137
- * "fromStatusId": "10161",
2138
- * "toStatusId": "10160"
2139
- * }
2140
- * }
2230
+ * ```
2231
+ * {
2232
+ * "ruleKey": "system:separation-of-duties",
2233
+ * "parameters": {
2234
+ * "fromStatusId": "10161",
2235
+ * "toStatusId": "10160"
2236
+ * }
2237
+ * }
2238
+ * ```
2141
2239
  *
2142
2240
  * Parameters:
2143
2241
  *
@@ -2152,13 +2250,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2152
2250
  *
2153
2251
  * A condition preventing all users from transitioning the issue can also
2154
2252
  * optionally include APIs as well.
2155
- *
2156
- * {
2157
- * "ruleKey": "system:restrict-from-all-users",
2158
- * "parameters": {
2159
- * "restrictMode": "users"
2160
- * }
2161
- * }
2253
+ * ```
2254
+ * {
2255
+ * "ruleKey": "system:restrict-from-all-users",
2256
+ * "parameters": {
2257
+ * "restrictMode": "users"
2258
+ * }
2259
+ * }
2260
+ * ```
2162
2261
  *
2163
2262
  * Parameters:
2164
2263
  *
@@ -2169,13 +2268,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2169
2268
  *
2170
2269
  * Block an issue transition until approval. Note: This is only supported in
2171
2270
  * team-managed projects.
2172
- *
2173
- * {
2174
- * "ruleKey": "system:jsd-approvals-block-until-approved",
2175
- * "parameters": {
2176
- * "approvalConfigurationJson": "{"statusExternalUuid...}"
2177
- * }
2178
- * }
2271
+ * ```
2272
+ * {
2273
+ * "ruleKey": "system:jsd-approvals-block-until-approved",
2274
+ * "parameters": {
2275
+ * "approvalConfigurationJson": "{"statusExternalUuid...}"
2276
+ * }
2277
+ * }
2278
+ * ```
2179
2279
  *
2180
2280
  * Parameters:
2181
2281
  *
@@ -2186,13 +2286,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2186
2286
  *
2187
2287
  * Block an issue transition until rejected. Note: This is only supported in
2188
2288
  * team-managed projects.
2189
- *
2190
- * {
2191
- * "ruleKey": "system:jsd-approvals-block-until-rejected",
2192
- * "parameters": {
2193
- * "approvalConfigurationJson": "{"statusExternalUuid...}"
2194
- * }
2195
- * }
2289
+ * ```
2290
+ * {
2291
+ * "ruleKey": "system:jsd-approvals-block-until-rejected",
2292
+ * "parameters": {
2293
+ * "approvalConfigurationJson": "{"statusExternalUuid...}"
2294
+ * }
2295
+ * }
2296
+ * ```
2196
2297
  *
2197
2298
  * Parameters:
2198
2299
  *
@@ -2203,11 +2304,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2203
2304
  *
2204
2305
  * Condition to block issue transition if there is pending approval. Note: This is
2205
2306
  * only supported in company-managed projects.
2206
- *
2207
- * {
2208
- * "ruleKey": "system:block-in-progress-approval",
2209
- * "parameters": {}
2210
- * }
2307
+ * ```
2308
+ * {
2309
+ * "ruleKey": "system:block-in-progress-approval",
2310
+ * "parameters": {}
2311
+ * }
2312
+ * ```
2211
2313
  *
2212
2314
  * #### Post functions ####
2213
2315
  *
@@ -2217,14 +2319,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2217
2319
  * ##### Change assignee #####
2218
2320
  *
2219
2321
  * A post function rule that changes the assignee of an issue after a transition.
2220
- *
2221
- * {
2222
- * "ruleKey": "system:change-assignee",
2223
- * "parameters": {
2224
- * "type": "to-selected-user",
2225
- * "accountId": "example-account-id"
2226
- * }
2227
- * }
2322
+ * ```
2323
+ * {
2324
+ * "ruleKey": "system:change-assignee",
2325
+ * "parameters": {
2326
+ * "type": "to-selected-user",
2327
+ * "accountId": "example-account-id"
2328
+ * }
2329
+ * }
2330
+ * ```
2228
2331
  *
2229
2332
  * Parameters:
2230
2333
  *
@@ -2239,15 +2342,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2239
2342
  * A post function that automates the process of copying values between fields
2240
2343
  * during a specific transition, ensuring data consistency and reducing manual
2241
2344
  * effort.
2242
- *
2243
- * {
2244
- * "ruleKey": "system:copy-value-from-other-field",
2245
- * "parameters": {
2246
- * "sourceFieldKey": "description",
2247
- * "targetFieldKey": "components",
2248
- * "issueSource": "SAME"
2249
- * }
2250
- * }
2345
+ * ```
2346
+ * {
2347
+ * "ruleKey": "system:copy-value-from-other-field",
2348
+ * "parameters": {
2349
+ * "sourceFieldKey": "description",
2350
+ * "targetFieldKey": "components",
2351
+ * "issueSource": "SAME"
2352
+ * }
2353
+ * }
2354
+ * ```
2251
2355
  *
2252
2356
  * Parameters:
2253
2357
  *
@@ -2261,15 +2365,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2261
2365
  * ##### Update field #####
2262
2366
  *
2263
2367
  * A post function that updates or appends a specific field with the given value.
2264
- *
2265
- * {
2266
- * "ruleKey": "system:update-field",
2267
- * "parameters": {
2268
- * "field": "customfield_10056",
2269
- * "value": "asdf",
2270
- * "mode": "append"
2271
- * }
2272
- * }
2368
+ * ```
2369
+ * {
2370
+ * "ruleKey": "system:update-field",
2371
+ * "parameters": {
2372
+ * "field": "customfield_10056",
2373
+ * "value": "asdf",
2374
+ * "mode": "append"
2375
+ * }
2376
+ * }
2377
+ * ```
2273
2378
  *
2274
2379
  * Parameters:
2275
2380
  *
@@ -2283,13 +2388,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2283
2388
  *
2284
2389
  * A post function that automatically triggers a predefined webhook when a
2285
2390
  * transition occurs in the workflow.
2286
- *
2287
- * {
2288
- * "ruleKey": "system:trigger-webhook",
2289
- * "parameters": {
2290
- * "webhookId": "1"
2291
- * }
2292
- * }
2391
+ * ```
2392
+ * {
2393
+ * "ruleKey": "system:trigger-webhook",
2394
+ * "parameters": {
2395
+ * "webhookId": "1"
2396
+ * }
2397
+ * }
2398
+ * ```
2293
2399
  *
2294
2400
  * Parameters:
2295
2401
  *
@@ -2303,15 +2409,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2303
2409
  * with an issue screen during a transition. This rule is useful for ensuring that
2304
2410
  * users provide or modify necessary information before moving an issue to the
2305
2411
  * next step in the workflow.
2306
- *
2307
- * {
2308
- * "ruleKey": "system:remind-people-to-update-fields",
2309
- * "params": {
2310
- * "remindingFieldIds": "assignee,customfield_10025",
2311
- * "remindingMessage": "The message",
2312
- * "remindingAlwaysAsk": "true"
2313
- * }
2314
- * }
2412
+ * ```
2413
+ * {
2414
+ * "ruleKey": "system:remind-people-to-update-fields",
2415
+ * "params": {
2416
+ * "remindingFieldIds": "assignee,customfield_10025",
2417
+ * "remindingMessage": "The message",
2418
+ * "remindingAlwaysAsk": "true"
2419
+ * }
2420
+ * }
2421
+ * ```
2315
2422
  *
2316
2423
  * Parameters:
2317
2424
  *
@@ -2326,13 +2433,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2326
2433
  * ##### Shared transition screen #####
2327
2434
  *
2328
2435
  * A common screen that is shared between transitions in a workflow.
2329
- *
2330
- * {
2331
- * "ruleKey": "system:transition-screen",
2332
- * "params": {
2333
- * "screenId": "3"
2334
- * }
2335
- * }
2436
+ * ```
2437
+ * {
2438
+ * "ruleKey": "system:transition-screen",
2439
+ * "params": {
2440
+ * "screenId": "3"
2441
+ * }
2442
+ * }
2443
+ * ```
2336
2444
  *
2337
2445
  * Parameters:
2338
2446
  *
@@ -2343,17 +2451,18 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2343
2451
  * ##### Connect rules #####
2344
2452
  *
2345
2453
  * Validator/Condition/Post function for Connect app.
2346
- *
2347
- * {
2348
- * "ruleKey": "connect:expression-validator",
2349
- * "parameters": {
2350
- * "appKey": "com.atlassian.app",
2351
- * "config": "",
2352
- * "id": "90ce590f-e90c-4cd3-8281-165ce41f2ac3",
2353
- * "disabled": "false",
2354
- * "tag": ""
2355
- * }
2356
- * }
2454
+ * ```
2455
+ * {
2456
+ * "ruleKey": "connect:expression-validator",
2457
+ * "parameters": {
2458
+ * "appKey": "com.atlassian.app",
2459
+ * "config": "",
2460
+ * "id": "90ce590f-e90c-4cd3-8281-165ce41f2ac3",
2461
+ * "disabled": "false",
2462
+ * "tag": ""
2463
+ * }
2464
+ * }
2465
+ * ```
2357
2466
  *
2358
2467
  * Parameters:
2359
2468
  *
@@ -2370,16 +2479,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2370
2479
  * ##### Forge rules #####
2371
2480
  *
2372
2481
  * Validator/Condition/Post function for Forge app.
2373
- *
2374
- * {
2375
- * "ruleKey": "forge:expression-validator",
2376
- * "parameters": {
2377
- * "key":
2482
+ * ```
2483
+ * {
2484
+ * "ruleKey": "forge:expression-validator",
2485
+ * "parameters": {
2486
+ * "key":
2378
2487
  * "ari:cloud:ecosystem::extension/{appId}/{environmentId}/static/{moduleKey}",
2379
- * "config": "{"searchString":"workflow validator"}",
2380
- * "id": "a865ddf6-bb3f-4a7b-9540-c2f8b3f9f6c2"
2381
- * }
2382
- * }
2488
+ * "config": "{"searchString":"workflow validator"}",
2489
+ * "id": "a865ddf6-bb3f-4a7b-9540-c2f8b3f9f6c2"
2490
+ * }
2491
+ * }
2492
+ * ```
2383
2493
  *
2384
2494
  * Parameters:
2385
2495
  *
@@ -2391,7 +2501,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2391
2501
  *
2392
2502
  * @returns Returned if the request is successful.
2393
2503
  *
2394
- * example: {
2504
+ * example:
2505
+ * ```
2506
+ * {
2395
2507
  * "connectRules": [
2396
2508
  * {
2397
2509
  * "addonKey": "com.atlassian.jira.refapp",
@@ -2409,8 +2521,7 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2409
2521
  * "forgeRules": [
2410
2522
  * {
2411
2523
  * "description": "A Jira workflow validator example.",
2412
- * "id":
2413
- * "ari:cloud:ecosystem::extension/9df6d15f-1bbe-443e-be08-150309e8dbb0/f6a3bed3-737f-4e7a-8942-130df302b749/static/workflow-validator-example-workflow-validator",
2524
+ * "id": "ari:cloud:ecosystem::extension/9df6d15f-1bbe-443e-be08-150309e8dbb0/f6a3bed3-737f-4e7a-8942-130df302b749/static/workflow-validator-example-workflow-validator",
2414
2525
  * "name": "workflow-validator",
2415
2526
  * "ruleKey": "forge:expression-validator",
2416
2527
  * "ruleType": "Validator"
@@ -2422,8 +2533,7 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2422
2533
  * ],
2423
2534
  * "systemRules": [
2424
2535
  * {
2425
- * "description": "Automatically assign a request to someone after moving
2426
- * the request using a particular transition.",
2536
+ * "description": "Automatically assign a request to someone after moving the request using a particular transition.",
2427
2537
  * "incompatibleRuleKeys": [],
2428
2538
  * "isAvailableForInitialTransition": true,
2429
2539
  * "isVisible": true,
@@ -2436,21 +2546,21 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2436
2546
  * {
2437
2547
  * "availableTypes": [
2438
2548
  * {
2439
- * "description": "Automatically transitions the issue when a related
2440
- * branch is created in a connected repository",
2549
+ * "description": "Automatically transitions the issue when a related branch is created in a connected repository",
2441
2550
  * "name": "Branch created",
2442
- * "type":
2443
- * "com.atlassian.jira.plugins.jira-development-integration-plugin:branch-created-trigger"
2551
+ * "type": "com.atlassian.jira.plugins.jira-development-integration-plugin:branch-created-trigger"
2444
2552
  * }
2445
2553
  * ],
2446
2554
  * "ruleKey": "system:development-triggers"
2447
2555
  * }
2448
2556
  * ]
2449
2557
  * }
2450
- * @path {GET} /rest/api/3/workflows/capabilities
2558
+ * ```
2559
+ * @path GET `/rest/api/3/workflows/capabilities`
2451
2560
  * @scopes-current manage:jira-configuration
2452
2561
  * @scopes-beta read:workflow:jira
2453
2562
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-capabilities-get
2563
+ * @param params
2454
2564
  */
2455
2565
  this.workflowCapabilities = ({ workflowId, projectId, issueTypeId, } = {}) => {
2456
2566
  return this.getClientInstance()