@resolution/jira-api-client 0.4.2 → 0.4.5

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 (327) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +4 -0
  3. package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +28 -4
  4. package/lib/openapi/platform/BaseJiraPlatformApiClient.js +24 -1
  5. package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
  6. package/lib/openapi/platform/models/common.d.ts +6 -0
  7. package/lib/openapi/platform/models/common.js +12 -1
  8. package/lib/openapi/platform/models/common.js.map +1 -1
  9. package/lib/openapi/platform/models/dynamicModules.d.ts +0 -9
  10. package/lib/openapi/platform/models/dynamicModules.js +0 -6
  11. package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
  12. package/lib/openapi/platform/models/issueBulkOperations.d.ts +547 -0
  13. package/lib/openapi/platform/models/issueBulkOperations.js +437 -0
  14. package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -0
  15. package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +3 -3
  16. package/lib/openapi/platform/services/AnnouncementBannerService.js +65 -62
  17. package/lib/openapi/platform/services/AnnouncementBannerService.js.map +1 -1
  18. package/lib/openapi/platform/services/AppDataPoliciesService.d.ts +4 -4
  19. package/lib/openapi/platform/services/AppDataPoliciesService.js +70 -67
  20. package/lib/openapi/platform/services/AppDataPoliciesService.js.map +1 -1
  21. package/lib/openapi/platform/services/AppMigrationService.d.ts +6 -6
  22. package/lib/openapi/platform/services/AppMigrationService.js +139 -136
  23. package/lib/openapi/platform/services/AppMigrationService.js.map +1 -1
  24. package/lib/openapi/platform/services/AppPropertiesService.d.ts +12 -12
  25. package/lib/openapi/platform/services/AppPropertiesService.js +254 -251
  26. package/lib/openapi/platform/services/AppPropertiesService.js.map +1 -1
  27. package/lib/openapi/platform/services/ApplicationRolesService.d.ts +3 -3
  28. package/lib/openapi/platform/services/ApplicationRolesService.js +177 -174
  29. package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
  30. package/lib/openapi/platform/services/AuditRecordsService.d.ts +7 -7
  31. package/lib/openapi/platform/services/AuditRecordsService.js +97 -94
  32. package/lib/openapi/platform/services/AuditRecordsService.js.map +1 -1
  33. package/lib/openapi/platform/services/AvatarsService.d.ts +25 -31
  34. package/lib/openapi/platform/services/AvatarsService.js +412 -415
  35. package/lib/openapi/platform/services/AvatarsService.js.map +1 -1
  36. package/lib/openapi/platform/services/ClassificationLevelsService.d.ts +4 -4
  37. package/lib/openapi/platform/services/ClassificationLevelsService.js +79 -76
  38. package/lib/openapi/platform/services/ClassificationLevelsService.js.map +1 -1
  39. package/lib/openapi/platform/services/DashboardsService.d.ts +62 -50
  40. package/lib/openapi/platform/services/DashboardsService.js +983 -974
  41. package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
  42. package/lib/openapi/platform/services/DynamicModulesService.d.ts +6 -6
  43. package/lib/openapi/platform/services/DynamicModulesService.js +68 -65
  44. package/lib/openapi/platform/services/DynamicModulesService.js.map +1 -1
  45. package/lib/openapi/platform/services/FilterSharingService.d.ts +11 -11
  46. package/lib/openapi/platform/services/FilterSharingService.js +512 -509
  47. package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
  48. package/lib/openapi/platform/services/FiltersService.d.ts +50 -50
  49. package/lib/openapi/platform/services/FiltersService.js +1262 -1259
  50. package/lib/openapi/platform/services/FiltersService.js.map +1 -1
  51. package/lib/openapi/platform/services/GroupAndUserPickerService.d.ts +10 -10
  52. package/lib/openapi/platform/services/GroupAndUserPickerService.js +112 -109
  53. package/lib/openapi/platform/services/GroupAndUserPickerService.js.map +1 -1
  54. package/lib/openapi/platform/services/GroupsService.d.ts +46 -46
  55. package/lib/openapi/platform/services/GroupsService.js +385 -382
  56. package/lib/openapi/platform/services/GroupsService.js.map +1 -1
  57. package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +20 -20
  58. package/lib/openapi/platform/services/IssueAttachmentsService.js +644 -641
  59. package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
  60. package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +325 -0
  61. package/lib/openapi/platform/services/IssueBulkOperationsService.js +353 -0
  62. package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -0
  63. package/lib/openapi/platform/services/IssueCommentPropertiesService.d.ts +8 -8
  64. package/lib/openapi/platform/services/IssueCommentPropertiesService.js +187 -184
  65. package/lib/openapi/platform/services/IssueCommentPropertiesService.js.map +1 -1
  66. package/lib/openapi/platform/services/IssueCommentsService.d.ts +22 -22
  67. package/lib/openapi/platform/services/IssueCommentsService.js +507 -504
  68. package/lib/openapi/platform/services/IssueCommentsService.js.map +1 -1
  69. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +11 -11
  70. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js +126 -123
  71. package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.js.map +1 -1
  72. package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +42 -42
  73. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +748 -745
  74. package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
  75. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +28 -28
  76. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js +535 -532
  77. package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.js.map +1 -1
  78. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +20 -20
  79. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js +358 -355
  80. package/lib/openapi/platform/services/IssueCustomFieldOptionsService.js.map +1 -1
  81. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +6 -6
  82. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +86 -83
  83. package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
  84. package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +45 -45
  85. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +689 -686
  86. package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
  87. package/lib/openapi/platform/services/IssueFieldsService.d.ts +32 -32
  88. package/lib/openapi/platform/services/IssueFieldsService.js +484 -481
  89. package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
  90. package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +9 -9
  91. package/lib/openapi/platform/services/IssueLinkTypesService.js +212 -209
  92. package/lib/openapi/platform/services/IssueLinkTypesService.js.map +1 -1
  93. package/lib/openapi/platform/services/IssueLinksService.d.ts +6 -6
  94. package/lib/openapi/platform/services/IssueLinksService.js +230 -227
  95. package/lib/openapi/platform/services/IssueLinksService.js.map +1 -1
  96. package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +3 -3
  97. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +72 -69
  98. package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
  99. package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +27 -27
  100. package/lib/openapi/platform/services/IssueNotificationSchemesService.js +816 -813
  101. package/lib/openapi/platform/services/IssueNotificationSchemesService.js.map +1 -1
  102. package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +22 -22
  103. package/lib/openapi/platform/services/IssuePrioritiesService.js +307 -304
  104. package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
  105. package/lib/openapi/platform/services/IssuePropertiesService.d.ts +16 -16
  106. package/lib/openapi/platform/services/IssuePropertiesService.js +390 -387
  107. package/lib/openapi/platform/services/IssuePropertiesService.js.map +1 -1
  108. package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +13 -13
  109. package/lib/openapi/platform/services/IssueRemoteLinksService.js +368 -365
  110. package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
  111. package/lib/openapi/platform/services/IssueResolutionsService.d.ts +19 -19
  112. package/lib/openapi/platform/services/IssueResolutionsService.js +283 -280
  113. package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
  114. package/lib/openapi/platform/services/IssueSearchService.d.ts +24 -24
  115. package/lib/openapi/platform/services/IssueSearchService.js +826 -823
  116. package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
  117. package/lib/openapi/platform/services/IssueSecurityLevelService.d.ts +8 -8
  118. package/lib/openapi/platform/services/IssueSecurityLevelService.js +137 -134
  119. package/lib/openapi/platform/services/IssueSecurityLevelService.js.map +1 -1
  120. package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +51 -51
  121. package/lib/openapi/platform/services/IssueSecuritySchemesService.js +610 -607
  122. package/lib/openapi/platform/services/IssueSecuritySchemesService.js.map +1 -1
  123. package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +8 -8
  124. package/lib/openapi/platform/services/IssueTypePropertiesService.js +175 -172
  125. package/lib/openapi/platform/services/IssueTypePropertiesService.js.map +1 -1
  126. package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +31 -31
  127. package/lib/openapi/platform/services/IssueTypeSchemesService.js +527 -524
  128. package/lib/openapi/platform/services/IssueTypeSchemesService.js.map +1 -1
  129. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +36 -36
  130. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js +508 -505
  131. package/lib/openapi/platform/services/IssueTypeScreenSchemesService.js.map +1 -1
  132. package/lib/openapi/platform/services/IssueTypesService.d.ts +22 -28
  133. package/lib/openapi/platform/services/IssueTypesService.js +424 -427
  134. package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
  135. package/lib/openapi/platform/services/IssueVotesService.d.ts +6 -6
  136. package/lib/openapi/platform/services/IssueVotesService.js +148 -145
  137. package/lib/openapi/platform/services/IssueVotesService.js.map +1 -1
  138. package/lib/openapi/platform/services/IssueWatchersService.d.ts +10 -10
  139. package/lib/openapi/platform/services/IssueWatchersService.js +197 -194
  140. package/lib/openapi/platform/services/IssueWatchersService.js.map +1 -1
  141. package/lib/openapi/platform/services/IssueWorklogPropertiesService.d.ts +8 -8
  142. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js +199 -196
  143. package/lib/openapi/platform/services/IssueWorklogPropertiesService.js.map +1 -1
  144. package/lib/openapi/platform/services/IssueWorklogsService.d.ts +44 -44
  145. package/lib/openapi/platform/services/IssueWorklogsService.js +636 -633
  146. package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
  147. package/lib/openapi/platform/services/IssuesService.d.ts +71 -71
  148. package/lib/openapi/platform/services/IssuesService.js +1856 -1853
  149. package/lib/openapi/platform/services/IssuesService.js.map +1 -1
  150. package/lib/openapi/platform/services/JiraExpressionsService.d.ts +6 -6
  151. package/lib/openapi/platform/services/JiraExpressionsService.js +238 -235
  152. package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
  153. package/lib/openapi/platform/services/JiraSettingsService.d.ts +9 -9
  154. package/lib/openapi/platform/services/JiraSettingsService.js +279 -276
  155. package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
  156. package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +8 -8
  157. package/lib/openapi/platform/services/JqlFunctionsAppsService.js +107 -104
  158. package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
  159. package/lib/openapi/platform/services/JqlService.d.ts +15 -15
  160. package/lib/openapi/platform/services/JqlService.js +635 -632
  161. package/lib/openapi/platform/services/JqlService.js.map +1 -1
  162. package/lib/openapi/platform/services/LabelsService.d.ts +4 -4
  163. package/lib/openapi/platform/services/LabelsService.js +41 -38
  164. package/lib/openapi/platform/services/LabelsService.js.map +1 -1
  165. package/lib/openapi/platform/services/LicenseMetricsService.d.ts +4 -4
  166. package/lib/openapi/platform/services/LicenseMetricsService.js +120 -117
  167. package/lib/openapi/platform/services/LicenseMetricsService.js.map +1 -1
  168. package/lib/openapi/platform/services/MyselfService.d.ts +14 -14
  169. package/lib/openapi/platform/services/MyselfService.js +321 -318
  170. package/lib/openapi/platform/services/MyselfService.js.map +1 -1
  171. package/lib/openapi/platform/services/PermissionSchemesService.d.ts +25 -25
  172. package/lib/openapi/platform/services/PermissionSchemesService.js +548 -545
  173. package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
  174. package/lib/openapi/platform/services/PermissionsService.d.ts +15 -15
  175. package/lib/openapi/platform/services/PermissionsService.js +235 -232
  176. package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
  177. package/lib/openapi/platform/services/PrioritySchemesService.d.ts +34 -34
  178. package/lib/openapi/platform/services/PrioritySchemesService.js +571 -568
  179. package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
  180. package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +11 -11
  181. package/lib/openapi/platform/services/ProjectAvatarsService.js +213 -210
  182. package/lib/openapi/platform/services/ProjectAvatarsService.js.map +1 -1
  183. package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +9 -9
  184. package/lib/openapi/platform/services/ProjectCategoriesService.js +180 -177
  185. package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
  186. package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +6 -6
  187. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js +125 -122
  188. package/lib/openapi/platform/services/ProjectClassificationLevelsService.js.map +1 -1
  189. package/lib/openapi/platform/services/ProjectComponentsService.d.ts +28 -28
  190. package/lib/openapi/platform/services/ProjectComponentsService.js +1009 -1006
  191. package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
  192. package/lib/openapi/platform/services/ProjectEmailService.d.ts +4 -4
  193. package/lib/openapi/platform/services/ProjectEmailService.js +78 -75
  194. package/lib/openapi/platform/services/ProjectEmailService.js.map +1 -1
  195. package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +4 -4
  196. package/lib/openapi/platform/services/ProjectFeaturesService.js +119 -116
  197. package/lib/openapi/platform/services/ProjectFeaturesService.js.map +1 -1
  198. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +8 -8
  199. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +100 -97
  200. package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
  201. package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +10 -10
  202. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js +199 -196
  203. package/lib/openapi/platform/services/ProjectPermissionSchemesService.js.map +1 -1
  204. package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +8 -8
  205. package/lib/openapi/platform/services/ProjectPropertiesService.js +172 -169
  206. package/lib/openapi/platform/services/ProjectPropertiesService.js.map +1 -1
  207. package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +18 -18
  208. package/lib/openapi/platform/services/ProjectRoleActorsService.js +362 -359
  209. package/lib/openapi/platform/services/ProjectRoleActorsService.js.map +1 -1
  210. package/lib/openapi/platform/services/ProjectRolesService.d.ts +21 -21
  211. package/lib/openapi/platform/services/ProjectRolesService.js +576 -573
  212. package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
  213. package/lib/openapi/platform/services/ProjectTypesService.d.ts +6 -6
  214. package/lib/openapi/platform/services/ProjectTypesService.js +173 -170
  215. package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
  216. package/lib/openapi/platform/services/ProjectVersionsService.d.ts +40 -40
  217. package/lib/openapi/platform/services/ProjectVersionsService.js +751 -748
  218. package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
  219. package/lib/openapi/platform/services/ProjectsService.d.ts +49 -49
  220. package/lib/openapi/platform/services/ProjectsService.js +1597 -1594
  221. package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
  222. package/lib/openapi/platform/services/ScreenSchemesService.d.ts +14 -14
  223. package/lib/openapi/platform/services/ScreenSchemesService.js +177 -174
  224. package/lib/openapi/platform/services/ScreenSchemesService.js.map +1 -1
  225. package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +9 -9
  226. package/lib/openapi/platform/services/ScreenTabFieldsService.js +144 -141
  227. package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
  228. package/lib/openapi/platform/services/ScreenTabsService.d.ts +17 -17
  229. package/lib/openapi/platform/services/ScreenTabsService.js +229 -226
  230. package/lib/openapi/platform/services/ScreenTabsService.js.map +1 -1
  231. package/lib/openapi/platform/services/ScreensService.d.ts +23 -23
  232. package/lib/openapi/platform/services/ScreensService.js +281 -278
  233. package/lib/openapi/platform/services/ScreensService.js.map +1 -1
  234. package/lib/openapi/platform/services/ServerInfoService.d.ts +1 -1
  235. package/lib/openapi/platform/services/ServerInfoService.js +51 -48
  236. package/lib/openapi/platform/services/ServerInfoService.js.map +1 -1
  237. package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -2
  238. package/lib/openapi/platform/services/ServiceRegistryService.js +30 -27
  239. package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
  240. package/lib/openapi/platform/services/StatusService.d.ts +17 -17
  241. package/lib/openapi/platform/services/StatusService.js +271 -268
  242. package/lib/openapi/platform/services/StatusService.js.map +1 -1
  243. package/lib/openapi/platform/services/TasksService.d.ts +4 -4
  244. package/lib/openapi/platform/services/TasksService.js +93 -90
  245. package/lib/openapi/platform/services/TasksService.js.map +1 -1
  246. package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -7
  247. package/lib/openapi/platform/services/TimeTrackingService.js +190 -187
  248. package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
  249. package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +11 -11
  250. package/lib/openapi/platform/services/UiModificationsAppsService.js +214 -211
  251. package/lib/openapi/platform/services/UiModificationsAppsService.js.map +1 -1
  252. package/lib/openapi/platform/services/UserPropertiesService.d.ts +20 -20
  253. package/lib/openapi/platform/services/UserPropertiesService.js +196 -193
  254. package/lib/openapi/platform/services/UserPropertiesService.js.map +1 -1
  255. package/lib/openapi/platform/services/UserSearchService.d.ts +61 -61
  256. package/lib/openapi/platform/services/UserSearchService.js +709 -706
  257. package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
  258. package/lib/openapi/platform/services/UsersService.d.ts +51 -51
  259. package/lib/openapi/platform/services/UsersService.js +637 -634
  260. package/lib/openapi/platform/services/UsersService.js.map +1 -1
  261. package/lib/openapi/platform/services/WebhooksService.d.ts +14 -14
  262. package/lib/openapi/platform/services/WebhooksService.js +262 -259
  263. package/lib/openapi/platform/services/WebhooksService.js.map +1 -1
  264. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +30 -30
  265. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js +861 -858
  266. package/lib/openapi/platform/services/WorkflowSchemeDraftsService.js.map +1 -1
  267. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +4 -4
  268. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js +98 -95
  269. package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.js.map +1 -1
  270. package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +45 -45
  271. package/lib/openapi/platform/services/WorkflowSchemesService.js +899 -896
  272. package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
  273. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +3 -3
  274. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +82 -79
  275. package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
  276. package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +3 -3
  277. package/lib/openapi/platform/services/WorkflowStatusesService.js +110 -107
  278. package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
  279. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +14 -14
  280. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +182 -179
  281. package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
  282. package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +13 -13
  283. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +283 -280
  284. package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
  285. package/lib/openapi/platform/services/WorkflowsService.d.ts +33 -33
  286. package/lib/openapi/platform/services/WorkflowsService.js +2451 -2448
  287. package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
  288. package/lib/openapi/software/services/BacklogService.d.ts +4 -4
  289. package/lib/openapi/software/services/BacklogService.js +81 -78
  290. package/lib/openapi/software/services/BacklogService.js.map +1 -1
  291. package/lib/openapi/software/services/BoardService.d.ts +124 -124
  292. package/lib/openapi/software/services/BoardService.js +2048 -2045
  293. package/lib/openapi/software/services/BoardService.js.map +1 -1
  294. package/lib/openapi/software/services/BuildsService.d.ts +10 -10
  295. package/lib/openapi/software/services/BuildsService.js +164 -161
  296. package/lib/openapi/software/services/BuildsService.js.map +1 -1
  297. package/lib/openapi/software/services/DeploymentsService.d.ts +12 -12
  298. package/lib/openapi/software/services/DeploymentsService.js +192 -189
  299. package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
  300. package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -8
  301. package/lib/openapi/software/services/DevOpsComponentsService.js +145 -142
  302. package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
  303. package/lib/openapi/software/services/DevelopmentInformationService.d.ts +16 -16
  304. package/lib/openapi/software/services/DevelopmentInformationService.js +178 -175
  305. package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
  306. package/lib/openapi/software/services/EpicService.d.ts +26 -26
  307. package/lib/openapi/software/services/EpicService.js +597 -594
  308. package/lib/openapi/software/services/EpicService.js.map +1 -1
  309. package/lib/openapi/software/services/FeatureFlagsService.d.ts +10 -10
  310. package/lib/openapi/software/services/FeatureFlagsService.js +151 -148
  311. package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
  312. package/lib/openapi/software/services/IssueService.d.ts +13 -13
  313. package/lib/openapi/software/services/IssueService.js +359 -356
  314. package/lib/openapi/software/services/IssueService.js.map +1 -1
  315. package/lib/openapi/software/services/OperationsService.d.ts +24 -24
  316. package/lib/openapi/software/services/OperationsService.js +301 -298
  317. package/lib/openapi/software/services/OperationsService.js.map +1 -1
  318. package/lib/openapi/software/services/RemoteLinksService.d.ts +15 -15
  319. package/lib/openapi/software/services/RemoteLinksService.js +160 -157
  320. package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
  321. package/lib/openapi/software/services/SecurityInformationService.d.ts +16 -16
  322. package/lib/openapi/software/services/SecurityInformationService.js +262 -259
  323. package/lib/openapi/software/services/SecurityInformationService.js.map +1 -1
  324. package/lib/openapi/software/services/SprintService.d.ts +33 -33
  325. package/lib/openapi/software/services/SprintService.js +594 -591
  326. package/lib/openapi/software/services/SprintService.js.map +1 -1
  327. package/package.json +4 -3
@@ -14,600 +14,603 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
14
14
  * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic
15
15
  */
16
16
  class EpicService extends CommonHttpService_1.CommonHttpService {
17
- /**
18
- * Returns the epic for a given epic ID. This epic will only be returned if the
19
- * user has permission to view it. **Note:** This operation does not work for
20
- * epics in next-gen projects.
21
- *
22
- * @returns Returns the requested epic.
23
- *
24
- * example: {
25
- * "id": 37,
26
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
27
- * "name": "epic 1",
28
- * "summary": "epic 1 summary",
29
- * "color": {
30
- * "key": "color_4"
31
- * },
32
- * "done": true
33
- * }
34
- * @path {GET} /rest/agile/1.0/epic/{epicIdOrKey}
35
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-epicidorkey-get
36
- */
37
- getEpic({ epicIdOrKey, }) {
38
- return this.getClientInstance()
39
- .request({
40
- path: "/rest/agile/1.0/epic/{epicIdOrKey}",
41
- method: "GET",
42
- pathParams: {
43
- epicIdOrKey,
44
- },
45
- })
46
- .then(this.getClientInstance().responseHandler({
47
- 200: {
48
- "application/json": "json",
49
- },
50
- }))
51
- .then(commonHttpClient.castResponse())
52
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("EpicService.getEpic.response"))
53
- .then(commonHttpClient.getBody);
54
- }
55
- /**
56
- * Returns all issues that belong to the epic, for the given epic ID. This only
57
- * includes issues that the user has permission to view. Issues returned from this
58
- * resource include Agile fields, like sprint, closedSprints, flagged, and epic.
59
- * By default, the returned issues are ordered by rank. **Note:** If you are
60
- * querying a next-gen project, do not use this operation. Instead, search for
61
- * issues that belong to an epic by using the [Search for issues using
62
- * JQL](https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-search-get)
63
- * operation in the Jira platform REST API. Build your JQL query using the
64
- * `parent` clause. For more information on the `parent` JQL field, see [Advanced
65
- * searching](https://confluence.atlassian.com/x/dAiiLQ#Advancedsearching-fieldsreference-Parent).
66
- *
67
- * @returns Returns the requested issues, at the specified page of the results.
68
- *
69
- * example: {
70
- * "expand": "names,schema",
71
- * "issues": [
72
- * {
73
- * "expand": "",
74
- * "fields": {
75
- * "flagged": true,
76
- * "sprint": {
77
- * "id": 37,
78
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/13",
79
- * "state": "future",
80
- * "name": "sprint 2",
81
- * "goal": "sprint 2 goal"
82
- * },
83
- * "closedSprints": [
84
- * {
85
- * "id": 37,
86
- * "self":
87
- * "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
88
- * "state": "closed",
89
- * "name": "sprint 1",
90
- * "startDate": "2015-04-11T15:22:00.000+10:00",
91
- * "endDate": "2015-04-20T01:22:00.000+10:00",
92
- * "completeDate": "2015-04-20T11:04:00.000+10:00",
93
- * "goal": "sprint 1 goal"
94
- * }
95
- * ],
96
- * "description": "example bug report",
97
- * "project": {
98
- * "avatarUrls": {
99
- * "16x16":
100
- * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
101
- * "24x24":
102
- * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
103
- * "32x32":
104
- * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
105
- * "48x48":
106
- * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
107
- * },
108
- * "id": "10000",
109
- * "insight": {
110
- * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
111
- * "totalIssueCount": 100
112
- * },
113
- * "key": "EX",
114
- * "name": "Example",
115
- * "projectCategory": {
116
- * "description": "First Project Category",
117
- * "id": "10000",
118
- * "name": "FIRST",
119
- * "self":
120
- * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
121
- * },
122
- * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
123
- * "simplified": false,
124
- * "style": "classic"
125
- * },
126
- * "comment": [
127
- * {
128
- * "author": {
129
- * "accountId": "5b10a2844c20165700ede21g",
130
- * "active": false,
131
- * "displayName": "Mia Krystof",
132
- * "self":
133
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
134
- * },
135
- * "body": {
136
- * "type": "doc",
137
- * "version": 1,
138
- * "content": [
139
- * {
140
- * "type": "paragraph",
141
- * "content": [
142
- * {
143
- * "type": "text",
144
- * "text": "Lorem ipsum dolor sit amet, consectetur
145
- * adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue
146
- * iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue
147
- * semper."
148
- * }
149
- * ]
150
- * }
151
- * ]
152
- * },
153
- * "created": "2021-01-17T12:34:00.000+0000",
154
- * "id": "10000",
155
- * "self":
156
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
157
- * "updateAuthor": {
158
- * "accountId": "5b10a2844c20165700ede21g",
159
- * "active": false,
160
- * "displayName": "Mia Krystof",
161
- * "self":
162
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
163
- * },
164
- * "updated": "2021-01-18T23:45:00.000+0000",
165
- * "visibility": {
166
- * "identifier": "Administrators",
167
- * "type": "role",
168
- * "value": "Administrators"
169
- * }
170
- * }
171
- * ],
172
- * "epic": {
173
- * "id": 37,
174
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
175
- * "name": "epic 1",
176
- * "summary": "epic 1 summary",
177
- * "color": {
178
- * "key": "color_4"
179
- * },
180
- * "done": true
181
- * },
182
- * "worklog": [
183
- * {
184
- * "author": {
185
- * "accountId": "5b10a2844c20165700ede21g",
186
- * "active": false,
187
- * "displayName": "Mia Krystof",
188
- * "self":
189
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
190
- * },
191
- * "comment": {
192
- * "type": "doc",
193
- * "version": 1,
194
- * "content": [
195
- * {
196
- * "type": "paragraph",
197
- * "content": [
198
- * {
199
- * "type": "text",
200
- * "text": "I did some work here."
201
- * }
202
- * ]
203
- * }
204
- * ]
205
- * },
206
- * "id": "100028",
207
- * "issueId": "10002",
208
- * "self":
209
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
210
- * "started": "2021-01-17T12:34:00.000+0000",
211
- * "timeSpent": "3h 20m",
212
- * "timeSpentSeconds": 12000,
213
- * "updateAuthor": {
214
- * "accountId": "5b10a2844c20165700ede21g",
215
- * "active": false,
216
- * "displayName": "Mia Krystof",
217
- * "self":
218
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
219
- * },
220
- * "updated": "2021-01-18T23:45:00.000+0000",
221
- * "visibility": {
222
- * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
223
- * "type": "group",
224
- * "value": "jira-developers"
225
- * }
226
- * }
227
- * ],
228
- * "updated": 1,
229
- * "timetracking": {
230
- * "originalEstimate": "10m",
231
- * "originalEstimateSeconds": 600,
232
- * "remainingEstimate": "3m",
233
- * "remainingEstimateSeconds": 200,
234
- * "timeSpent": "6m",
235
- * "timeSpentSeconds": 400
236
- * }
237
- * },
238
- * "id": "10001",
239
- * "key": "HSP-1",
240
- * "self":
241
- * "https://your-domain.atlassian.net/rest/agile/1.0/board/92/issue/10001"
242
- * }
243
- * ],
244
- * "maxResults": 50,
245
- * "startAt": 0,
246
- * "total": 1
247
- * }
248
- * @path {GET} /rest/agile/1.0/epic/{epicIdOrKey}/issue
249
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-epicidorkey-issue-get
250
- */
251
- getIssuesForEpic({ epicIdOrKey, startAt, maxResults, jql, validateQuery, fields, expand, }) {
252
- return this.getClientInstance()
253
- .request({
254
- path: "/rest/agile/1.0/epic/{epicIdOrKey}/issue",
255
- method: "GET",
256
- pathParams: {
257
- epicIdOrKey,
258
- },
259
- query: {
260
- startAt,
261
- maxResults,
262
- jql,
263
- validateQuery,
264
- fields,
265
- expand,
266
- },
267
- })
268
- .then(this.getClientInstance().responseHandler({
269
- 200: {
270
- "application/json": "json",
271
- },
272
- }))
273
- .then(commonHttpClient.castResponse())
274
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("EpicService.getIssuesForEpic.response"))
275
- .then(commonHttpClient.getBody);
276
- }
277
- /**
278
- * Returns all issues that do not belong to any epic. This only includes issues
279
- * that the user has permission to view. Issues returned from this resource
280
- * include Agile fields, like sprint, closedSprints, flagged, and epic. By
281
- * default, the returned issues are ordered by rank. **Note:** If you are querying
282
- * a next-gen project, do not use this operation. Instead, search for issues that
283
- * don't belong to an epic by using the [Search for issues using
284
- * JQL](https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-search-get)
285
- * operation in the Jira platform REST API. Build your JQL query using the `parent
286
- * is empty` clause. For more information on the `parent` JQL field, see [Advanced
287
- * searching](https://confluence.atlassian.com/x/dAiiLQ#Advancedsearching-fieldsreference-Parent).
288
- *
289
- * @returns Returns the requested issues, at the specified page of the results.
290
- *
291
- * example: {
292
- * "expand": "names,schema",
293
- * "issues": [
294
- * {
295
- * "expand": "",
296
- * "fields": {
297
- * "flagged": true,
298
- * "sprint": {
299
- * "id": 37,
300
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/13",
301
- * "state": "future",
302
- * "name": "sprint 2",
303
- * "goal": "sprint 2 goal"
304
- * },
305
- * "closedSprints": [
306
- * {
307
- * "id": 37,
308
- * "self":
309
- * "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
310
- * "state": "closed",
311
- * "name": "sprint 1",
312
- * "startDate": "2015-04-11T15:22:00.000+10:00",
313
- * "endDate": "2015-04-20T01:22:00.000+10:00",
314
- * "completeDate": "2015-04-20T11:04:00.000+10:00",
315
- * "goal": "sprint 1 goal"
316
- * }
317
- * ],
318
- * "description": "example bug report",
319
- * "project": {
320
- * "avatarUrls": {
321
- * "16x16":
322
- * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
323
- * "24x24":
324
- * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
325
- * "32x32":
326
- * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
327
- * "48x48":
328
- * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
329
- * },
330
- * "id": "10000",
331
- * "insight": {
332
- * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
333
- * "totalIssueCount": 100
334
- * },
335
- * "key": "EX",
336
- * "name": "Example",
337
- * "projectCategory": {
338
- * "description": "First Project Category",
339
- * "id": "10000",
340
- * "name": "FIRST",
341
- * "self":
342
- * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
343
- * },
344
- * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
345
- * "simplified": false,
346
- * "style": "classic"
347
- * },
348
- * "comment": [
349
- * {
350
- * "author": {
351
- * "accountId": "5b10a2844c20165700ede21g",
352
- * "active": false,
353
- * "displayName": "Mia Krystof",
354
- * "self":
355
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
356
- * },
357
- * "body": {
358
- * "type": "doc",
359
- * "version": 1,
360
- * "content": [
361
- * {
362
- * "type": "paragraph",
363
- * "content": [
364
- * {
365
- * "type": "text",
366
- * "text": "Lorem ipsum dolor sit amet, consectetur
367
- * adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue
368
- * iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue
369
- * semper."
370
- * }
371
- * ]
372
- * }
373
- * ]
374
- * },
375
- * "created": "2021-01-17T12:34:00.000+0000",
376
- * "id": "10000",
377
- * "self":
378
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
379
- * "updateAuthor": {
380
- * "accountId": "5b10a2844c20165700ede21g",
381
- * "active": false,
382
- * "displayName": "Mia Krystof",
383
- * "self":
384
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
385
- * },
386
- * "updated": "2021-01-18T23:45:00.000+0000",
387
- * "visibility": {
388
- * "identifier": "Administrators",
389
- * "type": "role",
390
- * "value": "Administrators"
391
- * }
392
- * }
393
- * ],
394
- * "epic": {
395
- * "id": 37,
396
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
397
- * "name": "epic 1",
398
- * "summary": "epic 1 summary",
399
- * "color": {
400
- * "key": "color_4"
401
- * },
402
- * "done": true
403
- * },
404
- * "worklog": [
405
- * {
406
- * "author": {
407
- * "accountId": "5b10a2844c20165700ede21g",
408
- * "active": false,
409
- * "displayName": "Mia Krystof",
410
- * "self":
411
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
412
- * },
413
- * "comment": {
414
- * "type": "doc",
415
- * "version": 1,
416
- * "content": [
417
- * {
418
- * "type": "paragraph",
419
- * "content": [
420
- * {
421
- * "type": "text",
422
- * "text": "I did some work here."
423
- * }
424
- * ]
425
- * }
426
- * ]
427
- * },
428
- * "id": "100028",
429
- * "issueId": "10002",
430
- * "self":
431
- * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
432
- * "started": "2021-01-17T12:34:00.000+0000",
433
- * "timeSpent": "3h 20m",
434
- * "timeSpentSeconds": 12000,
435
- * "updateAuthor": {
436
- * "accountId": "5b10a2844c20165700ede21g",
437
- * "active": false,
438
- * "displayName": "Mia Krystof",
439
- * "self":
440
- * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
441
- * },
442
- * "updated": "2021-01-18T23:45:00.000+0000",
443
- * "visibility": {
444
- * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
445
- * "type": "group",
446
- * "value": "jira-developers"
447
- * }
448
- * }
449
- * ],
450
- * "updated": 1,
451
- * "timetracking": {
452
- * "originalEstimate": "10m",
453
- * "originalEstimateSeconds": 600,
454
- * "remainingEstimate": "3m",
455
- * "remainingEstimateSeconds": 200,
456
- * "timeSpent": "6m",
457
- * "timeSpentSeconds": 400
458
- * }
459
- * },
460
- * "id": "10001",
461
- * "key": "HSP-1",
462
- * "self":
463
- * "https://your-domain.atlassian.net/rest/agile/1.0/board/92/issue/10001"
464
- * }
465
- * ],
466
- * "maxResults": 50,
467
- * "startAt": 0,
468
- * "total": 1
469
- * }
470
- * @path {GET} /rest/agile/1.0/epic/none/issue
471
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-none-issue-get
472
- */
473
- getIssuesWithoutEpic({ startAt, maxResults, jql, validateQuery, fields, expand, } = {}) {
474
- return this.getClientInstance()
475
- .request({
476
- path: "/rest/agile/1.0/epic/none/issue",
477
- method: "GET",
478
- query: {
479
- startAt,
480
- maxResults,
481
- jql,
482
- validateQuery,
483
- fields,
484
- expand,
485
- },
486
- })
487
- .then(this.getClientInstance().responseHandler({
488
- 200: {
489
- "application/json": "json",
490
- },
491
- }))
492
- .then(commonHttpClient.castResponse())
493
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("EpicService.getIssuesWithoutEpic.response"))
494
- .then(commonHttpClient.getBody);
495
- }
496
- /**
497
- * Moves issues to an epic, for a given epic id. Issues can be only in a single
498
- * epic at the same time. That means that already assigned issues to an epic, will
499
- * not be assigned to the previous epic anymore. The user needs to have the edit
500
- * issue permission for all issue they want to move and to the epic. The maximum
501
- * number of issues that can be moved in one operation is 50. **Note:** This
502
- * operation does not work for epics in next-gen projects.
503
- *
504
- * @path {POST} /rest/agile/1.0/epic/{epicIdOrKey}/issue
505
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-epicidorkey-issue-post
506
- */
507
- moveIssuesToEpic({ epicIdOrKey, issueAssignRequestBean, }) {
508
- return this.getClientInstance()
509
- .request({
510
- path: "/rest/agile/1.0/epic/{epicIdOrKey}/issue",
511
- method: "POST",
512
- pathParams: {
513
- epicIdOrKey,
514
- },
515
- headers: {
516
- "Content-Type": "application/json",
517
- },
518
- body: issueAssignRequestBean,
519
- })
520
- .then(commonHttpClient.discardResult);
521
- }
522
- /**
523
- * Performs a partial update of the epic. A partial update means that fields not
524
- * present in the request JSON will not be updated. Valid values for color are
525
- * `color_1` to `color_9`. **Note:** This operation does not work for epics in
526
- * next-gen projects.
527
- *
528
- * @returns Updated epic
529
- *
530
- * example: {
531
- * "id": 37,
532
- * "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
533
- * "name": "epic 1",
534
- * "summary": "epic 1 summary",
535
- * "color": {
536
- * "key": "color_4"
537
- * },
538
- * "done": true
539
- * }
540
- * @path {POST} /rest/agile/1.0/epic/{epicIdOrKey}
541
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-epicidorkey-post
542
- */
543
- partiallyUpdateEpic({ epicIdOrKey, epicUpdateBean, }) {
544
- return this.getClientInstance()
545
- .request({
546
- path: "/rest/agile/1.0/epic/{epicIdOrKey}",
547
- method: "POST",
548
- pathParams: {
549
- epicIdOrKey,
550
- },
551
- headers: {
552
- "Content-Type": "application/json",
553
- },
554
- body: epicUpdateBean,
555
- })
556
- .then(this.getClientInstance().responseHandler({
557
- 200: {
558
- "application/json": "json",
559
- },
560
- }))
561
- .then(commonHttpClient.castResponse())
562
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("EpicService.partiallyUpdateEpic.response"))
563
- .then(commonHttpClient.getBody);
564
- }
565
- /**
566
- * Moves (ranks) an epic before or after a given epic.
567
- *
568
- * If rankCustomFieldId is not defined, the default rank field will be used.
569
- *
570
- * **Note:** This operation does not work for epics in next-gen projects.
571
- *
572
- * @path {PUT} /rest/agile/1.0/epic/{epicIdOrKey}/rank
573
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-epicidorkey-rank-put
574
- */
575
- rankEpics({ epicIdOrKey, epicRankRequestBean, }) {
576
- return this.getClientInstance()
577
- .request({
578
- path: "/rest/agile/1.0/epic/{epicIdOrKey}/rank",
579
- method: "PUT",
580
- pathParams: {
581
- epicIdOrKey,
582
- },
583
- headers: {
584
- "Content-Type": "application/json",
585
- },
586
- body: epicRankRequestBean,
587
- })
588
- .then(commonHttpClient.discardResult);
589
- }
590
- /**
591
- * Removes issues from epics. The user needs to have the edit issue permission for
592
- * all issue they want to remove from epics. The maximum number of issues that can
593
- * be moved in one operation is 50. **Note:** This operation does not work for
594
- * epics in next-gen projects. Instead, update the issue using `\{ fields: \{
595
- * parent: \{\} \} \}`
596
- *
597
- * @path {POST} /rest/agile/1.0/epic/none/issue
598
- * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-none-issue-post
599
- */
600
- removeIssuesFromEpic({ issueAssignRequestBean, }) {
601
- return this.getClientInstance()
602
- .request({
603
- path: "/rest/agile/1.0/epic/none/issue",
604
- method: "POST",
605
- headers: {
606
- "Content-Type": "application/json",
607
- },
608
- body: issueAssignRequestBean,
609
- })
610
- .then(commonHttpClient.discardResult);
17
+ constructor() {
18
+ super(...arguments);
19
+ /**
20
+ * Returns the epic for a given epic ID. This epic will only be returned if the
21
+ * user has permission to view it. **Note:** This operation does not work for
22
+ * epics in next-gen projects.
23
+ *
24
+ * @returns Returns the requested epic.
25
+ *
26
+ * example: {
27
+ * "id": 37,
28
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
29
+ * "name": "epic 1",
30
+ * "summary": "epic 1 summary",
31
+ * "color": {
32
+ * "key": "color_4"
33
+ * },
34
+ * "done": true
35
+ * }
36
+ * @path {GET} /rest/agile/1.0/epic/{epicIdOrKey}
37
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-epicidorkey-get
38
+ */
39
+ this.getEpic = ({ epicIdOrKey, }) => {
40
+ return this.getClientInstance()
41
+ .request({
42
+ path: "/rest/agile/1.0/epic/{epicIdOrKey}",
43
+ method: "GET",
44
+ pathParams: {
45
+ epicIdOrKey,
46
+ },
47
+ })
48
+ .then(this.getClientInstance().responseHandler({
49
+ 200: {
50
+ "application/json": "json",
51
+ },
52
+ }))
53
+ .then(commonHttpClient.castResponse())
54
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("EpicService.getEpic.response"))
55
+ .then(commonHttpClient.getBody);
56
+ };
57
+ /**
58
+ * Returns all issues that belong to the epic, for the given epic ID. This only
59
+ * includes issues that the user has permission to view. Issues returned from this
60
+ * resource include Agile fields, like sprint, closedSprints, flagged, and epic.
61
+ * By default, the returned issues are ordered by rank. **Note:** If you are
62
+ * querying a next-gen project, do not use this operation. Instead, search for
63
+ * issues that belong to an epic by using the [Search for issues using
64
+ * JQL](https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-search-get)
65
+ * operation in the Jira platform REST API. Build your JQL query using the
66
+ * `parent` clause. For more information on the `parent` JQL field, see [Advanced
67
+ * searching](https://confluence.atlassian.com/x/dAiiLQ#Advancedsearching-fieldsreference-Parent).
68
+ *
69
+ * @returns Returns the requested issues, at the specified page of the results.
70
+ *
71
+ * example: {
72
+ * "expand": "names,schema",
73
+ * "issues": [
74
+ * {
75
+ * "expand": "",
76
+ * "fields": {
77
+ * "flagged": true,
78
+ * "sprint": {
79
+ * "id": 37,
80
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/13",
81
+ * "state": "future",
82
+ * "name": "sprint 2",
83
+ * "goal": "sprint 2 goal"
84
+ * },
85
+ * "closedSprints": [
86
+ * {
87
+ * "id": 37,
88
+ * "self":
89
+ * "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
90
+ * "state": "closed",
91
+ * "name": "sprint 1",
92
+ * "startDate": "2015-04-11T15:22:00.000+10:00",
93
+ * "endDate": "2015-04-20T01:22:00.000+10:00",
94
+ * "completeDate": "2015-04-20T11:04:00.000+10:00",
95
+ * "goal": "sprint 1 goal"
96
+ * }
97
+ * ],
98
+ * "description": "example bug report",
99
+ * "project": {
100
+ * "avatarUrls": {
101
+ * "16x16":
102
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
103
+ * "24x24":
104
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
105
+ * "32x32":
106
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
107
+ * "48x48":
108
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
109
+ * },
110
+ * "id": "10000",
111
+ * "insight": {
112
+ * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
113
+ * "totalIssueCount": 100
114
+ * },
115
+ * "key": "EX",
116
+ * "name": "Example",
117
+ * "projectCategory": {
118
+ * "description": "First Project Category",
119
+ * "id": "10000",
120
+ * "name": "FIRST",
121
+ * "self":
122
+ * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
123
+ * },
124
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
125
+ * "simplified": false,
126
+ * "style": "classic"
127
+ * },
128
+ * "comment": [
129
+ * {
130
+ * "author": {
131
+ * "accountId": "5b10a2844c20165700ede21g",
132
+ * "active": false,
133
+ * "displayName": "Mia Krystof",
134
+ * "self":
135
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
136
+ * },
137
+ * "body": {
138
+ * "type": "doc",
139
+ * "version": 1,
140
+ * "content": [
141
+ * {
142
+ * "type": "paragraph",
143
+ * "content": [
144
+ * {
145
+ * "type": "text",
146
+ * "text": "Lorem ipsum dolor sit amet, consectetur
147
+ * adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue
148
+ * iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue
149
+ * semper."
150
+ * }
151
+ * ]
152
+ * }
153
+ * ]
154
+ * },
155
+ * "created": "2021-01-17T12:34:00.000+0000",
156
+ * "id": "10000",
157
+ * "self":
158
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
159
+ * "updateAuthor": {
160
+ * "accountId": "5b10a2844c20165700ede21g",
161
+ * "active": false,
162
+ * "displayName": "Mia Krystof",
163
+ * "self":
164
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
165
+ * },
166
+ * "updated": "2021-01-18T23:45:00.000+0000",
167
+ * "visibility": {
168
+ * "identifier": "Administrators",
169
+ * "type": "role",
170
+ * "value": "Administrators"
171
+ * }
172
+ * }
173
+ * ],
174
+ * "epic": {
175
+ * "id": 37,
176
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
177
+ * "name": "epic 1",
178
+ * "summary": "epic 1 summary",
179
+ * "color": {
180
+ * "key": "color_4"
181
+ * },
182
+ * "done": true
183
+ * },
184
+ * "worklog": [
185
+ * {
186
+ * "author": {
187
+ * "accountId": "5b10a2844c20165700ede21g",
188
+ * "active": false,
189
+ * "displayName": "Mia Krystof",
190
+ * "self":
191
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
192
+ * },
193
+ * "comment": {
194
+ * "type": "doc",
195
+ * "version": 1,
196
+ * "content": [
197
+ * {
198
+ * "type": "paragraph",
199
+ * "content": [
200
+ * {
201
+ * "type": "text",
202
+ * "text": "I did some work here."
203
+ * }
204
+ * ]
205
+ * }
206
+ * ]
207
+ * },
208
+ * "id": "100028",
209
+ * "issueId": "10002",
210
+ * "self":
211
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
212
+ * "started": "2021-01-17T12:34:00.000+0000",
213
+ * "timeSpent": "3h 20m",
214
+ * "timeSpentSeconds": 12000,
215
+ * "updateAuthor": {
216
+ * "accountId": "5b10a2844c20165700ede21g",
217
+ * "active": false,
218
+ * "displayName": "Mia Krystof",
219
+ * "self":
220
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
221
+ * },
222
+ * "updated": "2021-01-18T23:45:00.000+0000",
223
+ * "visibility": {
224
+ * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
225
+ * "type": "group",
226
+ * "value": "jira-developers"
227
+ * }
228
+ * }
229
+ * ],
230
+ * "updated": 1,
231
+ * "timetracking": {
232
+ * "originalEstimate": "10m",
233
+ * "originalEstimateSeconds": 600,
234
+ * "remainingEstimate": "3m",
235
+ * "remainingEstimateSeconds": 200,
236
+ * "timeSpent": "6m",
237
+ * "timeSpentSeconds": 400
238
+ * }
239
+ * },
240
+ * "id": "10001",
241
+ * "key": "HSP-1",
242
+ * "self":
243
+ * "https://your-domain.atlassian.net/rest/agile/1.0/board/92/issue/10001"
244
+ * }
245
+ * ],
246
+ * "maxResults": 50,
247
+ * "startAt": 0,
248
+ * "total": 1
249
+ * }
250
+ * @path {GET} /rest/agile/1.0/epic/{epicIdOrKey}/issue
251
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-epicidorkey-issue-get
252
+ */
253
+ this.getIssuesForEpic = ({ epicIdOrKey, startAt, maxResults, jql, validateQuery, fields, expand, }) => {
254
+ return this.getClientInstance()
255
+ .request({
256
+ path: "/rest/agile/1.0/epic/{epicIdOrKey}/issue",
257
+ method: "GET",
258
+ pathParams: {
259
+ epicIdOrKey,
260
+ },
261
+ query: {
262
+ startAt,
263
+ maxResults,
264
+ jql,
265
+ validateQuery,
266
+ fields,
267
+ expand,
268
+ },
269
+ })
270
+ .then(this.getClientInstance().responseHandler({
271
+ 200: {
272
+ "application/json": "json",
273
+ },
274
+ }))
275
+ .then(commonHttpClient.castResponse())
276
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("EpicService.getIssuesForEpic.response"))
277
+ .then(commonHttpClient.getBody);
278
+ };
279
+ /**
280
+ * Returns all issues that do not belong to any epic. This only includes issues
281
+ * that the user has permission to view. Issues returned from this resource
282
+ * include Agile fields, like sprint, closedSprints, flagged, and epic. By
283
+ * default, the returned issues are ordered by rank. **Note:** If you are querying
284
+ * a next-gen project, do not use this operation. Instead, search for issues that
285
+ * don't belong to an epic by using the [Search for issues using
286
+ * JQL](https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-search-get)
287
+ * operation in the Jira platform REST API. Build your JQL query using the `parent
288
+ * is empty` clause. For more information on the `parent` JQL field, see [Advanced
289
+ * searching](https://confluence.atlassian.com/x/dAiiLQ#Advancedsearching-fieldsreference-Parent).
290
+ *
291
+ * @returns Returns the requested issues, at the specified page of the results.
292
+ *
293
+ * example: {
294
+ * "expand": "names,schema",
295
+ * "issues": [
296
+ * {
297
+ * "expand": "",
298
+ * "fields": {
299
+ * "flagged": true,
300
+ * "sprint": {
301
+ * "id": 37,
302
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/13",
303
+ * "state": "future",
304
+ * "name": "sprint 2",
305
+ * "goal": "sprint 2 goal"
306
+ * },
307
+ * "closedSprints": [
308
+ * {
309
+ * "id": 37,
310
+ * "self":
311
+ * "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
312
+ * "state": "closed",
313
+ * "name": "sprint 1",
314
+ * "startDate": "2015-04-11T15:22:00.000+10:00",
315
+ * "endDate": "2015-04-20T01:22:00.000+10:00",
316
+ * "completeDate": "2015-04-20T11:04:00.000+10:00",
317
+ * "goal": "sprint 1 goal"
318
+ * }
319
+ * ],
320
+ * "description": "example bug report",
321
+ * "project": {
322
+ * "avatarUrls": {
323
+ * "16x16":
324
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
325
+ * "24x24":
326
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
327
+ * "32x32":
328
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
329
+ * "48x48":
330
+ * "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
331
+ * },
332
+ * "id": "10000",
333
+ * "insight": {
334
+ * "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
335
+ * "totalIssueCount": 100
336
+ * },
337
+ * "key": "EX",
338
+ * "name": "Example",
339
+ * "projectCategory": {
340
+ * "description": "First Project Category",
341
+ * "id": "10000",
342
+ * "name": "FIRST",
343
+ * "self":
344
+ * "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
345
+ * },
346
+ * "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
347
+ * "simplified": false,
348
+ * "style": "classic"
349
+ * },
350
+ * "comment": [
351
+ * {
352
+ * "author": {
353
+ * "accountId": "5b10a2844c20165700ede21g",
354
+ * "active": false,
355
+ * "displayName": "Mia Krystof",
356
+ * "self":
357
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
358
+ * },
359
+ * "body": {
360
+ * "type": "doc",
361
+ * "version": 1,
362
+ * "content": [
363
+ * {
364
+ * "type": "paragraph",
365
+ * "content": [
366
+ * {
367
+ * "type": "text",
368
+ * "text": "Lorem ipsum dolor sit amet, consectetur
369
+ * adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue
370
+ * iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue
371
+ * semper."
372
+ * }
373
+ * ]
374
+ * }
375
+ * ]
376
+ * },
377
+ * "created": "2021-01-17T12:34:00.000+0000",
378
+ * "id": "10000",
379
+ * "self":
380
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
381
+ * "updateAuthor": {
382
+ * "accountId": "5b10a2844c20165700ede21g",
383
+ * "active": false,
384
+ * "displayName": "Mia Krystof",
385
+ * "self":
386
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
387
+ * },
388
+ * "updated": "2021-01-18T23:45:00.000+0000",
389
+ * "visibility": {
390
+ * "identifier": "Administrators",
391
+ * "type": "role",
392
+ * "value": "Administrators"
393
+ * }
394
+ * }
395
+ * ],
396
+ * "epic": {
397
+ * "id": 37,
398
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
399
+ * "name": "epic 1",
400
+ * "summary": "epic 1 summary",
401
+ * "color": {
402
+ * "key": "color_4"
403
+ * },
404
+ * "done": true
405
+ * },
406
+ * "worklog": [
407
+ * {
408
+ * "author": {
409
+ * "accountId": "5b10a2844c20165700ede21g",
410
+ * "active": false,
411
+ * "displayName": "Mia Krystof",
412
+ * "self":
413
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
414
+ * },
415
+ * "comment": {
416
+ * "type": "doc",
417
+ * "version": 1,
418
+ * "content": [
419
+ * {
420
+ * "type": "paragraph",
421
+ * "content": [
422
+ * {
423
+ * "type": "text",
424
+ * "text": "I did some work here."
425
+ * }
426
+ * ]
427
+ * }
428
+ * ]
429
+ * },
430
+ * "id": "100028",
431
+ * "issueId": "10002",
432
+ * "self":
433
+ * "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
434
+ * "started": "2021-01-17T12:34:00.000+0000",
435
+ * "timeSpent": "3h 20m",
436
+ * "timeSpentSeconds": 12000,
437
+ * "updateAuthor": {
438
+ * "accountId": "5b10a2844c20165700ede21g",
439
+ * "active": false,
440
+ * "displayName": "Mia Krystof",
441
+ * "self":
442
+ * "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
443
+ * },
444
+ * "updated": "2021-01-18T23:45:00.000+0000",
445
+ * "visibility": {
446
+ * "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
447
+ * "type": "group",
448
+ * "value": "jira-developers"
449
+ * }
450
+ * }
451
+ * ],
452
+ * "updated": 1,
453
+ * "timetracking": {
454
+ * "originalEstimate": "10m",
455
+ * "originalEstimateSeconds": 600,
456
+ * "remainingEstimate": "3m",
457
+ * "remainingEstimateSeconds": 200,
458
+ * "timeSpent": "6m",
459
+ * "timeSpentSeconds": 400
460
+ * }
461
+ * },
462
+ * "id": "10001",
463
+ * "key": "HSP-1",
464
+ * "self":
465
+ * "https://your-domain.atlassian.net/rest/agile/1.0/board/92/issue/10001"
466
+ * }
467
+ * ],
468
+ * "maxResults": 50,
469
+ * "startAt": 0,
470
+ * "total": 1
471
+ * }
472
+ * @path {GET} /rest/agile/1.0/epic/none/issue
473
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-none-issue-get
474
+ */
475
+ this.getIssuesWithoutEpic = ({ startAt, maxResults, jql, validateQuery, fields, expand, } = {}) => {
476
+ return this.getClientInstance()
477
+ .request({
478
+ path: "/rest/agile/1.0/epic/none/issue",
479
+ method: "GET",
480
+ query: {
481
+ startAt,
482
+ maxResults,
483
+ jql,
484
+ validateQuery,
485
+ fields,
486
+ expand,
487
+ },
488
+ })
489
+ .then(this.getClientInstance().responseHandler({
490
+ 200: {
491
+ "application/json": "json",
492
+ },
493
+ }))
494
+ .then(commonHttpClient.castResponse())
495
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("EpicService.getIssuesWithoutEpic.response"))
496
+ .then(commonHttpClient.getBody);
497
+ };
498
+ /**
499
+ * Moves issues to an epic, for a given epic id. Issues can be only in a single
500
+ * epic at the same time. That means that already assigned issues to an epic, will
501
+ * not be assigned to the previous epic anymore. The user needs to have the edit
502
+ * issue permission for all issue they want to move and to the epic. The maximum
503
+ * number of issues that can be moved in one operation is 50. **Note:** This
504
+ * operation does not work for epics in next-gen projects.
505
+ *
506
+ * @path {POST} /rest/agile/1.0/epic/{epicIdOrKey}/issue
507
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-epicidorkey-issue-post
508
+ */
509
+ this.moveIssuesToEpic = ({ epicIdOrKey, issueAssignRequestBean, }) => {
510
+ return this.getClientInstance()
511
+ .request({
512
+ path: "/rest/agile/1.0/epic/{epicIdOrKey}/issue",
513
+ method: "POST",
514
+ pathParams: {
515
+ epicIdOrKey,
516
+ },
517
+ headers: {
518
+ "Content-Type": "application/json",
519
+ },
520
+ body: issueAssignRequestBean,
521
+ })
522
+ .then(commonHttpClient.discardResult);
523
+ };
524
+ /**
525
+ * Performs a partial update of the epic. A partial update means that fields not
526
+ * present in the request JSON will not be updated. Valid values for color are
527
+ * `color_1` to `color_9`. **Note:** This operation does not work for epics in
528
+ * next-gen projects.
529
+ *
530
+ * @returns Updated epic
531
+ *
532
+ * example: {
533
+ * "id": 37,
534
+ * "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
535
+ * "name": "epic 1",
536
+ * "summary": "epic 1 summary",
537
+ * "color": {
538
+ * "key": "color_4"
539
+ * },
540
+ * "done": true
541
+ * }
542
+ * @path {POST} /rest/agile/1.0/epic/{epicIdOrKey}
543
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-epicidorkey-post
544
+ */
545
+ this.partiallyUpdateEpic = ({ epicIdOrKey, epicUpdateBean, }) => {
546
+ return this.getClientInstance()
547
+ .request({
548
+ path: "/rest/agile/1.0/epic/{epicIdOrKey}",
549
+ method: "POST",
550
+ pathParams: {
551
+ epicIdOrKey,
552
+ },
553
+ headers: {
554
+ "Content-Type": "application/json",
555
+ },
556
+ body: epicUpdateBean,
557
+ })
558
+ .then(this.getClientInstance().responseHandler({
559
+ 200: {
560
+ "application/json": "json",
561
+ },
562
+ }))
563
+ .then(commonHttpClient.castResponse())
564
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("EpicService.partiallyUpdateEpic.response"))
565
+ .then(commonHttpClient.getBody);
566
+ };
567
+ /**
568
+ * Moves (ranks) an epic before or after a given epic.
569
+ *
570
+ * If rankCustomFieldId is not defined, the default rank field will be used.
571
+ *
572
+ * **Note:** This operation does not work for epics in next-gen projects.
573
+ *
574
+ * @path {PUT} /rest/agile/1.0/epic/{epicIdOrKey}/rank
575
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-epicidorkey-rank-put
576
+ */
577
+ this.rankEpics = ({ epicIdOrKey, epicRankRequestBean, }) => {
578
+ return this.getClientInstance()
579
+ .request({
580
+ path: "/rest/agile/1.0/epic/{epicIdOrKey}/rank",
581
+ method: "PUT",
582
+ pathParams: {
583
+ epicIdOrKey,
584
+ },
585
+ headers: {
586
+ "Content-Type": "application/json",
587
+ },
588
+ body: epicRankRequestBean,
589
+ })
590
+ .then(commonHttpClient.discardResult);
591
+ };
592
+ /**
593
+ * Removes issues from epics. The user needs to have the edit issue permission for
594
+ * all issue they want to remove from epics. The maximum number of issues that can
595
+ * be moved in one operation is 50. **Note:** This operation does not work for
596
+ * epics in next-gen projects. Instead, update the issue using `\{ fields: \{
597
+ * parent: \{\} \} \}`
598
+ *
599
+ * @path {POST} /rest/agile/1.0/epic/none/issue
600
+ * @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic#api-rest-agile-1-0-epic-none-issue-post
601
+ */
602
+ this.removeIssuesFromEpic = ({ issueAssignRequestBean, }) => {
603
+ return this.getClientInstance()
604
+ .request({
605
+ path: "/rest/agile/1.0/epic/none/issue",
606
+ method: "POST",
607
+ headers: {
608
+ "Content-Type": "application/json",
609
+ },
610
+ body: issueAssignRequestBean,
611
+ })
612
+ .then(commonHttpClient.discardResult);
613
+ };
611
614
  }
612
615
  static initialize() {
613
616
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("EpicService.getEpic.response", zod_1.z