@resolution/jira-api-client 0.5.2 → 0.5.3

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 (375) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +1 -1
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +1 -1
  4. package/lib/openapi/platform/models/appMigration.d.ts +12 -6
  5. package/lib/openapi/platform/models/appMigration.js.map +1 -1
  6. package/lib/openapi/platform/models/appProperties.d.ts +2 -1
  7. package/lib/openapi/platform/models/appProperties.js.map +1 -1
  8. package/lib/openapi/platform/models/dynamicModules.d.ts +4 -2
  9. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  10. package/lib/openapi/platform/models/issues.d.ts +12 -7
  11. package/lib/openapi/platform/models/issues.js.map +1 -1
  12. package/lib/openapi/platform/models/jiraExpressions.d.ts +7 -5
  13. package/lib/openapi/platform/models/jiraExpressions.js.map +1 -1
  14. package/lib/openapi/platform/models/jql.d.ts +8 -4
  15. package/lib/openapi/platform/models/jql.js.map +1 -1
  16. package/lib/openapi/platform/models/serviceRegistry.d.ts +2 -1
  17. package/lib/openapi/platform/models/serviceRegistry.js.map +1 -1
  18. package/lib/openapi/platform/models/workflows.d.ts +49 -46
  19. package/lib/openapi/platform/models/workflows.js.map +1 -1
  20. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +11 -8
  21. package/lib/openapi/platform/services/AnnouncementBannerService.js +8 -5
  22. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  23. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +11 -4
  24. package/lib/openapi/platform/services/AppDataPoliciesService.js +11 -4
  25. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  26. package/lib/openapi/platform/services/AppMigrationService.d.ts +12 -5
  27. package/lib/openapi/platform/services/AppMigrationService.js +10 -4
  28. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  29. package/lib/openapi/platform/services/AppPropertiesService.d.ts +42 -18
  30. package/lib/openapi/platform/services/AppPropertiesService.js +42 -18
  31. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  32. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +19 -20
  33. package/lib/openapi/platform/services/ApplicationRolesService.js +19 -20
  34. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  35. package/lib/openapi/platform/services/AuditRecordsService.d.ts +6 -2
  36. package/lib/openapi/platform/services/AuditRecordsService.js +6 -2
  37. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  38. package/lib/openapi/platform/services/AvatarsService.d.ts +43 -36
  39. package/lib/openapi/platform/services/AvatarsService.js +43 -36
  40. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  41. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +15 -21
  42. package/lib/openapi/platform/services/ClassificationLevelsService.js +15 -21
  43. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  44. package/lib/openapi/platform/services/DashboardsService.d.ts +139 -145
  45. package/lib/openapi/platform/services/DashboardsService.js +120 -128
  46. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  47. package/lib/openapi/platform/services/DynamicModulesService.d.ts +5 -3
  48. package/lib/openapi/platform/services/DynamicModulesService.js +5 -3
  49. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  50. package/lib/openapi/platform/services/FilterSharingService.d.ts +72 -95
  51. package/lib/openapi/platform/services/FilterSharingService.js +68 -93
  52. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  53. package/lib/openapi/platform/services/FiltersService.d.ts +178 -257
  54. package/lib/openapi/platform/services/FiltersService.js +172 -254
  55. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  56. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +8 -6
  57. package/lib/openapi/platform/services/GroupAndUserPickerService.js +8 -6
  58. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  59. package/lib/openapi/platform/services/GroupsService.d.ts +42 -26
  60. package/lib/openapi/platform/services/GroupsService.js +38 -24
  61. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  62. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +173 -169
  63. package/lib/openapi/platform/services/IssueAttachmentsService.js +173 -169
  64. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  65. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +35 -19
  66. package/lib/openapi/platform/services/IssueBulkOperationsService.js +33 -18
  67. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -1
  68. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +19 -9
  69. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +19 -9
  70. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  71. package/lib/openapi/platform/services/IssueCommentsService.d.ts +65 -80
  72. package/lib/openapi/platform/services/IssueCommentsService.js +57 -69
  73. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  74. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +10 -4
  75. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +8 -3
  76. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  77. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +71 -37
  78. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +53 -25
  79. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  80. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +50 -28
  81. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +46 -26
  82. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  83. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +37 -16
  84. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +31 -13
  85. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  86. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +8 -4
  87. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +4 -2
  88. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  89. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +75 -32
  90. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +59 -24
  91. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  92. package/lib/openapi/platform/services/IssueFieldsService.d.ts +56 -46
  93. package/lib/openapi/platform/services/IssueFieldsService.js +50 -40
  94. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  95. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +29 -11
  96. package/lib/openapi/platform/services/IssueLinkTypesService.js +25 -9
  97. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  98. package/lib/openapi/platform/services/IssueLinksService.d.ts +20 -23
  99. package/lib/openapi/platform/services/IssueLinksService.js +18 -22
  100. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  101. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +7 -3
  102. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +7 -3
  103. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  104. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +63 -69
  105. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +57 -66
  106. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  107. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +44 -26
  108. package/lib/openapi/platform/services/IssuePrioritiesService.js +36 -22
  109. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  110. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +33 -16
  111. package/lib/openapi/platform/services/IssuePropertiesService.js +27 -13
  112. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  113. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +41 -27
  114. package/lib/openapi/platform/services/IssueRemoteLinksService.js +37 -25
  115. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  116. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +39 -16
  117. package/lib/openapi/platform/services/IssueResolutionsService.js +31 -12
  118. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  119. package/lib/openapi/platform/services/IssueSearchService.d.ts +85 -138
  120. package/lib/openapi/platform/services/IssueSearchService.js +79 -135
  121. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  122. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +19 -18
  123. package/lib/openapi/platform/services/IssueSecurityLevelService.js +19 -18
  124. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  125. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +77 -39
  126. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +63 -32
  127. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  128. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +21 -10
  129. package/lib/openapi/platform/services/IssueTypePropertiesService.js +19 -9
  130. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  131. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +52 -33
  132. package/lib/openapi/platform/services/IssueTypeSchemesService.js +40 -24
  133. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  134. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +55 -26
  135. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +43 -20
  136. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  137. package/lib/openapi/platform/services/IssueTypesService.d.ts +52 -41
  138. package/lib/openapi/platform/services/IssueTypesService.js +48 -39
  139. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  140. package/lib/openapi/platform/services/IssueVotesService.d.ts +16 -16
  141. package/lib/openapi/platform/services/IssueVotesService.js +16 -16
  142. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  143. package/lib/openapi/platform/services/IssueWatchersService.d.ts +19 -9
  144. package/lib/openapi/platform/services/IssueWatchersService.js +17 -8
  145. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  146. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +19 -12
  147. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +19 -12
  148. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  149. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +68 -66
  150. package/lib/openapi/platform/services/IssueWorklogsService.js +62 -63
  151. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  152. package/lib/openapi/platform/services/IssuesService.d.ts +224 -226
  153. package/lib/openapi/platform/services/IssuesService.js +195 -207
  154. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  155. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +24 -23
  156. package/lib/openapi/platform/services/JiraExpressionsService.js +19 -18
  157. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  158. package/lib/openapi/platform/services/JiraSettingsService.d.ts +20 -8
  159. package/lib/openapi/platform/services/JiraSettingsService.js +18 -7
  160. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  161. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +12 -8
  162. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +10 -7
  163. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  164. package/lib/openapi/platform/services/JqlService.d.ts +54 -42
  165. package/lib/openapi/platform/services/JqlService.js +43 -31
  166. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  167. package/lib/openapi/platform/services/LabelsService.d.ts +6 -2
  168. package/lib/openapi/platform/services/LabelsService.js +6 -2
  169. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  170. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +16 -6
  171. package/lib/openapi/platform/services/LicenseMetricsService.js +16 -6
  172. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  173. package/lib/openapi/platform/services/MyselfService.d.ts +27 -20
  174. package/lib/openapi/platform/services/MyselfService.js +25 -19
  175. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  176. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +66 -54
  177. package/lib/openapi/platform/services/PermissionSchemesService.js +60 -51
  178. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  179. package/lib/openapi/platform/services/PermissionsService.d.ts +22 -10
  180. package/lib/openapi/platform/services/PermissionsService.js +20 -9
  181. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  182. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +58 -24
  183. package/lib/openapi/platform/services/PrioritySchemesService.js +52 -21
  184. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  185. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +26 -23
  186. package/lib/openapi/platform/services/ProjectAvatarsService.js +24 -22
  187. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  188. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +29 -11
  189. package/lib/openapi/platform/services/ProjectCategoriesService.js +25 -9
  190. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  191. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +16 -13
  192. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +13 -10
  193. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  194. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +197 -320
  195. package/lib/openapi/platform/services/ProjectComponentsService.js +193 -318
  196. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  197. package/lib/openapi/platform/services/ProjectEmailService.d.ts +10 -4
  198. package/lib/openapi/platform/services/ProjectEmailService.js +8 -3
  199. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  200. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +22 -21
  201. package/lib/openapi/platform/services/ProjectFeaturesService.js +20 -20
  202. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  203. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +18 -6
  204. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +18 -6
  205. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  206. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +31 -22
  207. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +29 -21
  208. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  209. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +21 -10
  210. package/lib/openapi/platform/services/ProjectPropertiesService.js +19 -9
  211. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  212. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +46 -32
  213. package/lib/openapi/platform/services/ProjectRoleActorsService.js +40 -29
  214. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  215. package/lib/openapi/platform/services/ProjectRolesService.d.ts +66 -42
  216. package/lib/openapi/platform/services/ProjectRolesService.js +60 -39
  217. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  218. package/lib/openapi/platform/services/ProjectTypesService.d.ts +28 -20
  219. package/lib/openapi/platform/services/ProjectTypesService.js +28 -20
  220. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  221. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +86 -35
  222. package/lib/openapi/platform/services/ProjectVersionsService.js +76 -30
  223. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  224. package/lib/openapi/platform/services/ProjectsService.d.ts +206 -312
  225. package/lib/openapi/platform/services/ProjectsService.js +201 -308
  226. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  227. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +21 -10
  228. package/lib/openapi/platform/services/ScreenSchemesService.js +17 -8
  229. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  230. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +14 -6
  231. package/lib/openapi/platform/services/ScreenTabFieldsService.js +12 -5
  232. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  233. package/lib/openapi/platform/services/ScreenTabsService.d.ts +26 -10
  234. package/lib/openapi/platform/services/ScreenTabsService.js +24 -9
  235. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  236. package/lib/openapi/platform/services/ScreensService.d.ts +41 -27
  237. package/lib/openapi/platform/services/ScreensService.js +36 -23
  238. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  239. package/lib/openapi/platform/services/ServerInfoService.d.ts +5 -2
  240. package/lib/openapi/platform/services/ServerInfoService.js +5 -2
  241. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  242. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +4 -2
  243. package/lib/openapi/platform/services/ServiceRegistryService.js +2 -1
  244. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  245. package/lib/openapi/platform/services/StatusService.d.ts +28 -14
  246. package/lib/openapi/platform/services/StatusService.js +24 -12
  247. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  248. package/lib/openapi/platform/services/TasksService.d.ts +8 -3
  249. package/lib/openapi/platform/services/TasksService.js +8 -3
  250. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  251. package/lib/openapi/platform/services/TimeTrackingService.d.ts +29 -12
  252. package/lib/openapi/platform/services/TimeTrackingService.js +25 -10
  253. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  254. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +25 -18
  255. package/lib/openapi/platform/services/UiModificationsAppsService.js +21 -16
  256. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  257. package/lib/openapi/platform/services/UserPropertiesService.d.ts +19 -9
  258. package/lib/openapi/platform/services/UserPropertiesService.js +19 -9
  259. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  260. package/lib/openapi/platform/services/UserSearchService.d.ts +94 -125
  261. package/lib/openapi/platform/services/UserSearchService.js +94 -125
  262. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  263. package/lib/openapi/platform/services/UsersService.d.ts +96 -94
  264. package/lib/openapi/platform/services/UsersService.js +94 -93
  265. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  266. package/lib/openapi/platform/services/WebhooksService.d.ts +34 -17
  267. package/lib/openapi/platform/services/WebhooksService.js +28 -14
  268. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  269. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +132 -146
  270. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +122 -141
  271. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  272. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +12 -9
  273. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +10 -8
  274. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  275. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +120 -81
  276. package/lib/openapi/platform/services/WorkflowSchemesService.js +104 -73
  277. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  278. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +11 -4
  279. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +11 -4
  280. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  281. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +11 -4
  282. package/lib/openapi/platform/services/WorkflowStatusesService.js +11 -4
  283. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  284. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +24 -9
  285. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +20 -7
  286. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  287. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +24 -12
  288. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +20 -10
  289. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  290. package/lib/openapi/platform/services/WorkflowsService.d.ts +742 -659
  291. package/lib/openapi/platform/services/WorkflowsService.js +708 -609
  292. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  293. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +1 -1
  294. package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +1 -1
  295. package/lib/openapi/serviceManagement/services/AssetsService.d.ts +10 -7
  296. package/lib/openapi/serviceManagement/services/AssetsService.js +10 -7
  297. package/lib/openapi/serviceManagement/services/AssetsService.js.map +1 -1
  298. package/lib/openapi/serviceManagement/services/CustomerService.d.ts +16 -19
  299. package/lib/openapi/serviceManagement/services/CustomerService.js +14 -18
  300. package/lib/openapi/serviceManagement/services/CustomerService.js.map +1 -1
  301. package/lib/openapi/serviceManagement/services/InfoService.d.ts +5 -2
  302. package/lib/openapi/serviceManagement/services/InfoService.js +5 -2
  303. package/lib/openapi/serviceManagement/services/InfoService.js.map +1 -1
  304. package/lib/openapi/serviceManagement/services/KnowledgebaseService.d.ts +10 -10
  305. package/lib/openapi/serviceManagement/services/KnowledgebaseService.js +10 -10
  306. package/lib/openapi/serviceManagement/services/OrganizationService.d.ts +107 -103
  307. package/lib/openapi/serviceManagement/services/OrganizationService.js +95 -97
  308. package/lib/openapi/serviceManagement/services/OrganizationService.js.map +1 -1
  309. package/lib/openapi/serviceManagement/services/RequestService.d.ts +419 -577
  310. package/lib/openapi/serviceManagement/services/RequestService.js +403 -569
  311. package/lib/openapi/serviceManagement/services/RequestService.js.map +1 -1
  312. package/lib/openapi/serviceManagement/services/RequesttypeService.d.ts +24 -38
  313. package/lib/openapi/serviceManagement/services/RequesttypeService.js +24 -38
  314. package/lib/openapi/serviceManagement/services/RequesttypeService.js.map +1 -1
  315. package/lib/openapi/serviceManagement/services/ServicedeskService.d.ts +194 -214
  316. package/lib/openapi/serviceManagement/services/ServicedeskService.js +188 -211
  317. package/lib/openapi/serviceManagement/services/ServicedeskService.js.map +1 -1
  318. package/lib/openapi/software/models/builds.d.ts +38 -19
  319. package/lib/openapi/software/models/builds.js.map +1 -1
  320. package/lib/openapi/software/models/common.d.ts +6 -3
  321. package/lib/openapi/software/models/common.js.map +1 -1
  322. package/lib/openapi/software/models/deployments.d.ts +36 -17
  323. package/lib/openapi/software/models/deployments.js.map +1 -1
  324. package/lib/openapi/software/models/devOpsComponents.d.ts +6 -3
  325. package/lib/openapi/software/models/devOpsComponents.js.map +1 -1
  326. package/lib/openapi/software/models/developmentInformation.d.ts +106 -54
  327. package/lib/openapi/software/models/developmentInformation.js.map +1 -1
  328. package/lib/openapi/software/models/featureFlags.d.ts +16 -8
  329. package/lib/openapi/software/models/featureFlags.js.map +1 -1
  330. package/lib/openapi/software/models/operations.d.ts +60 -30
  331. package/lib/openapi/software/models/operations.js.map +1 -1
  332. package/lib/openapi/software/models/remoteLinks.d.ts +36 -18
  333. package/lib/openapi/software/models/remoteLinks.js.map +1 -1
  334. package/lib/openapi/software/models/securityInformation.d.ts +52 -26
  335. package/lib/openapi/software/models/securityInformation.js.map +1 -1
  336. package/lib/openapi/software/services/BacklogService.d.ts +13 -7
  337. package/lib/openapi/software/services/BacklogService.js +9 -5
  338. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  339. package/lib/openapi/software/services/BoardService.d.ts +199 -203
  340. package/lib/openapi/software/services/BoardService.js +195 -201
  341. package/lib/openapi/software/services/BoardService.js.map +1 -1
  342. package/lib/openapi/software/services/BuildsService.d.ts +10 -8
  343. package/lib/openapi/software/services/BuildsService.js +10 -8
  344. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  345. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  346. package/lib/openapi/software/services/DeploymentsService.js +12 -12
  347. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  348. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +32 -19
  349. package/lib/openapi/software/services/DevOpsComponentsService.js +10 -8
  350. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  351. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +13 -8
  352. package/lib/openapi/software/services/DevelopmentInformationService.js +13 -8
  353. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  354. package/lib/openapi/software/services/EpicService.d.ts +66 -75
  355. package/lib/openapi/software/services/EpicService.js +58 -71
  356. package/lib/openapi/software/services/EpicService.js.map +1 -1
  357. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -8
  358. package/lib/openapi/software/services/FeatureFlagsService.js +10 -8
  359. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  360. package/lib/openapi/software/services/IssueService.d.ts +44 -43
  361. package/lib/openapi/software/services/IssueService.js +40 -41
  362. package/lib/openapi/software/services/IssueService.js.map +1 -1
  363. package/lib/openapi/software/services/OperationsService.d.ts +65 -37
  364. package/lib/openapi/software/services/OperationsService.js +21 -15
  365. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  366. package/lib/openapi/software/services/RemoteLinksService.d.ts +17 -12
  367. package/lib/openapi/software/services/RemoteLinksService.js +10 -8
  368. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  369. package/lib/openapi/software/services/SecurityInformationService.d.ts +18 -12
  370. package/lib/openapi/software/services/SecurityInformationService.js +18 -12
  371. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  372. package/lib/openapi/software/services/SprintService.d.ts +78 -54
  373. package/lib/openapi/software/services/SprintService.js +68 -49
  374. package/lib/openapi/software/services/SprintService.js.map +1 -1
  375. package/package.json +3 -3
@@ -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": "",
@@ -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": "",
@@ -1454,10 +1511,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1454
1511
  * }
1455
1512
  * ]
1456
1513
  * }
1457
- * @path {POST} /rest/api/3/workflows
1514
+ * ```
1515
+ * @path POST `/rest/api/3/workflows`
1458
1516
  * @scopes-current manage:jira-configuration
1459
1517
  * @scopes-beta read:workflow:jira
1460
1518
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-post
1519
+ * @param params
1461
1520
  */
1462
1521
  this.readWorkflows = ({ expand, workflowReadRequest, }) => {
1463
1522
  return this.getClientInstance()
@@ -1492,7 +1551,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1492
1551
  *
1493
1552
  * @returns Returned if the request is successful.
1494
1553
  *
1495
- * example: {
1554
+ * example:
1555
+ * ```
1556
+ * {
1496
1557
  * "statuses": [
1497
1558
  * {
1498
1559
  * "description": "",
@@ -1637,10 +1698,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1637
1698
  * }
1638
1699
  * ]
1639
1700
  * }
1640
- * @path {POST} /rest/api/3/workflows/update
1701
+ * ```
1702
+ * @path POST `/rest/api/3/workflows/update`
1641
1703
  * @scopes-current manage:jira-configuration
1642
1704
  * @scopes-beta write:workflow:jira
1643
1705
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-update-post
1706
+ * @param params
1644
1707
  */
1645
1708
  this.updateWorkflows = ({ expand, workflowUpdateRequest, }) => {
1646
1709
  return this.getClientInstance()
@@ -1675,7 +1738,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1675
1738
  *
1676
1739
  * @returns Returned if the request is successful.
1677
1740
  *
1678
- * example: {
1741
+ * example:
1742
+ * ```
1743
+ * {
1679
1744
  * "errors": [
1680
1745
  * {
1681
1746
  * "code": "NON_UNIQUE_STATUS_NAME",
@@ -1688,10 +1753,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1688
1753
  * }
1689
1754
  * ]
1690
1755
  * }
1691
- * @path {POST} /rest/api/3/workflows/create/validation
1756
+ * ```
1757
+ * @path POST `/rest/api/3/workflows/create/validation`
1692
1758
  * @scopes-current manage:jira-configuration
1693
1759
  * @scopes-beta write:workflow:jira
1694
1760
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-create-validation-post
1761
+ * @param params
1695
1762
  */
1696
1763
  this.validateCreateWorkflows = ({ workflowCreateValidateRequest, }) => {
1697
1764
  return this.getClientInstance()
@@ -1723,7 +1790,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1723
1790
  *
1724
1791
  * @returns Returned if the request is successful.
1725
1792
  *
1726
- * example: {
1793
+ * example:
1794
+ * ```
1795
+ * {
1727
1796
  * "errors": [
1728
1797
  * {
1729
1798
  * "code": "NON_UNIQUE_STATUS_NAME",
@@ -1736,10 +1805,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1736
1805
  * }
1737
1806
  * ]
1738
1807
  * }
1739
- * @path {POST} /rest/api/3/workflows/update/validation
1808
+ * ```
1809
+ * @path POST `/rest/api/3/workflows/update/validation`
1740
1810
  * @scopes-current manage:jira-configuration
1741
1811
  * @scopes-beta write:workflow:jira
1742
1812
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-update-validation-post
1813
+ * @param params
1743
1814
  */
1744
1815
  this.validateUpdateWorkflows = ({ workflowUpdateValidateRequestBean, }) => {
1745
1816
  return this.getClientInstance()
@@ -1785,13 +1856,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1785
1856
  *
1786
1857
  * A validator rule that checks if a user has the required permissions to execute
1787
1858
  * the transition in the workflow.
1788
- *
1789
- * {
1790
- * "ruleKey": "system:check-permission-validator",
1791
- * "parameters": {
1792
- * "permissionKey": "ADMINISTER_PROJECTS"
1793
- * }
1794
- * }
1859
+ * ```
1860
+ * {
1861
+ * "ruleKey": "system:check-permission-validator",
1862
+ * "parameters": {
1863
+ * "permissionKey": "ADMINISTER_PROJECTS"
1864
+ * }
1865
+ * }
1866
+ * ```
1795
1867
  *
1796
1868
  * Parameters:
1797
1869
  *
@@ -1803,14 +1875,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1803
1875
  *
1804
1876
  * A validator to block the child issue\\u2019s transition depending on the parent
1805
1877
  * 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
- * }
1878
+ * ```
1879
+ * {
1880
+ * "ruleKey" : "system:parent-or-child-blocking-validator"
1881
+ * "parameters" : {
1882
+ * "blocker" : "PARENT"
1883
+ * "statusIds" : "1,2,3"
1884
+ * }
1885
+ * }
1886
+ * ```
1814
1887
  *
1815
1888
  * Parameters:
1816
1889
  *
@@ -1821,14 +1894,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1821
1894
  *
1822
1895
  * A validator that checks if an issue has transitioned through specified previous
1823
1896
  * 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
- * }
1897
+ * ```
1898
+ * {
1899
+ * "ruleKey": "system:previous-status-validator",
1900
+ * "parameters": {
1901
+ * "previousStatusIds": "10014",
1902
+ * "mostRecentStatusOnly": "true"
1903
+ * }
1904
+ * }
1905
+ * ```
1832
1906
  *
1833
1907
  * Parameters:
1834
1908
  *
@@ -1845,16 +1919,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1845
1919
  * Depending on the rule type, the result will vary:
1846
1920
  *
1847
1921
  * ###### 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
- * }
1922
+ * ```
1923
+ * {
1924
+ * "ruleKey": "system:validate-field-value",
1925
+ * "parameters": {
1926
+ * "ruleType": "fieldRequired",
1927
+ * "fieldsRequired": "assignee",
1928
+ * "ignoreContext": "true",
1929
+ * "errorMessage": "An assignee must be set!"
1930
+ * }
1931
+ * }
1932
+ * ```
1858
1933
  *
1859
1934
  * Parameters:
1860
1935
  *
@@ -1870,16 +1945,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1870
1945
  * don't provide one (Optional).
1871
1946
  *
1872
1947
  * ###### 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
- * }
1948
+ * ```
1949
+ * {
1950
+ * "ruleKey": "system:validate-field-value",
1951
+ * "parameters": {
1952
+ * "ruleType": "fieldChanged",
1953
+ * "groupsExemptFromValidation": "6862ac20-8672-4f68-896d-4854f5efb79e",
1954
+ * "fieldKey": "versions",
1955
+ * "errorMessage": "Affect versions must be modified before transition"
1956
+ * }
1957
+ * }
1958
+ * ```
1883
1959
  *
1884
1960
  * Parameters:
1885
1961
  *
@@ -1892,15 +1968,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1892
1968
  * provide one (Optional).
1893
1969
  *
1894
1970
  * ###### 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
- * }
1971
+ * ```
1972
+ * {
1973
+ * "ruleKey": "system:validate-field-value",
1974
+ * "parameters": {
1975
+ * "ruleType": "fieldHasSingleValue",
1976
+ * "fieldKey": "created",
1977
+ * "excludeSubtasks": "true"
1978
+ * }
1979
+ * }
1980
+ * ```
1904
1981
  *
1905
1982
  * Parameters:
1906
1983
  *
@@ -1910,15 +1987,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1910
1987
  * values: `true`, `false`.
1911
1988
  *
1912
1989
  * ###### 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
- * }
1990
+ * ```
1991
+ * {
1992
+ * "ruleKey": "system:validate-field-value",
1993
+ * "parameters": {
1994
+ * "ruleType": "fieldMatchesRegularExpression",
1995
+ * "regexp": "[0-9]{4}",
1996
+ * "fieldKey": "description"
1997
+ * }
1998
+ * }
1999
+ * ```
1922
2000
  *
1923
2001
  * Parameters:
1924
2002
  *
@@ -1927,17 +2005,18 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1927
2005
  * look like `customfield_123`.
1928
2006
  *
1929
2007
  * ###### 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
- * }
2008
+ * ```
2009
+ * {
2010
+ * "ruleKey": "system:validate-field-value",
2011
+ * "parameters": {
2012
+ * "ruleType": "dateFieldComparison",
2013
+ * "date1FieldKey": "duedate",
2014
+ * "date2FieldKey": "customfield_10054",
2015
+ * "includeTime": "true",
2016
+ * "conditionSelected": ">="
2017
+ * }
2018
+ * }
2019
+ * ```
1941
2020
  *
1942
2021
  * Parameters:
1943
2022
  *
@@ -1951,16 +2030,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1951
2030
  * `>=`, `=`, `<=`, `<`, `!=`.
1952
2031
  *
1953
2032
  * ###### 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
- * }
2033
+ * ```
2034
+ * {
2035
+ * "ruleKey": "system:validate-field-value",
2036
+ * "parameters": {
2037
+ * "ruleType": "windowDateComparison",
2038
+ * "date1FieldKey": "customfield_10009",
2039
+ * "date2FieldKey": "customfield_10054",
2040
+ * "numberOfDays": "3"
2041
+ * }
2042
+ * }
2043
+ * ```
1964
2044
  *
1965
2045
  * Parameters:
1966
2046
  *
@@ -1983,20 +2063,22 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
1983
2063
  * ##### Proforma: Forms attached validator #####
1984
2064
  *
1985
2065
  * Validates that one or more forms are attached to the issue.
1986
- *
1987
- * {
1988
- * "ruleKey" : "system:proforma-forms-attached"
1989
- * "parameters" : {}
1990
- * }
2066
+ * ```
2067
+ * {
2068
+ * "ruleKey" : "system:proforma-forms-attached"
2069
+ * "parameters" : {}
2070
+ * }
2071
+ * ```
1991
2072
  *
1992
2073
  * ##### Proforma: Forms submitted validator #####
1993
2074
  *
1994
2075
  * Validates that all forms attached to the issue have been submitted.
1995
- *
1996
- * {
1997
- * "ruleKey" : "system:proforma-forms-submitted"
1998
- * "parameters" : {}
1999
- * }
2076
+ * ```
2077
+ * {
2078
+ * "ruleKey" : "system:proforma-forms-submitted"
2079
+ * "parameters" : {}
2080
+ * }
2081
+ * ```
2000
2082
  *
2001
2083
  * #### Conditions ####
2002
2084
  *
@@ -2007,16 +2089,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2007
2089
  * A condition rule evaluates as true if a specific field's value meets the
2008
2090
  * defined criteria. This rule ensures that an issue can only transition to the
2009
2091
  * 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
- * }
2092
+ * ```
2093
+ * {
2094
+ * "ruleKey": "system:check-field-value",
2095
+ * "parameters": {
2096
+ * "fieldId": "description",
2097
+ * "fieldValue": "[\"Done\"]",
2098
+ * "comparator": "=",
2099
+ * "comparisonType": "STRING"
2100
+ * }
2101
+ * }
2102
+ * ```
2020
2103
  *
2021
2104
  * Parameters:
2022
2105
  *
@@ -2035,20 +2118,21 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2035
2118
  * roles, group memberships, and permissions, maintaining control over who can
2036
2119
  * transition an issue. This condition evaluates as `true` if any of the following
2037
2120
  * 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":
2121
+ * ```
2122
+ * {
2123
+ * "ruleKey": "system:restrict-issue-transition",
2124
+ * "parameters": {
2125
+ * "accountIds": "allow-reporter,5e68ac137d64450d01a77fa0",
2126
+ * "roleIds": "10002,10004",
2127
+ * "groupIds": "703ff44a-7dc8-4f4b-9aa6-a65bf3574fa4",
2128
+ * "permissionKeys": "ADMINISTER_PROJECTS",
2129
+ * "groupCustomFields": "customfield_10028",
2130
+ * "allowUserCustomFields":
2048
2131
  * "customfield_10072,customfield_10144,customfield_10007",
2049
- * "denyUserCustomFields": "customfield_10107"
2050
- * }
2051
- * }
2132
+ * "denyUserCustomFields": "customfield_10107"
2133
+ * }
2134
+ * }
2135
+ * ```
2052
2136
  *
2053
2137
  * Parameters:
2054
2138
  *
@@ -2082,17 +2166,18 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2082
2166
  *
2083
2167
  * A condition that evaluates based on an issue's previous status(es) and specific
2084
2168
  * 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
- * }
2169
+ * ```
2170
+ * {
2171
+ * "ruleKey" : "system:previous-status-condition"
2172
+ * "parameters" : {
2173
+ * "previousStatusIds" : "10004",
2174
+ * "not": "true",
2175
+ * "mostRecentStatusOnly" : "true",
2176
+ * "includeCurrentStatus": "true",
2177
+ * "ignoreLoopTransitions": "true"
2178
+ * }
2179
+ * }
2180
+ * ```
2096
2181
  *
2097
2182
  * Parameters:
2098
2183
  *
@@ -2112,14 +2197,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2112
2197
  *
2113
2198
  * A condition to block the parent\\u2019s issue transition depending on the
2114
2199
  * 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
- * }
2200
+ * ```
2201
+ * {
2202
+ * "ruleKey" : "system:parent-or-child-blocking-condition"
2203
+ * "parameters" : {
2204
+ * "blocker" : "CHILD",
2205
+ * "statusIds" : "1,2,3"
2206
+ * }
2207
+ * }
2208
+ * ```
2123
2209
  *
2124
2210
  * Parameters:
2125
2211
  *
@@ -2130,14 +2216,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2130
2216
  *
2131
2217
  * A condition preventing the user from performing, if the user has already
2132
2218
  * performed a transition on the issue.
2133
- *
2134
- * {
2135
- * "ruleKey": "system:separation-of-duties",
2136
- * "parameters": {
2137
- * "fromStatusId": "10161",
2138
- * "toStatusId": "10160"
2139
- * }
2140
- * }
2219
+ * ```
2220
+ * {
2221
+ * "ruleKey": "system:separation-of-duties",
2222
+ * "parameters": {
2223
+ * "fromStatusId": "10161",
2224
+ * "toStatusId": "10160"
2225
+ * }
2226
+ * }
2227
+ * ```
2141
2228
  *
2142
2229
  * Parameters:
2143
2230
  *
@@ -2152,13 +2239,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2152
2239
  *
2153
2240
  * A condition preventing all users from transitioning the issue can also
2154
2241
  * optionally include APIs as well.
2155
- *
2156
- * {
2157
- * "ruleKey": "system:restrict-from-all-users",
2158
- * "parameters": {
2159
- * "restrictMode": "users"
2160
- * }
2161
- * }
2242
+ * ```
2243
+ * {
2244
+ * "ruleKey": "system:restrict-from-all-users",
2245
+ * "parameters": {
2246
+ * "restrictMode": "users"
2247
+ * }
2248
+ * }
2249
+ * ```
2162
2250
  *
2163
2251
  * Parameters:
2164
2252
  *
@@ -2169,13 +2257,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2169
2257
  *
2170
2258
  * Block an issue transition until approval. Note: This is only supported in
2171
2259
  * team-managed projects.
2172
- *
2173
- * {
2174
- * "ruleKey": "system:jsd-approvals-block-until-approved",
2175
- * "parameters": {
2176
- * "approvalConfigurationJson": "{"statusExternalUuid...}"
2177
- * }
2178
- * }
2260
+ * ```
2261
+ * {
2262
+ * "ruleKey": "system:jsd-approvals-block-until-approved",
2263
+ * "parameters": {
2264
+ * "approvalConfigurationJson": "{"statusExternalUuid...}"
2265
+ * }
2266
+ * }
2267
+ * ```
2179
2268
  *
2180
2269
  * Parameters:
2181
2270
  *
@@ -2186,13 +2275,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2186
2275
  *
2187
2276
  * Block an issue transition until rejected. Note: This is only supported in
2188
2277
  * team-managed projects.
2189
- *
2190
- * {
2191
- * "ruleKey": "system:jsd-approvals-block-until-rejected",
2192
- * "parameters": {
2193
- * "approvalConfigurationJson": "{"statusExternalUuid...}"
2194
- * }
2195
- * }
2278
+ * ```
2279
+ * {
2280
+ * "ruleKey": "system:jsd-approvals-block-until-rejected",
2281
+ * "parameters": {
2282
+ * "approvalConfigurationJson": "{"statusExternalUuid...}"
2283
+ * }
2284
+ * }
2285
+ * ```
2196
2286
  *
2197
2287
  * Parameters:
2198
2288
  *
@@ -2203,11 +2293,12 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2203
2293
  *
2204
2294
  * Condition to block issue transition if there is pending approval. Note: This is
2205
2295
  * only supported in company-managed projects.
2206
- *
2207
- * {
2208
- * "ruleKey": "system:block-in-progress-approval",
2209
- * "parameters": {}
2210
- * }
2296
+ * ```
2297
+ * {
2298
+ * "ruleKey": "system:block-in-progress-approval",
2299
+ * "parameters": {}
2300
+ * }
2301
+ * ```
2211
2302
  *
2212
2303
  * #### Post functions ####
2213
2304
  *
@@ -2217,14 +2308,15 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2217
2308
  * ##### Change assignee #####
2218
2309
  *
2219
2310
  * 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
- * }
2311
+ * ```
2312
+ * {
2313
+ * "ruleKey": "system:change-assignee",
2314
+ * "parameters": {
2315
+ * "type": "to-selected-user",
2316
+ * "accountId": "example-account-id"
2317
+ * }
2318
+ * }
2319
+ * ```
2228
2320
  *
2229
2321
  * Parameters:
2230
2322
  *
@@ -2239,15 +2331,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2239
2331
  * A post function that automates the process of copying values between fields
2240
2332
  * during a specific transition, ensuring data consistency and reducing manual
2241
2333
  * effort.
2242
- *
2243
- * {
2244
- * "ruleKey": "system:copy-value-from-other-field",
2245
- * "parameters": {
2246
- * "sourceFieldKey": "description",
2247
- * "targetFieldKey": "components",
2248
- * "issueSource": "SAME"
2249
- * }
2250
- * }
2334
+ * ```
2335
+ * {
2336
+ * "ruleKey": "system:copy-value-from-other-field",
2337
+ * "parameters": {
2338
+ * "sourceFieldKey": "description",
2339
+ * "targetFieldKey": "components",
2340
+ * "issueSource": "SAME"
2341
+ * }
2342
+ * }
2343
+ * ```
2251
2344
  *
2252
2345
  * Parameters:
2253
2346
  *
@@ -2261,15 +2354,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2261
2354
  * ##### Update field #####
2262
2355
  *
2263
2356
  * 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
- * }
2357
+ * ```
2358
+ * {
2359
+ * "ruleKey": "system:update-field",
2360
+ * "parameters": {
2361
+ * "field": "customfield_10056",
2362
+ * "value": "asdf",
2363
+ * "mode": "append"
2364
+ * }
2365
+ * }
2366
+ * ```
2273
2367
  *
2274
2368
  * Parameters:
2275
2369
  *
@@ -2283,13 +2377,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2283
2377
  *
2284
2378
  * A post function that automatically triggers a predefined webhook when a
2285
2379
  * transition occurs in the workflow.
2286
- *
2287
- * {
2288
- * "ruleKey": "system:trigger-webhook",
2289
- * "parameters": {
2290
- * "webhookId": "1"
2291
- * }
2292
- * }
2380
+ * ```
2381
+ * {
2382
+ * "ruleKey": "system:trigger-webhook",
2383
+ * "parameters": {
2384
+ * "webhookId": "1"
2385
+ * }
2386
+ * }
2387
+ * ```
2293
2388
  *
2294
2389
  * Parameters:
2295
2390
  *
@@ -2303,15 +2398,16 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2303
2398
  * with an issue screen during a transition. This rule is useful for ensuring that
2304
2399
  * users provide or modify necessary information before moving an issue to the
2305
2400
  * 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
- * }
2401
+ * ```
2402
+ * {
2403
+ * "ruleKey": "system:remind-people-to-update-fields",
2404
+ * "params": {
2405
+ * "remindingFieldIds": "assignee,customfield_10025",
2406
+ * "remindingMessage": "The message",
2407
+ * "remindingAlwaysAsk": "true"
2408
+ * }
2409
+ * }
2410
+ * ```
2315
2411
  *
2316
2412
  * Parameters:
2317
2413
  *
@@ -2326,13 +2422,14 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2326
2422
  * ##### Shared transition screen #####
2327
2423
  *
2328
2424
  * 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
- * }
2425
+ * ```
2426
+ * {
2427
+ * "ruleKey": "system:transition-screen",
2428
+ * "params": {
2429
+ * "screenId": "3"
2430
+ * }
2431
+ * }
2432
+ * ```
2336
2433
  *
2337
2434
  * Parameters:
2338
2435
  *
@@ -2343,17 +2440,18 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2343
2440
  * ##### Connect rules #####
2344
2441
  *
2345
2442
  * 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
- * }
2443
+ * ```
2444
+ * {
2445
+ * "ruleKey": "connect:expression-validator",
2446
+ * "parameters": {
2447
+ * "appKey": "com.atlassian.app",
2448
+ * "config": "",
2449
+ * "id": "90ce590f-e90c-4cd3-8281-165ce41f2ac3",
2450
+ * "disabled": "false",
2451
+ * "tag": ""
2452
+ * }
2453
+ * }
2454
+ * ```
2357
2455
  *
2358
2456
  * Parameters:
2359
2457
  *
@@ -2370,16 +2468,17 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2370
2468
  * ##### Forge rules #####
2371
2469
  *
2372
2470
  * Validator/Condition/Post function for Forge app.
2373
- *
2374
- * {
2375
- * "ruleKey": "forge:expression-validator",
2376
- * "parameters": {
2377
- * "key":
2471
+ * ```
2472
+ * {
2473
+ * "ruleKey": "forge:expression-validator",
2474
+ * "parameters": {
2475
+ * "key":
2378
2476
  * "ari:cloud:ecosystem::extension/{appId}/{environmentId}/static/{moduleKey}",
2379
- * "config": "{"searchString":"workflow validator"}",
2380
- * "id": "a865ddf6-bb3f-4a7b-9540-c2f8b3f9f6c2"
2381
- * }
2382
- * }
2477
+ * "config": "{"searchString":"workflow validator"}",
2478
+ * "id": "a865ddf6-bb3f-4a7b-9540-c2f8b3f9f6c2"
2479
+ * }
2480
+ * }
2481
+ * ```
2383
2482
  *
2384
2483
  * Parameters:
2385
2484
  *
@@ -2391,7 +2490,9 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2391
2490
  *
2392
2491
  * @returns Returned if the request is successful.
2393
2492
  *
2394
- * example: {
2493
+ * example:
2494
+ * ```
2495
+ * {
2395
2496
  * "connectRules": [
2396
2497
  * {
2397
2498
  * "addonKey": "com.atlassian.jira.refapp",
@@ -2409,8 +2510,7 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2409
2510
  * "forgeRules": [
2410
2511
  * {
2411
2512
  * "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",
2513
+ * "id": "ari:cloud:ecosystem::extension/9df6d15f-1bbe-443e-be08-150309e8dbb0/f6a3bed3-737f-4e7a-8942-130df302b749/static/workflow-validator-example-workflow-validator",
2414
2514
  * "name": "workflow-validator",
2415
2515
  * "ruleKey": "forge:expression-validator",
2416
2516
  * "ruleType": "Validator"
@@ -2422,8 +2522,7 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2422
2522
  * ],
2423
2523
  * "systemRules": [
2424
2524
  * {
2425
- * "description": "Automatically assign a request to someone after moving
2426
- * the request using a particular transition.",
2525
+ * "description": "Automatically assign a request to someone after moving the request using a particular transition.",
2427
2526
  * "incompatibleRuleKeys": [],
2428
2527
  * "isAvailableForInitialTransition": true,
2429
2528
  * "isVisible": true,
@@ -2436,21 +2535,21 @@ class WorkflowsService extends CommonHttpService_1.CommonHttpService {
2436
2535
  * {
2437
2536
  * "availableTypes": [
2438
2537
  * {
2439
- * "description": "Automatically transitions the issue when a related
2440
- * branch is created in a connected repository",
2538
+ * "description": "Automatically transitions the issue when a related branch is created in a connected repository",
2441
2539
  * "name": "Branch created",
2442
- * "type":
2443
- * "com.atlassian.jira.plugins.jira-development-integration-plugin:branch-created-trigger"
2540
+ * "type": "com.atlassian.jira.plugins.jira-development-integration-plugin:branch-created-trigger"
2444
2541
  * }
2445
2542
  * ],
2446
2543
  * "ruleKey": "system:development-triggers"
2447
2544
  * }
2448
2545
  * ]
2449
2546
  * }
2450
- * @path {GET} /rest/api/3/workflows/capabilities
2547
+ * ```
2548
+ * @path GET `/rest/api/3/workflows/capabilities`
2451
2549
  * @scopes-current manage:jira-configuration
2452
2550
  * @scopes-beta read:workflow:jira
2453
2551
  * @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows#api-rest-api-3-workflows-capabilities-get
2552
+ * @param params
2454
2553
  */
2455
2554
  this.workflowCapabilities = ({ workflowId, projectId, issueTypeId, } = {}) => {
2456
2555
  return this.getClientInstance()