@resolution/jira-api-client 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (785) hide show
  1. package/.eslintrc.js +3 -0
  2. package/CHANGELOG.md +11 -0
  3. package/LICENSE.md +19 -0
  4. package/README.md +12 -0
  5. package/config/api-typescript-generator.config.ts +91 -0
  6. package/config/compare-schemas.ts +307 -0
  7. package/lib/index.d.ts +15 -0
  8. package/lib/index.js +25 -0
  9. package/lib/index.js.map +1 -0
  10. package/lib/openapi/platform/base-jira-platform-api-client.d.ts +868 -0
  11. package/lib/openapi/platform/base-jira-platform-api-client.js +808 -0
  12. package/lib/openapi/platform/base-jira-platform-api-client.js.map +1 -0
  13. package/lib/openapi/platform/core/common-http-client.d.ts +196 -0
  14. package/lib/openapi/platform/core/common-http-client.js +390 -0
  15. package/lib/openapi/platform/core/common-http-client.js.map +1 -0
  16. package/lib/openapi/platform/core/common-http-service.d.ts +7 -0
  17. package/lib/openapi/platform/core/common-http-service.js +20 -0
  18. package/lib/openapi/platform/core/common-http-service.js.map +1 -0
  19. package/lib/openapi/platform/core/common-validation-schema-storage.d.ts +35 -0
  20. package/lib/openapi/platform/core/common-validation-schema-storage.js +65 -0
  21. package/lib/openapi/platform/core/common-validation-schema-storage.js.map +1 -0
  22. package/lib/openapi/platform/models/announcement-banner.d.ts +27 -0
  23. package/lib/openapi/platform/models/announcement-banner.js +30 -0
  24. package/lib/openapi/platform/models/announcement-banner.js.map +1 -0
  25. package/lib/openapi/platform/models/app-data-policies.d.ts +31 -0
  26. package/lib/openapi/platform/models/app-data-policies.js +40 -0
  27. package/lib/openapi/platform/models/app-data-policies.js.map +1 -0
  28. package/lib/openapi/platform/models/app-migration.d.ts +86 -0
  29. package/lib/openapi/platform/models/app-migration.js +67 -0
  30. package/lib/openapi/platform/models/app-migration.js.map +1 -0
  31. package/lib/openapi/platform/models/app-properties.d.ts +15 -0
  32. package/lib/openapi/platform/models/app-properties.js +18 -0
  33. package/lib/openapi/platform/models/app-properties.js.map +1 -0
  34. package/lib/openapi/platform/models/audit-records.d.ts +70 -0
  35. package/lib/openapi/platform/models/audit-records.js +62 -0
  36. package/lib/openapi/platform/models/audit-records.js.map +1 -0
  37. package/lib/openapi/platform/models/avatars.d.ts +18 -0
  38. package/lib/openapi/platform/models/avatars.js +27 -0
  39. package/lib/openapi/platform/models/avatars.js.map +1 -0
  40. package/lib/openapi/platform/models/classification-levels.d.ts +25 -0
  41. package/lib/openapi/platform/models/classification-levels.js +31 -0
  42. package/lib/openapi/platform/models/classification-levels.js.map +1 -0
  43. package/lib/openapi/platform/models/common.d.ts +1490 -0
  44. package/lib/openapi/platform/models/common.js +937 -0
  45. package/lib/openapi/platform/models/common.js.map +1 -0
  46. package/lib/openapi/platform/models/dashboards.d.ts +414 -0
  47. package/lib/openapi/platform/models/dashboards.js +325 -0
  48. package/lib/openapi/platform/models/dashboards.js.map +1 -0
  49. package/lib/openapi/platform/models/dynamic-modules.d.ts +92 -0
  50. package/lib/openapi/platform/models/dynamic-modules.js +24 -0
  51. package/lib/openapi/platform/models/dynamic-modules.js.map +1 -0
  52. package/lib/openapi/platform/models/filter-sharing.d.ts +59 -0
  53. package/lib/openapi/platform/models/filter-sharing.js +36 -0
  54. package/lib/openapi/platform/models/filter-sharing.js.map +1 -0
  55. package/lib/openapi/platform/models/filters.d.ts +183 -0
  56. package/lib/openapi/platform/models/filters.js +115 -0
  57. package/lib/openapi/platform/models/filters.js.map +1 -0
  58. package/lib/openapi/platform/models/group-and-user-picker.d.ts +49 -0
  59. package/lib/openapi/platform/models/group-and-user-picker.js +31 -0
  60. package/lib/openapi/platform/models/group-and-user-picker.js.map +1 -0
  61. package/lib/openapi/platform/models/groups.d.ts +127 -0
  62. package/lib/openapi/platform/models/groups.js +98 -0
  63. package/lib/openapi/platform/models/groups.js.map +1 -0
  64. package/lib/openapi/platform/models/issue-attachments.d.ts +124 -0
  65. package/lib/openapi/platform/models/issue-attachments.js +129 -0
  66. package/lib/openapi/platform/models/issue-attachments.js.map +1 -0
  67. package/lib/openapi/platform/models/issue-comment-properties.d.ts +10 -0
  68. package/lib/openapi/platform/models/issue-comment-properties.js +18 -0
  69. package/lib/openapi/platform/models/issue-comment-properties.js.map +1 -0
  70. package/lib/openapi/platform/models/issue-comments.d.ts +36 -0
  71. package/lib/openapi/platform/models/issue-comments.js +49 -0
  72. package/lib/openapi/platform/models/issue-comments.js.map +1 -0
  73. package/lib/openapi/platform/models/issue-custom-field-configuration-apps.d.ts +36 -0
  74. package/lib/openapi/platform/models/issue-custom-field-configuration-apps.js +53 -0
  75. package/lib/openapi/platform/models/issue-custom-field-configuration-apps.js.map +1 -0
  76. package/lib/openapi/platform/models/issue-custom-field-contexts.d.ts +417 -0
  77. package/lib/openapi/platform/models/issue-custom-field-contexts.js +458 -0
  78. package/lib/openapi/platform/models/issue-custom-field-contexts.js.map +1 -0
  79. package/lib/openapi/platform/models/issue-custom-field-options-apps.d.ts +119 -0
  80. package/lib/openapi/platform/models/issue-custom-field-options-apps.js +133 -0
  81. package/lib/openapi/platform/models/issue-custom-field-options-apps.js.map +1 -0
  82. package/lib/openapi/platform/models/issue-custom-field-options.d.ts +136 -0
  83. package/lib/openapi/platform/models/issue-custom-field-options.js +115 -0
  84. package/lib/openapi/platform/models/issue-custom-field-options.js.map +1 -0
  85. package/lib/openapi/platform/models/issue-custom-field-values-apps.d.ts +66 -0
  86. package/lib/openapi/platform/models/issue-custom-field-values-apps.js +42 -0
  87. package/lib/openapi/platform/models/issue-custom-field-values-apps.js.map +1 -0
  88. package/lib/openapi/platform/models/issue-field-configurations.d.ts +194 -0
  89. package/lib/openapi/platform/models/issue-field-configurations.js +182 -0
  90. package/lib/openapi/platform/models/issue-field-configurations.js.map +1 -0
  91. package/lib/openapi/platform/models/issue-fields.d.ts +227 -0
  92. package/lib/openapi/platform/models/issue-fields.js +119 -0
  93. package/lib/openapi/platform/models/issue-fields.js.map +1 -0
  94. package/lib/openapi/platform/models/issue-link-types.d.ts +9 -0
  95. package/lib/openapi/platform/models/issue-link-types.js +21 -0
  96. package/lib/openapi/platform/models/issue-link-types.js.map +1 -0
  97. package/lib/openapi/platform/models/issue-links.d.ts +90 -0
  98. package/lib/openapi/platform/models/issue-links.js +74 -0
  99. package/lib/openapi/platform/models/issue-links.js.map +1 -0
  100. package/lib/openapi/platform/models/issue-notification-schemes.d.ts +158 -0
  101. package/lib/openapi/platform/models/issue-notification-schemes.js +147 -0
  102. package/lib/openapi/platform/models/issue-notification-schemes.js.map +1 -0
  103. package/lib/openapi/platform/models/issue-priorities.d.ts +74 -0
  104. package/lib/openapi/platform/models/issue-priorities.js +89 -0
  105. package/lib/openapi/platform/models/issue-priorities.js.map +1 -0
  106. package/lib/openapi/platform/models/issue-properties.d.ts +80 -0
  107. package/lib/openapi/platform/models/issue-properties.js +158 -0
  108. package/lib/openapi/platform/models/issue-properties.js.map +1 -0
  109. package/lib/openapi/platform/models/issue-remote-links.d.ts +120 -0
  110. package/lib/openapi/platform/models/issue-remote-links.js +70 -0
  111. package/lib/openapi/platform/models/issue-remote-links.js.map +1 -0
  112. package/lib/openapi/platform/models/issue-resolutions.d.ts +81 -0
  113. package/lib/openapi/platform/models/issue-resolutions.js +79 -0
  114. package/lib/openapi/platform/models/issue-resolutions.js.map +1 -0
  115. package/lib/openapi/platform/models/issue-search.d.ts +196 -0
  116. package/lib/openapi/platform/models/issue-search.js +136 -0
  117. package/lib/openapi/platform/models/issue-search.js.map +1 -0
  118. package/lib/openapi/platform/models/issue-security-level.d.ts +36 -0
  119. package/lib/openapi/platform/models/issue-security-level.js +36 -0
  120. package/lib/openapi/platform/models/issue-security-level.js.map +1 -0
  121. package/lib/openapi/platform/models/issue-security-schemes.d.ts +214 -0
  122. package/lib/openapi/platform/models/issue-security-schemes.js +211 -0
  123. package/lib/openapi/platform/models/issue-security-schemes.js.map +1 -0
  124. package/lib/openapi/platform/models/issue-type-schemes.d.ts +146 -0
  125. package/lib/openapi/platform/models/issue-type-schemes.js +115 -0
  126. package/lib/openapi/platform/models/issue-type-schemes.js.map +1 -0
  127. package/lib/openapi/platform/models/issue-type-screen-schemes.d.ts +139 -0
  128. package/lib/openapi/platform/models/issue-type-screen-schemes.js +109 -0
  129. package/lib/openapi/platform/models/issue-type-screen-schemes.js.map +1 -0
  130. package/lib/openapi/platform/models/issue-types.d.ts +36 -0
  131. package/lib/openapi/platform/models/issue-types.js +28 -0
  132. package/lib/openapi/platform/models/issue-types.js.map +1 -0
  133. package/lib/openapi/platform/models/issue-votes.d.ts +18 -0
  134. package/lib/openapi/platform/models/issue-votes.js +22 -0
  135. package/lib/openapi/platform/models/issue-votes.js.map +1 -0
  136. package/lib/openapi/platform/models/issue-watchers.d.ts +27 -0
  137. package/lib/openapi/platform/models/issue-watchers.js +36 -0
  138. package/lib/openapi/platform/models/issue-watchers.js.map +1 -0
  139. package/lib/openapi/platform/models/issue-worklogs.d.ts +93 -0
  140. package/lib/openapi/platform/models/issue-worklogs.js +80 -0
  141. package/lib/openapi/platform/models/issue-worklogs.js.map +1 -0
  142. package/lib/openapi/platform/models/issues.d.ts +583 -0
  143. package/lib/openapi/platform/models/issues.js +545 -0
  144. package/lib/openapi/platform/models/issues.js.map +1 -0
  145. package/lib/openapi/platform/models/jira-expressions.d.ts +329 -0
  146. package/lib/openapi/platform/models/jira-expressions.js +180 -0
  147. package/lib/openapi/platform/models/jira-expressions.js.map +1 -0
  148. package/lib/openapi/platform/models/jira-settings.d.ts +62 -0
  149. package/lib/openapi/platform/models/jira-settings.js +49 -0
  150. package/lib/openapi/platform/models/jira-settings.js.map +1 -0
  151. package/lib/openapi/platform/models/jql-functions-apps.d.ts +61 -0
  152. package/lib/openapi/platform/models/jql-functions-apps.js +57 -0
  153. package/lib/openapi/platform/models/jql-functions-apps.js.map +1 -0
  154. package/lib/openapi/platform/models/jql.d.ts +348 -0
  155. package/lib/openapi/platform/models/jql.js +309 -0
  156. package/lib/openapi/platform/models/jql.js.map +1 -0
  157. package/lib/openapi/platform/models/labels.d.ts +20 -0
  158. package/lib/openapi/platform/models/labels.js +23 -0
  159. package/lib/openapi/platform/models/labels.js.map +1 -0
  160. package/lib/openapi/platform/models/license-metrics.d.ts +27 -0
  161. package/lib/openapi/platform/models/license-metrics.js +32 -0
  162. package/lib/openapi/platform/models/license-metrics.js.map +1 -0
  163. package/lib/openapi/platform/models/myself.d.ts +13 -0
  164. package/lib/openapi/platform/models/myself.js +17 -0
  165. package/lib/openapi/platform/models/myself.js.map +1 -0
  166. package/lib/openapi/platform/models/permission-schemes.d.ts +42 -0
  167. package/lib/openapi/platform/models/permission-schemes.js +39 -0
  168. package/lib/openapi/platform/models/permission-schemes.js.map +1 -0
  169. package/lib/openapi/platform/models/permissions.d.ts +97 -0
  170. package/lib/openapi/platform/models/permissions.js +176 -0
  171. package/lib/openapi/platform/models/permissions.js.map +1 -0
  172. package/lib/openapi/platform/models/priority-schemes.d.ts +233 -0
  173. package/lib/openapi/platform/models/priority-schemes.js +227 -0
  174. package/lib/openapi/platform/models/priority-schemes.js.map +1 -0
  175. package/lib/openapi/platform/models/project-avatars.d.ts +11 -0
  176. package/lib/openapi/platform/models/project-avatars.js +20 -0
  177. package/lib/openapi/platform/models/project-avatars.js.map +1 -0
  178. package/lib/openapi/platform/models/project-classification-levels.d.ts +8 -0
  179. package/lib/openapi/platform/models/project-classification-levels.js +17 -0
  180. package/lib/openapi/platform/models/project-classification-levels.js.map +1 -0
  181. package/lib/openapi/platform/models/project-components.d.ts +122 -0
  182. package/lib/openapi/platform/models/project-components.js +91 -0
  183. package/lib/openapi/platform/models/project-components.js.map +1 -0
  184. package/lib/openapi/platform/models/project-email.d.ts +10 -0
  185. package/lib/openapi/platform/models/project-email.js +18 -0
  186. package/lib/openapi/platform/models/project-email.js.map +1 -0
  187. package/lib/openapi/platform/models/project-features.d.ts +35 -0
  188. package/lib/openapi/platform/models/project-features.js +38 -0
  189. package/lib/openapi/platform/models/project-features.js.map +1 -0
  190. package/lib/openapi/platform/models/project-permission-schemes.d.ts +17 -0
  191. package/lib/openapi/platform/models/project-permission-schemes.js +25 -0
  192. package/lib/openapi/platform/models/project-permission-schemes.js.map +1 -0
  193. package/lib/openapi/platform/models/project-role-actors.d.ts +65 -0
  194. package/lib/openapi/platform/models/project-role-actors.js +37 -0
  195. package/lib/openapi/platform/models/project-role-actors.js.map +1 -0
  196. package/lib/openapi/platform/models/project-roles.d.ts +41 -0
  197. package/lib/openapi/platform/models/project-roles.js +34 -0
  198. package/lib/openapi/platform/models/project-roles.js.map +1 -0
  199. package/lib/openapi/platform/models/project-types.d.ts +16 -0
  200. package/lib/openapi/platform/models/project-types.js +21 -0
  201. package/lib/openapi/platform/models/project-types.js.map +1 -0
  202. package/lib/openapi/platform/models/project-versions.d.ts +110 -0
  203. package/lib/openapi/platform/models/project-versions.js +87 -0
  204. package/lib/openapi/platform/models/project-versions.js.map +1 -0
  205. package/lib/openapi/platform/models/projects.d.ts +216 -0
  206. package/lib/openapi/platform/models/projects.js +149 -0
  207. package/lib/openapi/platform/models/projects.js.map +1 -0
  208. package/lib/openapi/platform/models/screen-schemes.d.ts +94 -0
  209. package/lib/openapi/platform/models/screen-schemes.js +79 -0
  210. package/lib/openapi/platform/models/screen-schemes.js.map +1 -0
  211. package/lib/openapi/platform/models/screen-tab-fields.d.ts +19 -0
  212. package/lib/openapi/platform/models/screen-tab-fields.js +24 -0
  213. package/lib/openapi/platform/models/screen-tab-fields.js.map +1 -0
  214. package/lib/openapi/platform/models/screens.d.ts +82 -0
  215. package/lib/openapi/platform/models/screens.js +72 -0
  216. package/lib/openapi/platform/models/screens.js.map +1 -0
  217. package/lib/openapi/platform/models/server-info.d.ts +51 -0
  218. package/lib/openapi/platform/models/server-info.js +47 -0
  219. package/lib/openapi/platform/models/server-info.js.map +1 -0
  220. package/lib/openapi/platform/models/service-registry.d.ts +32 -0
  221. package/lib/openapi/platform/models/service-registry.js +34 -0
  222. package/lib/openapi/platform/models/service-registry.js.map +1 -0
  223. package/lib/openapi/platform/models/status.d.ts +95 -0
  224. package/lib/openapi/platform/models/status.js +107 -0
  225. package/lib/openapi/platform/models/status.js.map +1 -0
  226. package/lib/openapi/platform/models/time-tracking.d.ts +20 -0
  227. package/lib/openapi/platform/models/time-tracking.js +19 -0
  228. package/lib/openapi/platform/models/time-tracking.js.map +1 -0
  229. package/lib/openapi/platform/models/ui-modifications-apps.d.ts +127 -0
  230. package/lib/openapi/platform/models/ui-modifications-apps.js +85 -0
  231. package/lib/openapi/platform/models/ui-modifications-apps.js.map +1 -0
  232. package/lib/openapi/platform/models/user-search.d.ts +37 -0
  233. package/lib/openapi/platform/models/user-search.js +30 -0
  234. package/lib/openapi/platform/models/user-search.js.map +1 -0
  235. package/lib/openapi/platform/models/users.d.ts +60 -0
  236. package/lib/openapi/platform/models/users.js +53 -0
  237. package/lib/openapi/platform/models/users.js.map +1 -0
  238. package/lib/openapi/platform/models/webhooks.d.ts +147 -0
  239. package/lib/openapi/platform/models/webhooks.js +112 -0
  240. package/lib/openapi/platform/models/webhooks.js.map +1 -0
  241. package/lib/openapi/platform/models/workflow-scheme-drafts.d.ts +17 -0
  242. package/lib/openapi/platform/models/workflow-scheme-drafts.js +37 -0
  243. package/lib/openapi/platform/models/workflow-scheme-drafts.js.map +1 -0
  244. package/lib/openapi/platform/models/workflow-scheme-project-associations.d.ts +29 -0
  245. package/lib/openapi/platform/models/workflow-scheme-project-associations.js +33 -0
  246. package/lib/openapi/platform/models/workflow-scheme-project-associations.js.map +1 -0
  247. package/lib/openapi/platform/models/workflow-schemes.d.ts +217 -0
  248. package/lib/openapi/platform/models/workflow-schemes.js +261 -0
  249. package/lib/openapi/platform/models/workflow-schemes.js.map +1 -0
  250. package/lib/openapi/platform/models/workflow-transition-properties.d.ts +15 -0
  251. package/lib/openapi/platform/models/workflow-transition-properties.js +19 -0
  252. package/lib/openapi/platform/models/workflow-transition-properties.js.map +1 -0
  253. package/lib/openapi/platform/models/workflow-transition-rules.d.ts +106 -0
  254. package/lib/openapi/platform/models/workflow-transition-rules.js +117 -0
  255. package/lib/openapi/platform/models/workflow-transition-rules.js.map +1 -0
  256. package/lib/openapi/platform/models/workflows.d.ts +848 -0
  257. package/lib/openapi/platform/models/workflows.js +824 -0
  258. package/lib/openapi/platform/models/workflows.js.map +1 -0
  259. package/lib/openapi/platform/services/announcement-banner-service.d.ts +49 -0
  260. package/lib/openapi/platform/services/announcement-banner-service.js +99 -0
  261. package/lib/openapi/platform/services/announcement-banner-service.js.map +1 -0
  262. package/lib/openapi/platform/services/app-data-policies-service.d.ts +44 -0
  263. package/lib/openapi/platform/services/app-data-policies-service.js +101 -0
  264. package/lib/openapi/platform/services/app-data-policies-service.js.map +1 -0
  265. package/lib/openapi/platform/services/app-migration-service.d.ts +152 -0
  266. package/lib/openapi/platform/services/app-migration-service.js +178 -0
  267. package/lib/openapi/platform/services/app-migration-service.js.map +1 -0
  268. package/lib/openapi/platform/services/app-properties-service.d.ts +184 -0
  269. package/lib/openapi/platform/services/app-properties-service.js +325 -0
  270. package/lib/openapi/platform/services/app-properties-service.js.map +1 -0
  271. package/lib/openapi/platform/services/application-roles-service.d.ts +158 -0
  272. package/lib/openapi/platform/services/application-roles-service.js +209 -0
  273. package/lib/openapi/platform/services/application-roles-service.js.map +1 -0
  274. package/lib/openapi/platform/services/audit-records-service.d.ts +101 -0
  275. package/lib/openapi/platform/services/audit-records-service.js +125 -0
  276. package/lib/openapi/platform/services/audit-records-service.js.map +1 -0
  277. package/lib/openapi/platform/services/avatars-service.d.ts +363 -0
  278. package/lib/openapi/platform/services/avatars-service.js +523 -0
  279. package/lib/openapi/platform/services/avatars-service.js.map +1 -0
  280. package/lib/openapi/platform/services/classification-levels-service.d.ts +72 -0
  281. package/lib/openapi/platform/services/classification-levels-service.js +104 -0
  282. package/lib/openapi/platform/services/classification-levels-service.js.map +1 -0
  283. package/lib/openapi/platform/services/dashboards-service.d.ts +918 -0
  284. package/lib/openapi/platform/services/dashboards-service.js +1109 -0
  285. package/lib/openapi/platform/services/dashboards-service.js.map +1 -0
  286. package/lib/openapi/platform/services/dynamic-modules-service.d.ts +50 -0
  287. package/lib/openapi/platform/services/dynamic-modules-service.js +96 -0
  288. package/lib/openapi/platform/services/dynamic-modules-service.js.map +1 -0
  289. package/lib/openapi/platform/services/filter-sharing-service.d.ts +446 -0
  290. package/lib/openapi/platform/services/filter-sharing-service.js +565 -0
  291. package/lib/openapi/platform/services/filter-sharing-service.js.map +1 -0
  292. package/lib/openapi/platform/services/filters-service.d.ts +1320 -0
  293. package/lib/openapi/platform/services/filters-service.js +1351 -0
  294. package/lib/openapi/platform/services/filters-service.js.map +1 -0
  295. package/lib/openapi/platform/services/group-and-user-picker-service.d.ts +132 -0
  296. package/lib/openapi/platform/services/group-and-user-picker-service.js +140 -0
  297. package/lib/openapi/platform/services/group-and-user-picker-service.js.map +1 -0
  298. package/lib/openapi/platform/services/groups-service.d.ts +411 -0
  299. package/lib/openapi/platform/services/groups-service.js +448 -0
  300. package/lib/openapi/platform/services/groups-service.js.map +1 -0
  301. package/lib/openapi/platform/services/issue-attachments-service.d.ts +549 -0
  302. package/lib/openapi/platform/services/issue-attachments-service.js +724 -0
  303. package/lib/openapi/platform/services/issue-attachments-service.js.map +1 -0
  304. package/lib/openapi/platform/services/issue-comment-properties-service.d.ts +149 -0
  305. package/lib/openapi/platform/services/issue-comment-properties-service.js +239 -0
  306. package/lib/openapi/platform/services/issue-comment-properties-service.js.map +1 -0
  307. package/lib/openapi/platform/services/issue-comments-service.d.ts +528 -0
  308. package/lib/openapi/platform/services/issue-comments-service.js +563 -0
  309. package/lib/openapi/platform/services/issue-comments-service.js.map +1 -0
  310. package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.d.ts +155 -0
  311. package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.js +163 -0
  312. package/lib/openapi/platform/services/issue-custom-field-configuration-apps-service.js.map +1 -0
  313. package/lib/openapi/platform/services/issue-custom-field-contexts-service.d.ts +659 -0
  314. package/lib/openapi/platform/services/issue-custom-field-contexts-service.js +854 -0
  315. package/lib/openapi/platform/services/issue-custom-field-contexts-service.js.map +1 -0
  316. package/lib/openapi/platform/services/issue-custom-field-options-apps-service.d.ts +615 -0
  317. package/lib/openapi/platform/services/issue-custom-field-options-apps-service.js +605 -0
  318. package/lib/openapi/platform/services/issue-custom-field-options-apps-service.js.map +1 -0
  319. package/lib/openapi/platform/services/issue-custom-field-options-service.d.ts +339 -0
  320. package/lib/openapi/platform/services/issue-custom-field-options-service.js +420 -0
  321. package/lib/openapi/platform/services/issue-custom-field-options-service.js.map +1 -0
  322. package/lib/openapi/platform/services/issue-custom-field-values-apps-service.d.ts +90 -0
  323. package/lib/openapi/platform/services/issue-custom-field-values-apps-service.js +117 -0
  324. package/lib/openapi/platform/services/issue-custom-field-values-apps-service.js.map +1 -0
  325. package/lib/openapi/platform/services/issue-field-configurations-service.d.ts +561 -0
  326. package/lib/openapi/platform/services/issue-field-configurations-service.js +801 -0
  327. package/lib/openapi/platform/services/issue-field-configurations-service.js.map +1 -0
  328. package/lib/openapi/platform/services/issue-fields-service.d.ts +420 -0
  329. package/lib/openapi/platform/services/issue-fields-service.js +555 -0
  330. package/lib/openapi/platform/services/issue-fields-service.js.map +1 -0
  331. package/lib/openapi/platform/services/issue-link-types-service.d.ts +165 -0
  332. package/lib/openapi/platform/services/issue-link-types-service.js +263 -0
  333. package/lib/openapi/platform/services/issue-link-types-service.js.map +1 -0
  334. package/lib/openapi/platform/services/issue-links-service.d.ts +237 -0
  335. package/lib/openapi/platform/services/issue-links-service.js +264 -0
  336. package/lib/openapi/platform/services/issue-links-service.js.map +1 -0
  337. package/lib/openapi/platform/services/issue-navigator-settings-service.d.ts +55 -0
  338. package/lib/openapi/platform/services/issue-navigator-settings-service.js +97 -0
  339. package/lib/openapi/platform/services/issue-navigator-settings-service.js.map +1 -0
  340. package/lib/openapi/platform/services/issue-notification-schemes-service.d.ts +809 -0
  341. package/lib/openapi/platform/services/issue-notification-schemes-service.js +917 -0
  342. package/lib/openapi/platform/services/issue-notification-schemes-service.js.map +1 -0
  343. package/lib/openapi/platform/services/issue-priorities-service.d.ts +238 -0
  344. package/lib/openapi/platform/services/issue-priorities-service.js +372 -0
  345. package/lib/openapi/platform/services/issue-priorities-service.js.map +1 -0
  346. package/lib/openapi/platform/services/issue-properties-service.d.ts +368 -0
  347. package/lib/openapi/platform/services/issue-properties-service.js +439 -0
  348. package/lib/openapi/platform/services/issue-properties-service.js.map +1 -0
  349. package/lib/openapi/platform/services/issue-remote-links-service.d.ts +351 -0
  350. package/lib/openapi/platform/services/issue-remote-links-service.js +429 -0
  351. package/lib/openapi/platform/services/issue-remote-links-service.js.map +1 -0
  352. package/lib/openapi/platform/services/issue-resolutions-service.d.ts +202 -0
  353. package/lib/openapi/platform/services/issue-resolutions-service.js +346 -0
  354. package/lib/openapi/platform/services/issue-resolutions-service.js.map +1 -0
  355. package/lib/openapi/platform/services/issue-search-service.d.ts +887 -0
  356. package/lib/openapi/platform/services/issue-search-service.js +878 -0
  357. package/lib/openapi/platform/services/issue-search-service.js.map +1 -0
  358. package/lib/openapi/platform/services/issue-security-level-service.d.ts +136 -0
  359. package/lib/openapi/platform/services/issue-security-level-service.js +174 -0
  360. package/lib/openapi/platform/services/issue-security-level-service.js.map +1 -0
  361. package/lib/openapi/platform/services/issue-security-schemes-service.d.ts +530 -0
  362. package/lib/openapi/platform/services/issue-security-schemes-service.js +721 -0
  363. package/lib/openapi/platform/services/issue-security-schemes-service.js.map +1 -0
  364. package/lib/openapi/platform/services/issue-type-properties-service.d.ts +150 -0
  365. package/lib/openapi/platform/services/issue-type-properties-service.js +227 -0
  366. package/lib/openapi/platform/services/issue-type-properties-service.js.map +1 -0
  367. package/lib/openapi/platform/services/issue-type-schemes-service.d.ts +460 -0
  368. package/lib/openapi/platform/services/issue-type-schemes-service.js +615 -0
  369. package/lib/openapi/platform/services/issue-type-schemes-service.js.map +1 -0
  370. package/lib/openapi/platform/services/issue-type-screen-schemes-service.d.ts +442 -0
  371. package/lib/openapi/platform/services/issue-type-screen-schemes-service.js +606 -0
  372. package/lib/openapi/platform/services/issue-type-screen-schemes-service.js.map +1 -0
  373. package/lib/openapi/platform/services/issue-types-service.d.ts +343 -0
  374. package/lib/openapi/platform/services/issue-types-service.js +495 -0
  375. package/lib/openapi/platform/services/issue-types-service.js.map +1 -0
  376. package/lib/openapi/platform/services/issue-votes-service.d.ts +117 -0
  377. package/lib/openapi/platform/services/issue-votes-service.js +179 -0
  378. package/lib/openapi/platform/services/issue-votes-service.js.map +1 -0
  379. package/lib/openapi/platform/services/issue-watchers-service.d.ts +168 -0
  380. package/lib/openapi/platform/services/issue-watchers-service.js +236 -0
  381. package/lib/openapi/platform/services/issue-watchers-service.js.map +1 -0
  382. package/lib/openapi/platform/services/issue-worklog-properties-service.d.ts +165 -0
  383. package/lib/openapi/platform/services/issue-worklog-properties-service.js +251 -0
  384. package/lib/openapi/platform/services/issue-worklog-properties-service.js.map +1 -0
  385. package/lib/openapi/platform/services/issue-worklogs-service.d.ts +694 -0
  386. package/lib/openapi/platform/services/issue-worklogs-service.js +701 -0
  387. package/lib/openapi/platform/services/issue-worklogs-service.js.map +1 -0
  388. package/lib/openapi/platform/services/issues-service.d.ts +2356 -0
  389. package/lib/openapi/platform/services/issues-service.js +2022 -0
  390. package/lib/openapi/platform/services/issues-service.js.map +1 -0
  391. package/lib/openapi/platform/services/jira-expressions-service.d.ts +298 -0
  392. package/lib/openapi/platform/services/jira-expressions-service.js +272 -0
  393. package/lib/openapi/platform/services/jira-expressions-service.js.map +1 -0
  394. package/lib/openapi/platform/services/jira-settings-service.d.ts +236 -0
  395. package/lib/openapi/platform/services/jira-settings-service.js +325 -0
  396. package/lib/openapi/platform/services/jira-settings-service.js.map +1 -0
  397. package/lib/openapi/platform/services/jql-functions-apps-service.d.ts +113 -0
  398. package/lib/openapi/platform/services/jql-functions-apps-service.js +142 -0
  399. package/lib/openapi/platform/services/jql-functions-apps-service.js.map +1 -0
  400. package/lib/openapi/platform/services/jql-service.d.ts +623 -0
  401. package/lib/openapi/platform/services/jql-service.js +697 -0
  402. package/lib/openapi/platform/services/jql-service.js.map +1 -0
  403. package/lib/openapi/platform/services/labels-service.d.ts +34 -0
  404. package/lib/openapi/platform/services/labels-service.js +67 -0
  405. package/lib/openapi/platform/services/labels-service.js.map +1 -0
  406. package/lib/openapi/platform/services/license-metrics-service.d.ts +82 -0
  407. package/lib/openapi/platform/services/license-metrics-service.js +160 -0
  408. package/lib/openapi/platform/services/license-metrics-service.js.map +1 -0
  409. package/lib/openapi/platform/services/myself-service.d.ts +254 -0
  410. package/lib/openapi/platform/services/myself-service.js +382 -0
  411. package/lib/openapi/platform/services/myself-service.js.map +1 -0
  412. package/lib/openapi/platform/services/permission-schemes-service.d.ts +554 -0
  413. package/lib/openapi/platform/services/permission-schemes-service.js +613 -0
  414. package/lib/openapi/platform/services/permission-schemes-service.js.map +1 -0
  415. package/lib/openapi/platform/services/permissions-service.d.ts +214 -0
  416. package/lib/openapi/platform/services/permissions-service.js +281 -0
  417. package/lib/openapi/platform/services/permissions-service.js.map +1 -0
  418. package/lib/openapi/platform/services/priority-schemes-service.d.ts +578 -0
  419. package/lib/openapi/platform/services/priority-schemes-service.js +655 -0
  420. package/lib/openapi/platform/services/priority-schemes-service.js.map +1 -0
  421. package/lib/openapi/platform/services/project-avatars-service.d.ts +170 -0
  422. package/lib/openapi/platform/services/project-avatars-service.js +254 -0
  423. package/lib/openapi/platform/services/project-avatars-service.js.map +1 -0
  424. package/lib/openapi/platform/services/project-categories-service.d.ts +128 -0
  425. package/lib/openapi/platform/services/project-categories-service.js +226 -0
  426. package/lib/openapi/platform/services/project-categories-service.js.map +1 -0
  427. package/lib/openapi/platform/services/project-classification-levels-service.d.ts +90 -0
  428. package/lib/openapi/platform/services/project-classification-levels-service.js +161 -0
  429. package/lib/openapi/platform/services/project-classification-levels-service.js.map +1 -0
  430. package/lib/openapi/platform/services/project-components-service.d.ts +955 -0
  431. package/lib/openapi/platform/services/project-components-service.js +1075 -0
  432. package/lib/openapi/platform/services/project-components-service.js.map +1 -0
  433. package/lib/openapi/platform/services/project-email-service.d.ts +60 -0
  434. package/lib/openapi/platform/services/project-email-service.js +113 -0
  435. package/lib/openapi/platform/services/project-email-service.js.map +1 -0
  436. package/lib/openapi/platform/services/project-features-service.d.ts +103 -0
  437. package/lib/openapi/platform/services/project-features-service.js +155 -0
  438. package/lib/openapi/platform/services/project-features-service.js.map +1 -0
  439. package/lib/openapi/platform/services/project-key-and-name-validation-service.d.ts +59 -0
  440. package/lib/openapi/platform/services/project-key-and-name-validation-service.js +135 -0
  441. package/lib/openapi/platform/services/project-key-and-name-validation-service.js.map +1 -0
  442. package/lib/openapi/platform/services/project-permission-schemes-service.d.ts +179 -0
  443. package/lib/openapi/platform/services/project-permission-schemes-service.js +255 -0
  444. package/lib/openapi/platform/services/project-permission-schemes-service.js.map +1 -0
  445. package/lib/openapi/platform/services/project-properties-service.d.ts +147 -0
  446. package/lib/openapi/platform/services/project-properties-service.js +224 -0
  447. package/lib/openapi/platform/services/project-properties-service.js.map +1 -0
  448. package/lib/openapi/platform/services/project-role-actors-service.d.ts +351 -0
  449. package/lib/openapi/platform/services/project-role-actors-service.js +413 -0
  450. package/lib/openapi/platform/services/project-role-actors-service.js.map +1 -0
  451. package/lib/openapi/platform/services/project-roles-service.d.ts +484 -0
  452. package/lib/openapi/platform/services/project-roles-service.js +647 -0
  453. package/lib/openapi/platform/services/project-roles-service.js.map +1 -0
  454. package/lib/openapi/platform/services/project-types-service.d.ts +121 -0
  455. package/lib/openapi/platform/services/project-types-service.js +220 -0
  456. package/lib/openapi/platform/services/project-types-service.js.map +1 -0
  457. package/lib/openapi/platform/services/project-versions-service.d.ts +632 -0
  458. package/lib/openapi/platform/services/project-versions-service.js +852 -0
  459. package/lib/openapi/platform/services/project-versions-service.js.map +1 -0
  460. package/lib/openapi/platform/services/projects-service.d.ts +1622 -0
  461. package/lib/openapi/platform/services/projects-service.js +1686 -0
  462. package/lib/openapi/platform/services/projects-service.js.map +1 -0
  463. package/lib/openapi/platform/services/screen-schemes-service.d.ts +166 -0
  464. package/lib/openapi/platform/services/screen-schemes-service.js +216 -0
  465. package/lib/openapi/platform/services/screen-schemes-service.js.map +1 -0
  466. package/lib/openapi/platform/services/screen-tab-fields-service.d.ts +103 -0
  467. package/lib/openapi/platform/services/screen-tab-fields-service.js +181 -0
  468. package/lib/openapi/platform/services/screen-tab-fields-service.js.map +1 -0
  469. package/lib/openapi/platform/services/screen-tabs-service.d.ts +164 -0
  470. package/lib/openapi/platform/services/screen-tabs-service.js +278 -0
  471. package/lib/openapi/platform/services/screen-tabs-service.js.map +1 -0
  472. package/lib/openapi/platform/services/screens-service.d.ts +226 -0
  473. package/lib/openapi/platform/services/screens-service.js +346 -0
  474. package/lib/openapi/platform/services/screens-service.js.map +1 -0
  475. package/lib/openapi/platform/services/server-info-service.d.ts +40 -0
  476. package/lib/openapi/platform/services/server-info-service.js +74 -0
  477. package/lib/openapi/platform/services/server-info-service.js.map +1 -0
  478. package/lib/openapi/platform/services/service-registry-service.d.ts +32 -0
  479. package/lib/openapi/platform/services/service-registry-service.js +60 -0
  480. package/lib/openapi/platform/services/service-registry-service.js.map +1 -0
  481. package/lib/openapi/platform/services/status-service.d.ts +268 -0
  482. package/lib/openapi/platform/services/status-service.js +321 -0
  483. package/lib/openapi/platform/services/status-service.js.map +1 -0
  484. package/lib/openapi/platform/services/tasks-service.d.ts +71 -0
  485. package/lib/openapi/platform/services/tasks-service.js +126 -0
  486. package/lib/openapi/platform/services/tasks-service.js.map +1 -0
  487. package/lib/openapi/platform/services/time-tracking-service.d.ts +140 -0
  488. package/lib/openapi/platform/services/time-tracking-service.js +260 -0
  489. package/lib/openapi/platform/services/time-tracking-service.js.map +1 -0
  490. package/lib/openapi/platform/services/ui-modifications-apps-service.d.ts +212 -0
  491. package/lib/openapi/platform/services/ui-modifications-apps-service.js +262 -0
  492. package/lib/openapi/platform/services/ui-modifications-apps-service.js.map +1 -0
  493. package/lib/openapi/platform/services/user-properties-service.d.ts +218 -0
  494. package/lib/openapi/platform/services/user-properties-service.js +254 -0
  495. package/lib/openapi/platform/services/user-properties-service.js.map +1 -0
  496. package/lib/openapi/platform/services/user-search-service.d.ts +782 -0
  497. package/lib/openapi/platform/services/user-search-service.js +784 -0
  498. package/lib/openapi/platform/services/user-search-service.js.map +1 -0
  499. package/lib/openapi/platform/services/users-service.d.ts +579 -0
  500. package/lib/openapi/platform/services/users-service.js +729 -0
  501. package/lib/openapi/platform/services/users-service.js.map +1 -0
  502. package/lib/openapi/platform/services/webhooks-service.d.ts +258 -0
  503. package/lib/openapi/platform/services/webhooks-service.js +307 -0
  504. package/lib/openapi/platform/services/webhooks-service.js.map +1 -0
  505. package/lib/openapi/platform/services/workflow-scheme-drafts-service.d.ts +744 -0
  506. package/lib/openapi/platform/services/workflow-scheme-drafts-service.js +956 -0
  507. package/lib/openapi/platform/services/workflow-scheme-drafts-service.js.map +1 -0
  508. package/lib/openapi/platform/services/workflow-scheme-project-associations-service.d.ts +85 -0
  509. package/lib/openapi/platform/services/workflow-scheme-project-associations-service.js +134 -0
  510. package/lib/openapi/platform/services/workflow-scheme-project-associations-service.js.map +1 -0
  511. package/lib/openapi/platform/services/workflow-schemes-service.d.ts +843 -0
  512. package/lib/openapi/platform/services/workflow-schemes-service.js +1030 -0
  513. package/lib/openapi/platform/services/workflow-schemes-service.js.map +1 -0
  514. package/lib/openapi/platform/services/workflow-status-categories-service.d.ts +60 -0
  515. package/lib/openapi/platform/services/workflow-status-categories-service.js +115 -0
  516. package/lib/openapi/platform/services/workflow-status-categories-service.js.map +1 -0
  517. package/lib/openapi/platform/services/workflow-statuses-service.d.ts +87 -0
  518. package/lib/openapi/platform/services/workflow-statuses-service.js +142 -0
  519. package/lib/openapi/platform/services/workflow-statuses-service.js.map +1 -0
  520. package/lib/openapi/platform/services/workflow-transition-properties-service.d.ts +189 -0
  521. package/lib/openapi/platform/services/workflow-transition-properties-service.js +224 -0
  522. package/lib/openapi/platform/services/workflow-transition-properties-service.js.map +1 -0
  523. package/lib/openapi/platform/services/workflow-transition-rules-service.d.ts +319 -0
  524. package/lib/openapi/platform/services/workflow-transition-rules-service.js +326 -0
  525. package/lib/openapi/platform/services/workflow-transition-rules-service.js.map +1 -0
  526. package/lib/openapi/platform/services/workflows-service.d.ts +3032 -0
  527. package/lib/openapi/platform/services/workflows-service.js +2529 -0
  528. package/lib/openapi/platform/services/workflows-service.js.map +1 -0
  529. package/lib/openapi/platform/validation-schema-storage.d.ts +3 -0
  530. package/lib/openapi/platform/validation-schema-storage.js +144 -0
  531. package/lib/openapi/platform/validation-schema-storage.js.map +1 -0
  532. package/lib/openapi/software/base-jira-software-api-client.d.ts +426 -0
  533. package/lib/openapi/software/base-jira-software-api-client.js +444 -0
  534. package/lib/openapi/software/base-jira-software-api-client.js.map +1 -0
  535. package/lib/openapi/software/core/common-http-client.d.ts +196 -0
  536. package/lib/openapi/software/core/common-http-client.js +390 -0
  537. package/lib/openapi/software/core/common-http-client.js.map +1 -0
  538. package/lib/openapi/software/core/common-http-service.d.ts +7 -0
  539. package/lib/openapi/software/core/common-http-service.js +20 -0
  540. package/lib/openapi/software/core/common-http-service.js.map +1 -0
  541. package/lib/openapi/software/core/common-validation-schema-storage.d.ts +35 -0
  542. package/lib/openapi/software/core/common-validation-schema-storage.js +65 -0
  543. package/lib/openapi/software/core/common-validation-schema-storage.js.map +1 -0
  544. package/lib/openapi/software/models/board.d.ts +505 -0
  545. package/lib/openapi/software/models/board.js +389 -0
  546. package/lib/openapi/software/models/board.js.map +1 -0
  547. package/lib/openapi/software/services/backlog-service.d.ts +81 -0
  548. package/lib/openapi/software/services/backlog-service.js +113 -0
  549. package/lib/openapi/software/services/backlog-service.js.map +1 -0
  550. package/lib/openapi/software/services/board-service.d.ts +2254 -0
  551. package/lib/openapi/software/services/board-service.js +2653 -0
  552. package/lib/openapi/software/services/board-service.js.map +1 -0
  553. package/lib/openapi/software/services/builds-service.d.ts +368 -0
  554. package/lib/openapi/software/services/builds-service.js +230 -0
  555. package/lib/openapi/software/services/builds-service.js.map +1 -0
  556. package/lib/openapi/software/services/deployments-service.d.ts +217 -0
  557. package/lib/openapi/software/services/deployments-service.js +232 -0
  558. package/lib/openapi/software/services/deployments-service.js.map +1 -0
  559. package/lib/openapi/software/services/dev-ops-components-service.d.ts +246 -0
  560. package/lib/openapi/software/services/dev-ops-components-service.js +280 -0
  561. package/lib/openapi/software/services/dev-ops-components-service.js.map +1 -0
  562. package/lib/openapi/software/services/development-information-service.d.ts +1641 -0
  563. package/lib/openapi/software/services/development-information-service.js +474 -0
  564. package/lib/openapi/software/services/development-information-service.js.map +1 -0
  565. package/lib/openapi/software/services/epic-service.d.ts +596 -0
  566. package/lib/openapi/software/services/epic-service.js +633 -0
  567. package/lib/openapi/software/services/epic-service.js.map +1 -0
  568. package/lib/openapi/software/services/feature-flags-service.d.ts +170 -0
  569. package/lib/openapi/software/services/feature-flags-service.js +182 -0
  570. package/lib/openapi/software/services/feature-flags-service.js.map +1 -0
  571. package/lib/openapi/software/services/issue-service.d.ts +329 -0
  572. package/lib/openapi/software/services/issue-service.js +410 -0
  573. package/lib/openapi/software/services/issue-service.js.map +1 -0
  574. package/lib/openapi/software/services/operations-service.d.ts +456 -0
  575. package/lib/openapi/software/services/operations-service.js +444 -0
  576. package/lib/openapi/software/services/operations-service.js.map +1 -0
  577. package/lib/openapi/software/services/remote-links-service.d.ts +445 -0
  578. package/lib/openapi/software/services/remote-links-service.js +327 -0
  579. package/lib/openapi/software/services/remote-links-service.js.map +1 -0
  580. package/lib/openapi/software/services/security-information-service.d.ts +257 -0
  581. package/lib/openapi/software/services/security-information-service.js +310 -0
  582. package/lib/openapi/software/services/security-information-service.js.map +1 -0
  583. package/lib/openapi/software/services/sprint-service.d.ts +531 -0
  584. package/lib/openapi/software/services/sprint-service.js +665 -0
  585. package/lib/openapi/software/services/sprint-service.js.map +1 -0
  586. package/lib/openapi/software/validation-schema-storage.d.ts +3 -0
  587. package/lib/openapi/software/validation-schema-storage.js +144 -0
  588. package/lib/openapi/software/validation-schema-storage.js.map +1 -0
  589. package/package.json +37 -0
  590. package/src/index.ts +47 -0
  591. package/src/openapi/platform/base-jira-platform-api-client.ts +2298 -0
  592. package/src/openapi/platform/core/common-http-client.ts +723 -0
  593. package/src/openapi/platform/core/common-http-service.ts +22 -0
  594. package/src/openapi/platform/core/common-validation-schema-storage.ts +105 -0
  595. package/src/openapi/platform/models/announcement-banner.ts +59 -0
  596. package/src/openapi/platform/models/app-data-policies.ts +79 -0
  597. package/src/openapi/platform/models/app-migration.ts +172 -0
  598. package/src/openapi/platform/models/app-properties.ts +32 -0
  599. package/src/openapi/platform/models/audit-records.ts +140 -0
  600. package/src/openapi/platform/models/avatars.ts +48 -0
  601. package/src/openapi/platform/models/classification-levels.ts +58 -0
  602. package/src/openapi/platform/models/common.ts +2669 -0
  603. package/src/openapi/platform/models/dashboards.ts +849 -0
  604. package/src/openapi/platform/models/dynamic-modules.ts +121 -0
  605. package/src/openapi/platform/models/filter-sharing.ts +103 -0
  606. package/src/openapi/platform/models/filters.ts +319 -0
  607. package/src/openapi/platform/models/group-and-user-picker.ts +85 -0
  608. package/src/openapi/platform/models/groups.ts +247 -0
  609. package/src/openapi/platform/models/issue-attachments.ts +290 -0
  610. package/src/openapi/platform/models/issue-comment-properties.ts +27 -0
  611. package/src/openapi/platform/models/issue-comments.ts +91 -0
  612. package/src/openapi/platform/models/issue-custom-field-configuration-apps.ts +96 -0
  613. package/src/openapi/platform/models/issue-custom-field-contexts.ts +1072 -0
  614. package/src/openapi/platform/models/issue-custom-field-options-apps.ts +273 -0
  615. package/src/openapi/platform/models/issue-custom-field-options.ts +283 -0
  616. package/src/openapi/platform/models/issue-custom-field-values-apps.ts +118 -0
  617. package/src/openapi/platform/models/issue-field-configurations.ts +435 -0
  618. package/src/openapi/platform/models/issue-fields.ts +392 -0
  619. package/src/openapi/platform/models/issue-link-types.ts +28 -0
  620. package/src/openapi/platform/models/issue-links.ts +185 -0
  621. package/src/openapi/platform/models/issue-notification-schemes.ts +370 -0
  622. package/src/openapi/platform/models/issue-priorities.ts +196 -0
  623. package/src/openapi/platform/models/issue-properties.ts +259 -0
  624. package/src/openapi/platform/models/issue-remote-links.ts +207 -0
  625. package/src/openapi/platform/models/issue-resolutions.ts +180 -0
  626. package/src/openapi/platform/models/issue-search.ts +367 -0
  627. package/src/openapi/platform/models/issue-security-level.ts +76 -0
  628. package/src/openapi/platform/models/issue-security-schemes.ts +496 -0
  629. package/src/openapi/platform/models/issue-type-schemes.ts +290 -0
  630. package/src/openapi/platform/models/issue-type-screen-schemes.ts +286 -0
  631. package/src/openapi/platform/models/issue-types.ts +66 -0
  632. package/src/openapi/platform/models/issue-votes.ts +38 -0
  633. package/src/openapi/platform/models/issue-watchers.ts +67 -0
  634. package/src/openapi/platform/models/issue-worklogs.ts +190 -0
  635. package/src/openapi/platform/models/issues.ts +1268 -0
  636. package/src/openapi/platform/models/jira-expressions.ts +578 -0
  637. package/src/openapi/platform/models/jira-settings.ts +118 -0
  638. package/src/openapi/platform/models/jql-functions-apps.ts +128 -0
  639. package/src/openapi/platform/models/jql.ts +783 -0
  640. package/src/openapi/platform/models/labels.ts +42 -0
  641. package/src/openapi/platform/models/license-metrics.ts +68 -0
  642. package/src/openapi/platform/models/myself.ts +29 -0
  643. package/src/openapi/platform/models/permission-schemes.ts +89 -0
  644. package/src/openapi/platform/models/permissions.ts +308 -0
  645. package/src/openapi/platform/models/priority-schemes.ts +527 -0
  646. package/src/openapi/platform/models/project-avatars.ts +29 -0
  647. package/src/openapi/platform/models/project-classification-levels.ts +24 -0
  648. package/src/openapi/platform/models/project-components.ts +231 -0
  649. package/src/openapi/platform/models/project-email.ts +27 -0
  650. package/src/openapi/platform/models/project-features.ts +78 -0
  651. package/src/openapi/platform/models/project-permission-schemes.ts +43 -0
  652. package/src/openapi/platform/models/project-role-actors.ts +107 -0
  653. package/src/openapi/platform/models/project-roles.ts +76 -0
  654. package/src/openapi/platform/models/project-types.ts +36 -0
  655. package/src/openapi/platform/models/project-versions.ts +216 -0
  656. package/src/openapi/platform/models/projects.ts +429 -0
  657. package/src/openapi/platform/models/screen-schemes.ts +192 -0
  658. package/src/openapi/platform/models/screen-tab-fields.ts +45 -0
  659. package/src/openapi/platform/models/screens.ts +171 -0
  660. package/src/openapi/platform/models/server-info.ts +100 -0
  661. package/src/openapi/platform/models/service-registry.ts +68 -0
  662. package/src/openapi/platform/models/status.ts +229 -0
  663. package/src/openapi/platform/models/time-tracking.ts +38 -0
  664. package/src/openapi/platform/models/ui-modifications-apps.ts +229 -0
  665. package/src/openapi/platform/models/user-search.ts +69 -0
  666. package/src/openapi/platform/models/users.ts +121 -0
  667. package/src/openapi/platform/models/webhooks.ts +307 -0
  668. package/src/openapi/platform/models/workflow-scheme-drafts.ts +58 -0
  669. package/src/openapi/platform/models/workflow-scheme-project-associations.ts +68 -0
  670. package/src/openapi/platform/models/workflow-schemes.ts +545 -0
  671. package/src/openapi/platform/models/workflow-transition-properties.ts +33 -0
  672. package/src/openapi/platform/models/workflow-transition-rules.ts +261 -0
  673. package/src/openapi/platform/models/workflows.ts +1943 -0
  674. package/src/openapi/platform/services/announcement-banner-service.ts +142 -0
  675. package/src/openapi/platform/services/app-data-policies-service.ts +136 -0
  676. package/src/openapi/platform/services/app-migration-service.ts +289 -0
  677. package/src/openapi/platform/services/app-properties-service.ts +441 -0
  678. package/src/openapi/platform/services/application-roles-service.ts +247 -0
  679. package/src/openapi/platform/services/audit-records-service.ts +164 -0
  680. package/src/openapi/platform/services/avatars-service.ts +769 -0
  681. package/src/openapi/platform/services/classification-levels-service.ts +131 -0
  682. package/src/openapi/platform/services/dashboards-service.ts +1721 -0
  683. package/src/openapi/platform/services/dynamic-modules-service.ts +127 -0
  684. package/src/openapi/platform/services/filter-sharing-service.ts +687 -0
  685. package/src/openapi/platform/services/filters-service.ts +1901 -0
  686. package/src/openapi/platform/services/group-and-user-picker-service.ts +224 -0
  687. package/src/openapi/platform/services/groups-service.ts +751 -0
  688. package/src/openapi/platform/services/issue-attachments-service.ts +900 -0
  689. package/src/openapi/platform/services/issue-comment-properties-service.ts +324 -0
  690. package/src/openapi/platform/services/issue-comments-service.ts +812 -0
  691. package/src/openapi/platform/services/issue-custom-field-configuration-apps-service.ts +277 -0
  692. package/src/openapi/platform/services/issue-custom-field-contexts-service.ts +1339 -0
  693. package/src/openapi/platform/services/issue-custom-field-options-apps-service.ts +994 -0
  694. package/src/openapi/platform/services/issue-custom-field-options-service.ts +651 -0
  695. package/src/openapi/platform/services/issue-custom-field-values-apps-service.ts +201 -0
  696. package/src/openapi/platform/services/issue-field-configurations-service.ts +1294 -0
  697. package/src/openapi/platform/services/issue-fields-service.ts +837 -0
  698. package/src/openapi/platform/services/issue-link-types-service.ts +360 -0
  699. package/src/openapi/platform/services/issue-links-service.ts +345 -0
  700. package/src/openapi/platform/services/issue-navigator-settings-service.ts +119 -0
  701. package/src/openapi/platform/services/issue-notification-schemes-service.ts +1209 -0
  702. package/src/openapi/platform/services/issue-priorities-service.ts +575 -0
  703. package/src/openapi/platform/services/issue-properties-service.ts +606 -0
  704. package/src/openapi/platform/services/issue-remote-links-service.ts +597 -0
  705. package/src/openapi/platform/services/issue-resolutions-service.ts +534 -0
  706. package/src/openapi/platform/services/issue-search-service.ts +1139 -0
  707. package/src/openapi/platform/services/issue-security-level-service.ts +250 -0
  708. package/src/openapi/platform/services/issue-security-schemes-service.ts +1240 -0
  709. package/src/openapi/platform/services/issue-type-properties-service.ts +325 -0
  710. package/src/openapi/platform/services/issue-type-schemes-service.ts +940 -0
  711. package/src/openapi/platform/services/issue-type-screen-schemes-service.ts +994 -0
  712. package/src/openapi/platform/services/issue-types-service.ts +679 -0
  713. package/src/openapi/platform/services/issue-votes-service.ts +221 -0
  714. package/src/openapi/platform/services/issue-watchers-service.ts +331 -0
  715. package/src/openapi/platform/services/issue-worklog-properties-service.ts +348 -0
  716. package/src/openapi/platform/services/issue-worklogs-service.ts +1089 -0
  717. package/src/openapi/platform/services/issues-service.ts +3346 -0
  718. package/src/openapi/platform/services/jira-expressions-service.ts +407 -0
  719. package/src/openapi/platform/services/jira-settings-service.ts +415 -0
  720. package/src/openapi/platform/services/jql-functions-apps-service.ts +219 -0
  721. package/src/openapi/platform/services/jql-service.ts +896 -0
  722. package/src/openapi/platform/services/labels-service.ts +89 -0
  723. package/src/openapi/platform/services/license-metrics-service.ts +216 -0
  724. package/src/openapi/platform/services/myself-service.ts +520 -0
  725. package/src/openapi/platform/services/permission-schemes-service.ts +926 -0
  726. package/src/openapi/platform/services/permissions-service.ts +407 -0
  727. package/src/openapi/platform/services/priority-schemes-service.ts +1001 -0
  728. package/src/openapi/platform/services/project-avatars-service.ts +341 -0
  729. package/src/openapi/platform/services/project-categories-service.ts +318 -0
  730. package/src/openapi/platform/services/project-classification-levels-service.ts +232 -0
  731. package/src/openapi/platform/services/project-components-service.ts +1332 -0
  732. package/src/openapi/platform/services/project-email-service.ts +161 -0
  733. package/src/openapi/platform/services/project-features-service.ts +207 -0
  734. package/src/openapi/platform/services/project-key-and-name-validation-service.ts +200 -0
  735. package/src/openapi/platform/services/project-permission-schemes-service.ts +384 -0
  736. package/src/openapi/platform/services/project-properties-service.ts +320 -0
  737. package/src/openapi/platform/services/project-role-actors-service.ts +627 -0
  738. package/src/openapi/platform/services/project-roles-service.ts +867 -0
  739. package/src/openapi/platform/services/project-types-service.ts +297 -0
  740. package/src/openapi/platform/services/project-versions-service.ts +1287 -0
  741. package/src/openapi/platform/services/projects-service.ts +2196 -0
  742. package/src/openapi/platform/services/screen-schemes-service.ts +334 -0
  743. package/src/openapi/platform/services/screen-tab-fields-service.ts +276 -0
  744. package/src/openapi/platform/services/screen-tabs-service.ts +421 -0
  745. package/src/openapi/platform/services/screens-service.ts +528 -0
  746. package/src/openapi/platform/services/server-info-service.ts +88 -0
  747. package/src/openapi/platform/services/service-registry-service.ts +89 -0
  748. package/src/openapi/platform/services/status-service.ts +498 -0
  749. package/src/openapi/platform/services/tasks-service.ts +159 -0
  750. package/src/openapi/platform/services/time-tracking-service.ts +386 -0
  751. package/src/openapi/platform/services/ui-modifications-apps-service.ts +403 -0
  752. package/src/openapi/platform/services/user-properties-service.ts +413 -0
  753. package/src/openapi/platform/services/user-search-service.ts +1214 -0
  754. package/src/openapi/platform/services/users-service.ts +1108 -0
  755. package/src/openapi/platform/services/webhooks-service.ts +458 -0
  756. package/src/openapi/platform/services/workflow-scheme-drafts-service.ts +1313 -0
  757. package/src/openapi/platform/services/workflow-scheme-project-associations-service.ts +189 -0
  758. package/src/openapi/platform/services/workflow-schemes-service.ts +1617 -0
  759. package/src/openapi/platform/services/workflow-status-categories-service.ts +151 -0
  760. package/src/openapi/platform/services/workflow-statuses-service.ts +176 -0
  761. package/src/openapi/platform/services/workflow-transition-properties-service.ts +388 -0
  762. package/src/openapi/platform/services/workflow-transition-rules-service.ts +485 -0
  763. package/src/openapi/platform/services/workflows-service.ts +3477 -0
  764. package/src/openapi/platform/validation-schema-storage.ts +186 -0
  765. package/src/openapi/software/base-jira-software-api-client.ts +447 -0
  766. package/src/openapi/software/core/common-http-client.ts +723 -0
  767. package/src/openapi/software/core/common-http-service.ts +22 -0
  768. package/src/openapi/software/core/common-validation-schema-storage.ts +105 -0
  769. package/src/openapi/software/models/board.ts +918 -0
  770. package/src/openapi/software/services/backlog-service.ts +160 -0
  771. package/src/openapi/software/services/board-service.ts +4189 -0
  772. package/src/openapi/software/services/builds-service.ts +571 -0
  773. package/src/openapi/software/services/deployments-service.ts +403 -0
  774. package/src/openapi/software/services/dev-ops-components-service.ts +371 -0
  775. package/src/openapi/software/services/development-information-service.ts +2357 -0
  776. package/src/openapi/software/services/epic-service.ts +854 -0
  777. package/src/openapi/software/services/feature-flags-service.ts +303 -0
  778. package/src/openapi/software/services/issue-service.ts +529 -0
  779. package/src/openapi/software/services/operations-service.ts +741 -0
  780. package/src/openapi/software/services/remote-links-service.ts +653 -0
  781. package/src/openapi/software/services/security-information-service.ts +495 -0
  782. package/src/openapi/software/services/sprint-service.ts +969 -0
  783. package/src/openapi/software/validation-schema-storage.ts +186 -0
  784. package/tsconfig.build.json +7 -0
  785. package/tsconfig.json +4 -0
@@ -0,0 +1,3032 @@
1
+ import { CommonHttpService } from "../core/common-http-service";
2
+ import { type CreateWorkflowDetails, type DeprecatedWorkflow, type PageBeanWorkflow, type WorkflowCapabilities, type WorkflowCreateRequest, type WorkflowCreateResponse, type WorkflowCreateValidateRequest, type WorkflowIds, type WorkflowReadRequest, type WorkflowReadResponse, type WorkflowUpdateRequest, type WorkflowUpdateResponse, type WorkflowUpdateValidateRequestBean, type WorkflowValidationErrorList } from "../models/workflows";
3
+ /**
4
+ * This resource represents workflows. Use it to:
5
+ *
6
+ * * Get workflows
7
+ * * Create workflows
8
+ * * Update workflows
9
+ * * Delete inactive workflows
10
+ * * Get workflow capabilities
11
+ */
12
+ export declare class WorkflowsService extends CommonHttpService {
13
+ /**
14
+ * Creates a workflow. You can define transition rules using the shapes detailed
15
+ * in the following sections. If no transitional rules are specified the default
16
+ * system transition rules are used. Note: This only applies to company-managed
17
+ * scoped workflows. Use [bulk create
18
+ * workflows](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflows-create-post)
19
+ * to create both team and company-managed scoped workflows.
20
+ *
21
+ * #### Conditions ####
22
+ *
23
+ * Conditions enable workflow rules that govern whether a transition can execute.
24
+ *
25
+ * ##### Always false condition #####
26
+ *
27
+ * A condition that always fails.
28
+ *
29
+ * {
30
+ * "type": "AlwaysFalseCondition"
31
+ * }
32
+ *
33
+ * ##### Block transition until approval #####
34
+ *
35
+ * A condition that blocks issue transition if there is a pending approval.
36
+ *
37
+ * {
38
+ * "type": "BlockInProgressApprovalCondition"
39
+ * }
40
+ *
41
+ * ##### Compare number custom field condition #####
42
+ *
43
+ * A condition that allows transition if a comparison between a number custom
44
+ * field and a value is true.
45
+ *
46
+ * {
47
+ * "type": "CompareNumberCFCondition",
48
+ * "configuration": {
49
+ * "comparator": "=",
50
+ * "fieldId": "customfield_10029",
51
+ * "fieldValue": 2
52
+ * }
53
+ * }
54
+ *
55
+ * * `comparator` One of the supported comparator: `=`, `>`, and `<`.
56
+ * * `fieldId` The custom numeric field ID. Allowed field types:
57
+ *
58
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:float`
59
+ * * `com.pyxis.greenhopper.jira:jsw-story-points`
60
+ * * `fieldValue` The value for comparison.
61
+ *
62
+ * ##### Hide from user condition #####
63
+ *
64
+ * A condition that hides a transition from users. The transition can only be
65
+ * triggered from a workflow function or REST API operation.
66
+ *
67
+ * {
68
+ * "type": "RemoteOnlyCondition"
69
+ * }
70
+ *
71
+ * ##### Only assignee condition #####
72
+ *
73
+ * A condition that allows only the assignee to execute a transition.
74
+ *
75
+ * {
76
+ * "type": "AllowOnlyAssignee"
77
+ * }
78
+ *
79
+ * ##### Only Bamboo notifications workflow condition (deprecated) #####
80
+ *
81
+ * A condition that makes the transition available only to Bamboo build
82
+ * notifications.
83
+ *
84
+ * {
85
+ * "type": "OnlyBambooNotificationsCondition"
86
+ * }
87
+ *
88
+ * ##### Only reporter condition #####
89
+ *
90
+ * A condition that allows only the reporter to execute a transition.
91
+ *
92
+ * {
93
+ * "type": "AllowOnlyReporter"
94
+ * }
95
+ *
96
+ * ##### Permission condition #####
97
+ *
98
+ * A condition that allows only users with a permission to execute a transition.
99
+ *
100
+ * {
101
+ * "type": "PermissionCondition",
102
+ * "configuration": {
103
+ * "permissionKey": "BROWSE_PROJECTS"
104
+ * }
105
+ * }
106
+ *
107
+ * * `permissionKey` The permission required to perform the transition. Allowed
108
+ * values:
109
+ * [built-in](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions)
110
+ * or app defined permissions.
111
+ *
112
+ * ##### Previous status condition #####
113
+ *
114
+ * A condition that allows a transition based on whether an issue has or has not
115
+ * transitioned through a status.
116
+ *
117
+ * {
118
+ * "type": "PreviousStatusCondition",
119
+ * "configuration": {
120
+ * "ignoreLoopTransitions": true,
121
+ * "includeCurrentStatus": true,
122
+ * "mostRecentStatusOnly": true,
123
+ * "reverseCondition": true,
124
+ * "previousStatus": {
125
+ * "id": "5"
126
+ * }
127
+ * }
128
+ * }
129
+ *
130
+ * By default this condition allows the transition if the status, as defined by
131
+ * its ID in the `previousStatus` object, matches any previous issue status,
132
+ * unless:
133
+ *
134
+ * * `ignoreLoopTransitions` is `true`, then loop transitions (from and to the
135
+ * same status) are ignored.
136
+ * * `includeCurrentStatus` is `true`, then the current issue status is also
137
+ * checked.
138
+ * * `mostRecentStatusOnly` is `true`, then only the issue's preceding status
139
+ * (the one immediately before the current status) is checked.
140
+ * * `reverseCondition` is `true`, then the status must not be present.
141
+ *
142
+ * ##### Separation of duties condition #####
143
+ *
144
+ * A condition that prevents a user to perform the transition, if the user has
145
+ * already performed a transition on the issue.
146
+ *
147
+ * {
148
+ * "type": "SeparationOfDutiesCondition",
149
+ * "configuration": {
150
+ * "fromStatus": {
151
+ * "id": "5"
152
+ * },
153
+ * "toStatus": {
154
+ * "id": "6"
155
+ * }
156
+ * }
157
+ * }
158
+ *
159
+ * * `fromStatus` OPTIONAL. An object containing the ID of the source status of
160
+ * the transition that is blocked. If omitted any transition to `toStatus` is
161
+ * blocked.
162
+ * * `toStatus` An object containing the ID of the target status of the
163
+ * transition that is blocked.
164
+ *
165
+ * ##### Subtask blocking condition #####
166
+ *
167
+ * A condition that blocks transition on a parent issue if any of its subtasks are
168
+ * in any of one or more statuses.
169
+ *
170
+ * {
171
+ * "type": "SubTaskBlockingCondition",
172
+ * "configuration": {
173
+ * "statuses": [
174
+ * {
175
+ * "id": "1"
176
+ * },
177
+ * {
178
+ * "id": "3"
179
+ * }
180
+ * ]
181
+ * }
182
+ * }
183
+ *
184
+ * * `statuses` A list of objects containing status IDs.
185
+ *
186
+ * ##### User is in any group condition #####
187
+ *
188
+ * A condition that allows users belonging to any group from a list of groups to
189
+ * execute a transition.
190
+ *
191
+ * {
192
+ * "type": "UserInAnyGroupCondition",
193
+ * "configuration": {
194
+ * "groups": [
195
+ * "administrators",
196
+ * "atlassian-addons-admin"
197
+ * ]
198
+ * }
199
+ * }
200
+ *
201
+ * * `groups` A list of group names.
202
+ *
203
+ * ##### User is in any project role condition #####
204
+ *
205
+ * A condition that allows only users with at least one project roles from a list
206
+ * of project roles to execute a transition.
207
+ *
208
+ * {
209
+ * "type": "InAnyProjectRoleCondition",
210
+ * "configuration": {
211
+ * "projectRoles": [
212
+ * {
213
+ * "id": "10002"
214
+ * },
215
+ * {
216
+ * "id": "10003"
217
+ * },
218
+ * {
219
+ * "id": "10012"
220
+ * },
221
+ * {
222
+ * "id": "10013"
223
+ * }
224
+ * ]
225
+ * }
226
+ * }
227
+ *
228
+ * * `projectRoles` A list of objects containing project role IDs.
229
+ *
230
+ * ##### User is in custom field condition #####
231
+ *
232
+ * A condition that allows only users listed in a given custom field to execute
233
+ * the transition.
234
+ *
235
+ * {
236
+ * "type": "UserIsInCustomFieldCondition",
237
+ * "configuration": {
238
+ * "allowUserInField": false,
239
+ * "fieldId": "customfield_10010"
240
+ * }
241
+ * }
242
+ *
243
+ * * `allowUserInField` If `true` only a user who is listed in `fieldId` can
244
+ * perform the transition, otherwise, only a user who is not listed in `fieldId`
245
+ * can perform the transition.
246
+ * * `fieldId` The ID of the field containing the list of users.
247
+ *
248
+ * ##### User is in group condition #####
249
+ *
250
+ * A condition that allows users belonging to a group to execute a transition.
251
+ *
252
+ * {
253
+ * "type": "UserInGroupCondition",
254
+ * "configuration": {
255
+ * "group": "administrators"
256
+ * }
257
+ * }
258
+ *
259
+ * * `group` The name of the group.
260
+ *
261
+ * ##### User is in group custom field condition #####
262
+ *
263
+ * A condition that allows users belonging to a group specified in a custom field
264
+ * to execute a transition.
265
+ *
266
+ * {
267
+ * "type": "InGroupCFCondition",
268
+ * "configuration": {
269
+ * "fieldId": "customfield_10012"
270
+ * }
271
+ * }
272
+ *
273
+ * * `fieldId` The ID of the field. Allowed field types:
274
+ *
275
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:multigrouppicker`
276
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:grouppicker`
277
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:select`
278
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:multiselect`
279
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons`
280
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes`
281
+ * * `com.pyxis.greenhopper.jira:gh-epic-status`
282
+ *
283
+ * ##### User is in project role condition #####
284
+ *
285
+ * A condition that allows users with a project role to execute a transition.
286
+ *
287
+ * {
288
+ * "type": "InProjectRoleCondition",
289
+ * "configuration": {
290
+ * "projectRole": {
291
+ * "id": "10002"
292
+ * }
293
+ * }
294
+ * }
295
+ *
296
+ * * `projectRole` An object containing the ID of a project role.
297
+ *
298
+ * ##### Value field condition #####
299
+ *
300
+ * A conditions that allows a transition to execute if the value of a field is
301
+ * equal to a constant value or simply set.
302
+ *
303
+ * {
304
+ * "type": "ValueFieldCondition",
305
+ * "configuration": {
306
+ * "fieldId": "assignee",
307
+ * "fieldValue":
308
+ * "qm:6e1ecee6-8e64-4db6-8c85-916bb3275f51:54b56885-2bd2-4381-8239-78263442520f",
309
+ * "comparisonType": "NUMBER",
310
+ * "comparator": "="
311
+ * }
312
+ * }
313
+ *
314
+ * * `fieldId` The ID of a field used in the comparison.
315
+ * * `fieldValue` The expected value of the field.
316
+ * * `comparisonType` The type of the comparison. Allowed values: `STRING`,
317
+ * `NUMBER`, `DATE`, `DATE_WITHOUT_TIME`, or `OPTIONID`.
318
+ * * `comparator` One of the supported comparator: `>`, `>=`, `=`, `<=`, `<`,
319
+ * `!=`.
320
+ *
321
+ * **Notes:**
322
+ *
323
+ * * If you choose the comparison type `STRING`, only `=` and `!=` are valid
324
+ * options.
325
+ * * You may leave `fieldValue` empty when comparison type is `!=` to indicate
326
+ * that a value is required in the field.
327
+ * * For date fields without time format values as `yyyy-MM-dd`, and for those
328
+ * with time as `yyyy-MM-dd HH:mm`. For example, for July 16 2021 use
329
+ * `2021-07-16`, for 8:05 AM use `2021-07-16 08:05`, and for 4 PM: `2021-07-16
330
+ * 16:00`.
331
+ *
332
+ * #### Validators ####
333
+ *
334
+ * Validators check that any input made to the transition is valid before the
335
+ * transition is performed.
336
+ *
337
+ * ##### Date field validator #####
338
+ *
339
+ * A validator that compares two dates.
340
+ *
341
+ * {
342
+ * "type": "DateFieldValidator",
343
+ * "configuration": {
344
+ * "comparator": ">",
345
+ * "date1": "updated",
346
+ * "date2": "created",
347
+ * "expression": "1d",
348
+ * "includeTime": true
349
+ * }
350
+ * }
351
+ *
352
+ * * `comparator` One of the supported comparator: `>`, `>=`, `=`, `<=`, `<`, or
353
+ * `!=`.
354
+ * * `date1` The date field to validate. Allowed field types:
355
+ *
356
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datepicker`
357
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datetime`
358
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-end`
359
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-start`
360
+ * * `duedate`
361
+ * * `created`
362
+ * * `updated`
363
+ * * `resolutiondate`
364
+ * * `date2` The second date field. Required, if `expression` is not passed.
365
+ * Allowed field types:
366
+ *
367
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datepicker`
368
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datetime`
369
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-end`
370
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-start`
371
+ * * `duedate`
372
+ * * `created`
373
+ * * `updated`
374
+ * * `resolutiondate`
375
+ * * `expression` An expression specifying an offset. Required, if `date2` is
376
+ * not passed. Offsets are built with a number, with `-` as prefix for the past,
377
+ * and one of these time units: `d` for day, `w` for week, `m` for month, or `y`
378
+ * for year. For example, -2d means two days into the past and 1w means one week
379
+ * into the future. The `now` keyword enables a comparison with the current date.
380
+ * * `includeTime` If `true`, then the time part of the data is included for the
381
+ * comparison. If the field doesn't have a time part, 00:00:00 is used.
382
+ *
383
+ * ##### Windows date validator #####
384
+ *
385
+ * A validator that checks that a date falls on or after a reference date and
386
+ * before or on the reference date plus a number of days.
387
+ *
388
+ * {
389
+ * "type": "WindowsDateValidator",
390
+ * "configuration": {
391
+ * "date1": "customfield_10009",
392
+ * "date2": "created",
393
+ * "windowsDays": 5
394
+ * }
395
+ * }
396
+ *
397
+ * * `date1` The date field to validate. Allowed field types:
398
+ *
399
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datepicker`
400
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datetime`
401
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-end`
402
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-start`
403
+ * * `duedate`
404
+ * * `created`
405
+ * * `updated`
406
+ * * `resolutiondate`
407
+ * * `date2` The reference date. Allowed field types:
408
+ *
409
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datepicker`
410
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:datetime`
411
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-end`
412
+ * * `com.atlassian.jpo:jpo-custom-field-baseline-start`
413
+ * * `duedate`
414
+ * * `created`
415
+ * * `updated`
416
+ * * `resolutiondate`
417
+ * * `windowsDays` A positive integer indicating a number of days.
418
+ *
419
+ * ##### Field required validator #####
420
+ *
421
+ * A validator that checks fields are not empty. By default, if a field is not
422
+ * included in the current context it's ignored and not validated.
423
+ *
424
+ * {
425
+ * "type": "FieldRequiredValidator",
426
+ * "configuration": {
427
+ * "ignoreContext": true,
428
+ * "errorMessage": "Hey",
429
+ * "fieldIds": [
430
+ * "versions",
431
+ * "customfield_10037",
432
+ * "customfield_10003"
433
+ * ]
434
+ * }
435
+ * }
436
+ *
437
+ * * `ignoreContext` If `true`, then the context is ignored and all the fields
438
+ * are validated.
439
+ * * `errorMessage` OPTIONAL. The error message displayed when one or more
440
+ * fields are empty. A default error message is shown if an error message is not
441
+ * provided.
442
+ * * `fieldIds` The list of fields to validate.
443
+ *
444
+ * ##### Field changed validator #####
445
+ *
446
+ * A validator that checks that a field value is changed. However, this validation
447
+ * can be ignored for users from a list of groups.
448
+ *
449
+ * {
450
+ * "type": "FieldChangedValidator",
451
+ * "configuration": {
452
+ * "fieldId": "comment",
453
+ * "errorMessage": "Hey",
454
+ * "exemptedGroups": [
455
+ * "administrators",
456
+ * "atlassian-addons-admin"
457
+ * ]
458
+ * }
459
+ * }
460
+ *
461
+ * * `fieldId` The ID of a field.
462
+ * * `errorMessage` OPTIONAL. The error message displayed if the field is not
463
+ * changed. A default error message is shown if the error message is not provided.
464
+ * * `exemptedGroups` OPTIONAL. The list of groups.
465
+ *
466
+ * ##### Field has single value validator #####
467
+ *
468
+ * A validator that checks that a multi-select field has only one value.
469
+ * Optionally, the validation can ignore values copied from subtasks.
470
+ *
471
+ * {
472
+ * "type": "FieldHasSingleValueValidator",
473
+ * "configuration": {
474
+ * "fieldId": "attachment,
475
+ * "excludeSubtasks": true
476
+ * }
477
+ * }
478
+ *
479
+ * * `fieldId` The ID of a field.
480
+ * * `excludeSubtasks` If `true`, then values copied from subtasks are ignored.
481
+ *
482
+ * ##### Parent status validator #####
483
+ *
484
+ * A validator that checks the status of the parent issue of a subtask. Ìf the
485
+ * issue is not a subtask, no validation is performed.
486
+ *
487
+ * {
488
+ * "type": "ParentStatusValidator",
489
+ * "configuration": {
490
+ * "parentStatuses": [
491
+ * {
492
+ * "id":"1"
493
+ * },
494
+ * {
495
+ * "id":"2"
496
+ * }
497
+ * ]
498
+ * }
499
+ * }
500
+ *
501
+ * * `parentStatus` The list of required parent issue statuses.
502
+ *
503
+ * ##### Permission validator #####
504
+ *
505
+ * A validator that checks the user has a permission.
506
+ *
507
+ * {
508
+ * "type": "PermissionValidator",
509
+ * "configuration": {
510
+ * "permissionKey": "ADMINISTER_PROJECTS"
511
+ * }
512
+ * }
513
+ *
514
+ * * `permissionKey` The permission required to perform the transition. Allowed
515
+ * values:
516
+ * [built-in](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions)
517
+ * or app defined permissions.
518
+ *
519
+ * ##### Previous status validator #####
520
+ *
521
+ * A validator that checks if the issue has held a status.
522
+ *
523
+ * {
524
+ * "type": "PreviousStatusValidator",
525
+ * "configuration": {
526
+ * "mostRecentStatusOnly": false,
527
+ * "previousStatus": {
528
+ * "id": "15"
529
+ * }
530
+ * }
531
+ * }
532
+ *
533
+ * * `mostRecentStatusOnly` If `true`, then only the issue's preceding status
534
+ * (the one immediately before the current status) is checked.
535
+ * * `previousStatus` An object containing the ID of an issue status.
536
+ *
537
+ * ##### Regular expression validator #####
538
+ *
539
+ * A validator that checks the content of a field against a regular expression.
540
+ *
541
+ * {
542
+ * "type": "RegexpFieldValidator",
543
+ * "configuration": {
544
+ * "regExp": "[0-9]",
545
+ * "fieldId": "customfield_10029"
546
+ * }
547
+ * }
548
+ *
549
+ * * `regExp`A regular expression.
550
+ * * `fieldId` The ID of a field. Allowed field types:
551
+ *
552
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:select`
553
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:multiselect`
554
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons`
555
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes`
556
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:textarea`
557
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:textfield`
558
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:url`
559
+ * * `com.atlassian.jira.plugin.system.customfieldtypes:float`
560
+ * * `com.pyxis.greenhopper.jira:jsw-story-points`
561
+ * * `com.pyxis.greenhopper.jira:gh-epic-status`
562
+ * * `description`
563
+ * * `summary`
564
+ *
565
+ * ##### User permission validator #####
566
+ *
567
+ * A validator that checks if a user has a permission. Obsolete. You may encounter
568
+ * this validator when getting transition rules and can pass it when updating or
569
+ * creating rules, for example, when you want to duplicate the rules from a
570
+ * workflow on a new workflow.
571
+ *
572
+ * {
573
+ * "type": "UserPermissionValidator",
574
+ * "configuration": {
575
+ * "permissionKey": "BROWSE_PROJECTS",
576
+ * "nullAllowed": false,
577
+ * "username": "TestUser"
578
+ * }
579
+ * }
580
+ *
581
+ * * `permissionKey` The permission to be validated. Allowed values:
582
+ * [built-in](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions)
583
+ * or app defined permissions.
584
+ * * `nullAllowed` If `true`, allows the transition when `username` is empty.
585
+ * * `username` The username to validate against the `permissionKey`.
586
+ *
587
+ * #### Post functions ####
588
+ *
589
+ * Post functions carry out any additional processing required after a Jira
590
+ * workflow transition is executed.
591
+ *
592
+ * ##### Fire issue event function #####
593
+ *
594
+ * A post function that fires an event that is processed by the listeners.
595
+ *
596
+ * {
597
+ * "type": "FireIssueEventFunction",
598
+ * "configuration": {
599
+ * "event": {
600
+ * "id":"1"
601
+ * }
602
+ * }
603
+ * }
604
+ *
605
+ * **Note:** If provided, this post function overrides the default
606
+ * `FireIssueEventFunction`. Can be included once in a transition.
607
+ *
608
+ * * `event` An object containing the ID of the issue event.
609
+ *
610
+ * ##### Update issue status #####
611
+ *
612
+ * A post function that sets issue status to the linked status of the destination
613
+ * workflow status.
614
+ *
615
+ * {
616
+ * "type": "UpdateIssueStatusFunction"
617
+ * }
618
+ *
619
+ * **Note:** This post function is a default function in global and directed
620
+ * transitions. It can only be added to the initial transition and can only be
621
+ * added once.
622
+ *
623
+ * ##### Create comment #####
624
+ *
625
+ * A post function that adds a comment entered during the transition to an issue.
626
+ *
627
+ * {
628
+ * "type": "CreateCommentFunction"
629
+ * }
630
+ *
631
+ * **Note:** This post function is a default function in global and directed
632
+ * transitions. It can only be added to the initial transition and can only be
633
+ * added once.
634
+ *
635
+ * ##### Store issue #####
636
+ *
637
+ * A post function that stores updates to an issue.
638
+ *
639
+ * {
640
+ * "type": "IssueStoreFunction"
641
+ * }
642
+ *
643
+ * **Note:** This post function can only be added to the initial transition and
644
+ * can only be added once.
645
+ *
646
+ * ##### Assign to current user function #####
647
+ *
648
+ * A post function that assigns the issue to the current user if the current user
649
+ * has the `ASSIGNABLE_USER` permission.
650
+ *
651
+ * {
652
+ * "type": "AssignToCurrentUserFunction"
653
+ * }
654
+ *
655
+ * **Note:** This post function can be included once in a transition.
656
+ *
657
+ * ##### Assign to lead function #####
658
+ *
659
+ * A post function that assigns the issue to the project or component lead
660
+ * developer.
661
+ *
662
+ * {
663
+ * "type": "AssignToLeadFunction"
664
+ * }
665
+ *
666
+ * **Note:** This post function can be included once in a transition.
667
+ *
668
+ * ##### Assign to reporter function #####
669
+ *
670
+ * A post function that assigns the issue to the reporter.
671
+ *
672
+ * {
673
+ * "type": "AssignToReporterFunction"
674
+ * }
675
+ *
676
+ * **Note:** This post function can be included once in a transition.
677
+ *
678
+ * ##### Clear field value function #####
679
+ *
680
+ * A post function that clears the value from a field.
681
+ *
682
+ * {
683
+ * "type": "ClearFieldValuePostFunction",
684
+ * "configuration": {
685
+ * "fieldId": "assignee"
686
+ * }
687
+ * }
688
+ *
689
+ * * `fieldId` The ID of the field.
690
+ *
691
+ * ##### Copy value from other field function #####
692
+ *
693
+ * A post function that copies the value of one field to another, either within an
694
+ * issue or from parent to subtask.
695
+ *
696
+ * {
697
+ * "type": "CopyValueFromOtherFieldPostFunction",
698
+ * "configuration": {
699
+ * "sourceFieldId": "assignee",
700
+ * "destinationFieldId": "creator",
701
+ * "copyType": "same"
702
+ * }
703
+ * }
704
+ *
705
+ * * `sourceFieldId` The ID of the source field.
706
+ * * `destinationFieldId` The ID of the destination field.
707
+ * * `copyType` Use `same` to copy the value from a field inside the issue, or
708
+ * `parent` to copy the value from the parent issue.
709
+ *
710
+ * ##### Create Crucible review workflow function (deprecated) #####
711
+ *
712
+ * A post function that creates a Crucible review for all unreviewed code for the
713
+ * issue.
714
+ *
715
+ * {
716
+ * "type": "CreateCrucibleReviewWorkflowFunction"
717
+ * }
718
+ *
719
+ * **Note:** This post function can be included once in a transition.
720
+ *
721
+ * ##### Set issue security level based on user's project role function #####
722
+ *
723
+ * A post function that sets the issue's security level if the current user has a
724
+ * project role.
725
+ *
726
+ * {
727
+ * "type": "SetIssueSecurityFromRoleFunction",
728
+ * "configuration": {
729
+ * "projectRole": {
730
+ * "id":"10002"
731
+ * },
732
+ * "issueSecurityLevel": {
733
+ * "id":"10000"
734
+ * }
735
+ * }
736
+ * }
737
+ *
738
+ * * `projectRole` An object containing the ID of the project role.
739
+ * * `issueSecurityLevel` OPTIONAL. The object containing the ID of the security
740
+ * level. If not passed, then the security level is set to `none`.
741
+ *
742
+ * ##### Trigger a webhook function #####
743
+ *
744
+ * A post function that triggers a webhook.
745
+ *
746
+ * {
747
+ * "type": "TriggerWebhookFunction",
748
+ * "configuration": {
749
+ * "webhook": {
750
+ * "id": "1"
751
+ * }
752
+ * }
753
+ * }
754
+ *
755
+ * * `webhook` An object containing the ID of the webhook listener to trigger.
756
+ *
757
+ * ##### Update issue custom field function #####
758
+ *
759
+ * A post function that updates the content of an issue custom field.
760
+ *
761
+ * {
762
+ * "type": "UpdateIssueCustomFieldPostFunction",
763
+ * "configuration": {
764
+ * "mode": "append",
765
+ * "fieldId": "customfield_10003",
766
+ * "fieldValue": "yikes"
767
+ * }
768
+ * }
769
+ *
770
+ * * `mode` Use `replace` to override the field content with `fieldValue` or
771
+ * `append` to add `fieldValue` to the end of the field content.
772
+ * * `fieldId` The ID of the field.
773
+ * * `fieldValue` The update content.
774
+ *
775
+ * ##### Update issue field function #####
776
+ *
777
+ * A post function that updates a simple issue field.
778
+ *
779
+ * {
780
+ * "type": "UpdateIssueFieldFunction",
781
+ * "configuration": {
782
+ * "fieldId": "assignee",
783
+ * "fieldValue": "5f0c277e70b8a90025a00776"
784
+ * }
785
+ * }
786
+ *
787
+ * * `fieldId` The ID of the field. Allowed field types:
788
+ *
789
+ * * `assignee`
790
+ * * `description`
791
+ * * `environment`
792
+ * * `priority`
793
+ * * `resolution`
794
+ * * `summary`
795
+ * * `timeoriginalestimate`
796
+ * * `timeestimate`
797
+ * * `timespent`
798
+ * * `fieldValue` The update value.
799
+ * * If the `fieldId` is `assignee`, the `fieldValue` should be one of these
800
+ * values:
801
+ *
802
+ * * an account ID.
803
+ * * `automatic`.
804
+ * * a blank string, which sets the value to `unassigned`.
805
+ *
806
+ * #### Connect rules ####
807
+ *
808
+ * Connect rules are conditions, validators, and post functions of a transition
809
+ * that are registered by Connect apps. To create a rule registered by the app,
810
+ * the app must be enabled and the rule's module must exist.
811
+ *
812
+ * {
813
+ * "type": "appKey__moduleKey",
814
+ * "configuration": {
815
+ * "value":"{\"isValid\":\"true\"}"
816
+ * }
817
+ * }
818
+ *
819
+ * * `type` A Connect rule key in a form of `appKey__moduleKey`.
820
+ * * `value` The stringified JSON configuration of a Connect rule.
821
+ *
822
+ * #### Forge rules ####
823
+ *
824
+ * Forge transition rules are not yet supported.
825
+ *
826
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
827
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
828
+ *
829
+ * @deprecated
830
+ * @returns Returned if the workflow is created.
831
+ *
832
+ * example: {
833
+ * "entityId": "d7178e8d-bf6c-4c0c-9e90-758a0b965b67",
834
+ * "name": "Workflow 1"
835
+ * }
836
+ * @path {POST} /rest/api/3/workflow
837
+ * @scopes-current manage:jira-configuration
838
+ * @scopes-beta write:workflow:jira, read:workflow:jira
839
+ */
840
+ createWorkflow({ createWorkflowDetails, }: {
841
+ /**
842
+ * The workflow details.
843
+ *
844
+ * @example {
845
+ * "description": "This is a workflow used for Stories and Tasks",
846
+ * "name": "Workflow 1",
847
+ * "statuses": [
848
+ * {
849
+ * "id": "1",
850
+ * "properties": {
851
+ * "jira.issue.editable": "false"
852
+ * }
853
+ * },
854
+ * {
855
+ * "id": "2"
856
+ * },
857
+ * {
858
+ * "id": "3"
859
+ * }
860
+ * ],
861
+ * "transitions": [
862
+ * {
863
+ * "from": [],
864
+ * "name": "Created",
865
+ * "to": "1",
866
+ * "type": "initial"
867
+ * },
868
+ * {
869
+ * "from": [
870
+ * "1"
871
+ * ],
872
+ * "name": "In progress",
873
+ * "properties": {
874
+ * "custom-property": "custom-value"
875
+ * },
876
+ * "rules": {
877
+ * "conditions": {
878
+ * "conditions": [
879
+ * {
880
+ * "type": "RemoteOnlyCondition"
881
+ * },
882
+ * {
883
+ * "configuration": {
884
+ * "groups": [
885
+ * "developers",
886
+ * "qa-testers"
887
+ * ]
888
+ * },
889
+ * "type": "UserInAnyGroupCondition"
890
+ * }
891
+ * ],
892
+ * "operator": "AND"
893
+ * },
894
+ * "postFunctions": [
895
+ * {
896
+ * "type": "AssignToCurrentUserFunction"
897
+ * }
898
+ * ]
899
+ * },
900
+ * "screen": {
901
+ * "id": "10001"
902
+ * },
903
+ * "to": "2",
904
+ * "type": "directed"
905
+ * },
906
+ * {
907
+ * "name": "Completed",
908
+ * "rules": {
909
+ * "postFunctions": [
910
+ * {
911
+ * "configuration": {
912
+ * "fieldId": "assignee"
913
+ * },
914
+ * "type": "ClearFieldValuePostFunction"
915
+ * }
916
+ * ],
917
+ * "validators": [
918
+ * {
919
+ * "configuration": {
920
+ * "parentStatuses": [
921
+ * {
922
+ * "id": "3"
923
+ * }
924
+ * ]
925
+ * },
926
+ * "type": "ParentStatusValidator"
927
+ * },
928
+ * {
929
+ * "configuration": {
930
+ * "permissionKey": "ADMINISTER_PROJECTS"
931
+ * },
932
+ * "type": "PermissionValidator"
933
+ * }
934
+ * ]
935
+ * },
936
+ * "to": "3",
937
+ * "type": "global"
938
+ * }
939
+ * ]
940
+ * }
941
+ */
942
+ createWorkflowDetails: CreateWorkflowDetails;
943
+ }): Promise<WorkflowIds>;
944
+ /**
945
+ * Create workflows and related statuses.
946
+ *
947
+ * **[Permissions](#permissions) required:**
948
+ *
949
+ * * *Administer Jira* project permission to create all, including
950
+ * global-scoped, workflows
951
+ * * *Administer projects* project permissions to create project-scoped workflows
952
+ *
953
+ * @returns Returned if the request is successful.
954
+ *
955
+ * example: {
956
+ * "statuses": [
957
+ * {
958
+ * "description": "",
959
+ * "id": "10001",
960
+ * "name": "To Do",
961
+ * "scope": {
962
+ * "type": "GLOBAL"
963
+ * },
964
+ * "statusCategory": "TODO",
965
+ * "statusReference": "10001",
966
+ * "usages": []
967
+ * },
968
+ * {
969
+ * "description": "",
970
+ * "id": "10002",
971
+ * "name": "In Progress",
972
+ * "scope": {
973
+ * "type": "GLOBAL"
974
+ * },
975
+ * "statusCategory": "IN_PROGRESS",
976
+ * "statusReference": "10002",
977
+ * "usages": []
978
+ * },
979
+ * {
980
+ * "description": "",
981
+ * "id": "10003",
982
+ * "name": "Done",
983
+ * "scope": {
984
+ * "type": "GLOBAL"
985
+ * },
986
+ * "statusCategory": "DONE",
987
+ * "statusReference": "10003",
988
+ * "usages": []
989
+ * }
990
+ * ],
991
+ * "workflows": [
992
+ * {
993
+ * "description": "",
994
+ * "id": "b9ff2384-d3b6-4d4e-9509-3ee19f607168",
995
+ * "isEditable": true,
996
+ * "name": "Software workflow 1",
997
+ * "scope": {
998
+ * "type": "GLOBAL"
999
+ * },
1000
+ * "startPointLayout": {
1001
+ * "x": -100.00030899047852,
1002
+ * "y": -153.00020599365234
1003
+ * },
1004
+ * "statuses": [
1005
+ * {
1006
+ * "deprecated": false,
1007
+ * "layout": {
1008
+ * "x": 114.99993896484375,
1009
+ * "y": -16
1010
+ * },
1011
+ * "properties": {},
1012
+ * "statusReference": "10001"
1013
+ * },
1014
+ * {
1015
+ * "deprecated": false,
1016
+ * "layout": {
1017
+ * "x": 317.0000915527344,
1018
+ * "y": -16
1019
+ * },
1020
+ * "properties": {},
1021
+ * "statusReference": "10002"
1022
+ * },
1023
+ * {
1024
+ * "deprecated": false,
1025
+ * "layout": {
1026
+ * "x": 508.000244140625,
1027
+ * "y": -16
1028
+ * },
1029
+ * "properties": {},
1030
+ * "statusReference": "10003"
1031
+ * }
1032
+ * ],
1033
+ * "transitions": [
1034
+ * {
1035
+ * "actions": [],
1036
+ * "description": "",
1037
+ * "from": [],
1038
+ * "id": "31",
1039
+ * "name": "Done",
1040
+ * "properties": {},
1041
+ * "to": {
1042
+ * "statusReference": "10003"
1043
+ * },
1044
+ * "triggers": [],
1045
+ * "type": "GLOBAL",
1046
+ * "validators": []
1047
+ * },
1048
+ * {
1049
+ * "actions": [],
1050
+ * "description": "",
1051
+ * "from": [],
1052
+ * "id": "11",
1053
+ * "name": "To Do",
1054
+ * "properties": {},
1055
+ * "to": {
1056
+ * "statusReference": "10001"
1057
+ * },
1058
+ * "triggers": [],
1059
+ * "type": "GLOBAL",
1060
+ * "validators": []
1061
+ * },
1062
+ * {
1063
+ * "actions": [],
1064
+ * "description": "",
1065
+ * "from": [],
1066
+ * "id": "21",
1067
+ * "name": "In Progress",
1068
+ * "properties": {},
1069
+ * "to": {
1070
+ * "statusReference": "10002"
1071
+ * },
1072
+ * "triggers": [],
1073
+ * "type": "GLOBAL",
1074
+ * "validators": []
1075
+ * },
1076
+ * {
1077
+ * "actions": [],
1078
+ * "description": "",
1079
+ * "from": [],
1080
+ * "id": "1",
1081
+ * "name": "Create",
1082
+ * "properties": {},
1083
+ * "to": {
1084
+ * "statusReference": "10001"
1085
+ * },
1086
+ * "triggers": [],
1087
+ * "type": "INITIAL",
1088
+ * "validators": []
1089
+ * }
1090
+ * ],
1091
+ * "usages": [],
1092
+ * "version": {
1093
+ * "id": "f010ac1b-3dd3-43a3-aa66-0ee8a447f76e",
1094
+ * "versionNumber": 0
1095
+ * }
1096
+ * }
1097
+ * ]
1098
+ * }
1099
+ * @path {POST} /rest/api/3/workflows/create
1100
+ * @scopes-current manage:jira-configuration
1101
+ * @scopes-beta write:workflow:jira
1102
+ */
1103
+ createWorkflows({ workflowCreateRequest, }: {
1104
+ /**
1105
+ * @example {
1106
+ * "scope": {
1107
+ * "type": "GLOBAL"
1108
+ * },
1109
+ * "statuses": [
1110
+ * {
1111
+ * "description": "",
1112
+ * "name": "To Do",
1113
+ * "statusCategory": "TODO",
1114
+ * "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
1115
+ * },
1116
+ * {
1117
+ * "description": "",
1118
+ * "name": "In Progress",
1119
+ * "statusCategory": "IN_PROGRESS",
1120
+ * "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
1121
+ * },
1122
+ * {
1123
+ * "description": "",
1124
+ * "name": "Done",
1125
+ * "statusCategory": "DONE",
1126
+ * "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
1127
+ * }
1128
+ * ],
1129
+ * "workflows": [
1130
+ * {
1131
+ * "description": "",
1132
+ * "name": "Software workflow 1",
1133
+ * "startPointLayout": {
1134
+ * "x": -100.00030899047852,
1135
+ * "y": -153.00020599365234
1136
+ * },
1137
+ * "statuses": [
1138
+ * {
1139
+ * "layout": {
1140
+ * "x": 114.99993896484375,
1141
+ * "y": -16
1142
+ * },
1143
+ * "properties": {},
1144
+ * "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
1145
+ * },
1146
+ * {
1147
+ * "layout": {
1148
+ * "x": 317.0000915527344,
1149
+ * "y": -16
1150
+ * },
1151
+ * "properties": {},
1152
+ * "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
1153
+ * },
1154
+ * {
1155
+ * "layout": {
1156
+ * "x": 508.000244140625,
1157
+ * "y": -16
1158
+ * },
1159
+ * "properties": {},
1160
+ * "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
1161
+ * }
1162
+ * ],
1163
+ * "transitions": [
1164
+ * {
1165
+ * "actions": [],
1166
+ * "description": "",
1167
+ * "from": [],
1168
+ * "id": "1",
1169
+ * "name": "Create",
1170
+ * "properties": {},
1171
+ * "to": {
1172
+ * "statusReference":
1173
+ * "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
1174
+ * },
1175
+ * "triggers": [],
1176
+ * "type": "INITIAL",
1177
+ * "validators": []
1178
+ * },
1179
+ * {
1180
+ * "actions": [],
1181
+ * "description": "",
1182
+ * "from": [],
1183
+ * "id": "11",
1184
+ * "name": "To Do",
1185
+ * "properties": {},
1186
+ * "to": {
1187
+ * "statusReference":
1188
+ * "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
1189
+ * },
1190
+ * "triggers": [],
1191
+ * "type": "GLOBAL",
1192
+ * "validators": []
1193
+ * },
1194
+ * {
1195
+ * "actions": [],
1196
+ * "description": "",
1197
+ * "from": [],
1198
+ * "id": "21",
1199
+ * "name": "In Progress",
1200
+ * "properties": {},
1201
+ * "to": {
1202
+ * "statusReference":
1203
+ * "c7a35bf0-c127-4aa6-869f-4033730c61d8"
1204
+ * },
1205
+ * "triggers": [],
1206
+ * "type": "GLOBAL",
1207
+ * "validators": []
1208
+ * },
1209
+ * {
1210
+ * "actions": [],
1211
+ * "description": "",
1212
+ * "from": [],
1213
+ * "id": "31",
1214
+ * "name": "Done",
1215
+ * "properties": {},
1216
+ * "to": {
1217
+ * "statusReference":
1218
+ * "6b3fc04d-3316-46c5-a257-65751aeb8849"
1219
+ * },
1220
+ * "triggers": [],
1221
+ * "type": "GLOBAL",
1222
+ * "validators": []
1223
+ * }
1224
+ * ]
1225
+ * }
1226
+ * ]
1227
+ * }
1228
+ */
1229
+ workflowCreateRequest: WorkflowCreateRequest;
1230
+ }): Promise<WorkflowCreateResponse>;
1231
+ /**
1232
+ * Deletes a workflow.
1233
+ *
1234
+ * The workflow cannot be deleted if it is:
1235
+ *
1236
+ * * an active workflow.
1237
+ * * a system workflow.
1238
+ * * associated with any workflow scheme.
1239
+ * * associated with any draft workflow scheme.
1240
+ *
1241
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
1242
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
1243
+ *
1244
+ * @path {DELETE} /rest/api/3/workflow/{entityId}
1245
+ * @scopes-current manage:jira-configuration
1246
+ * @scopes-beta delete:workflow:jira
1247
+ */
1248
+ deleteInactiveWorkflow({ entityId, }: {
1249
+ /** The entity ID of the workflow. */
1250
+ entityId: string;
1251
+ }): Promise<void>;
1252
+ /**
1253
+ * Returns all workflows in Jira or a workflow. Deprecated, use [Get workflows
1254
+ * paginated](#api-rest-api-3-workflow-search-get).
1255
+ *
1256
+ * If the `workflowName` parameter is specified, the workflow is returned as an
1257
+ * object (not in an array). Otherwise, an array of workflow objects is returned.
1258
+ *
1259
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
1260
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
1261
+ *
1262
+ * @deprecated
1263
+ * @returns Returned if the request is successful.
1264
+ *
1265
+ * example: [
1266
+ * {
1267
+ * "default": true,
1268
+ * "description": "A classic Jira workflow",
1269
+ * "lastModifiedDate": "01-01-2011",
1270
+ * "lastModifiedUser": "admin",
1271
+ * "lastModifiedUserAccountId": "5b10a2844c20165700ede21g",
1272
+ * "name": "classic workflow",
1273
+ * "steps": 5
1274
+ * }
1275
+ * ]
1276
+ * @path {GET} /rest/api/3/workflow
1277
+ * @scopes-current manage:jira-configuration
1278
+ * @scopes-beta read:workflow:jira, read:project:jira, read:project-category:jira,
1279
+ * read:avatar:jira
1280
+ */
1281
+ getAllWorkflows({ workflowName, }: {
1282
+ /** The name of the workflow to be returned. Only one workflow can be specified. */
1283
+ workflowName?: string;
1284
+ }): Promise<DeprecatedWorkflow[]>;
1285
+ /**
1286
+ * Returns a [paginated](#pagination) list of published classic workflows. When
1287
+ * workflow names are specified, details of those workflows are returned.
1288
+ * Otherwise, all published classic workflows are returned.
1289
+ *
1290
+ * This operation does not return next-gen workflows.
1291
+ *
1292
+ * **[Permissions](#permissions) required:** *Administer Jira* [global
1293
+ * permission](https://confluence.atlassian.com/x/x4dKLg).
1294
+ *
1295
+ * @returns Returned if the request is successful.
1296
+ *
1297
+ * example: {
1298
+ * "isLast": false,
1299
+ * "maxResults": 1,
1300
+ * "startAt": 0,
1301
+ * "total": 5,
1302
+ * "values": [
1303
+ * {
1304
+ * "id": {
1305
+ * "name": "SCRUM Workflow",
1306
+ * "entityId": "5ed312c5-f7a6-4a78-a1f6-8ff7f307d063"
1307
+ * },
1308
+ * "description": "A workflow used for Software projects in the SCRUM
1309
+ * methodology",
1310
+ * "transitions": [
1311
+ * {
1312
+ * "id": "5",
1313
+ * "name": "In Progress",
1314
+ * "description": "Start working on the issue.",
1315
+ * "from": [
1316
+ * "10",
1317
+ * "13"
1318
+ * ],
1319
+ * "to": "14",
1320
+ * "type": "directed",
1321
+ * "screen": {
1322
+ * "id": "10000",
1323
+ * "name": "Issue screen"
1324
+ * },
1325
+ * "rules": {
1326
+ * "conditionsTree": {
1327
+ * "nodeType": "compound",
1328
+ * "operator": "AND",
1329
+ * "conditions": [
1330
+ * {
1331
+ * "nodeType": "simple",
1332
+ * "type": "PermissionCondition",
1333
+ * "configuration": {
1334
+ * "permissionKey": "WORK_ON_ISSUES"
1335
+ * }
1336
+ * },
1337
+ * {
1338
+ * "nodeType": "simple",
1339
+ * "type": "PermissionCondition",
1340
+ * "configuration": {
1341
+ * "permissionKey": "RESOLVE_ISSUES"
1342
+ * }
1343
+ * }
1344
+ * ]
1345
+ * },
1346
+ * "validators": [
1347
+ * {
1348
+ * "type": "FieldRequiredValidator",
1349
+ * "configuration": {
1350
+ * "errorMessage": "A custom error message",
1351
+ * "fields": [
1352
+ * "description",
1353
+ * "assignee"
1354
+ * ],
1355
+ * "ignoreContext": true
1356
+ * }
1357
+ * }
1358
+ * ],
1359
+ * "postFunctions": [
1360
+ * {
1361
+ * "type": "UpdateIssueStatusFunction"
1362
+ * },
1363
+ * {
1364
+ * "type": "GenerateChangeHistoryFunction"
1365
+ * },
1366
+ * {
1367
+ * "type": "FireIssueEventFunction"
1368
+ * }
1369
+ * ]
1370
+ * },
1371
+ * "properties": {
1372
+ * "jira.fieldscreen.id": 1
1373
+ * }
1374
+ * }
1375
+ * ],
1376
+ * "statuses": [
1377
+ * {
1378
+ * "id": "3",
1379
+ * "name": "In Progress",
1380
+ * "properties": {
1381
+ * "issueEditable": false,
1382
+ * "jira.issue.editable": "false"
1383
+ * }
1384
+ * }
1385
+ * ],
1386
+ * "isDefault": false,
1387
+ * "schemes": [
1388
+ * {
1389
+ * "id": "10001",
1390
+ * "name": "Test Workflow Scheme"
1391
+ * }
1392
+ * ],
1393
+ * "projects": [
1394
+ * {
1395
+ * "avatarUrls": {
1396
+ * "16x16": "secure/projectavatar?size=xsmall&pid=10000",
1397
+ * "24x24": "secure/projectavatar?size=small&pid=10000",
1398
+ * "32x32": "secure/projectavatar?size=medium&pid=10000",
1399
+ * "48x48": "secure/projectavatar?size=large&pid=10000"
1400
+ * },
1401
+ * "id": "10000",
1402
+ * "key": "EX",
1403
+ * "name": "Example",
1404
+ * "projectCategory": {
1405
+ * "description": "Project category description",
1406
+ * "id": "10000",
1407
+ * "name": "A project category"
1408
+ * },
1409
+ * "projectTypeKey": "ProjectTypeKey{key='software'}",
1410
+ * "self": "project/EX",
1411
+ * "simplified": false
1412
+ * }
1413
+ * ],
1414
+ * "hasDraftWorkflow": true,
1415
+ * "operations": {
1416
+ * "canEdit": true,
1417
+ * "canDelete": false
1418
+ * },
1419
+ * "created": "2018-12-10T16:30:15.000+0000",
1420
+ * "updated": "2018-12-11T11:45:13.000+0000"
1421
+ * }
1422
+ * ]
1423
+ * }
1424
+ * @path {GET} /rest/api/3/workflow/search
1425
+ * @scopes-current manage:jira-project
1426
+ * @scopes-beta read:group:jira, read:issue-security-level:jira, read:project-role:jira,
1427
+ * read:screen:jira, read:status:jira, read:user:jira, read:workflow:jira,
1428
+ * read:webhook:jira, read:avatar:jira, read:project-category:jira,
1429
+ * read:project:jira
1430
+ */
1431
+ getWorkflowsPaginated({ startAt, maxResults, workflowName, expand, queryString, orderBy, isActive, }: {
1432
+ /** The index of the first item to return in a page of results (page offset). */
1433
+ startAt?: number;
1434
+ /** The maximum number of items to return per page. */
1435
+ maxResults?: number;
1436
+ /**
1437
+ * The name of a workflow to return. To include multiple workflows, provide an
1438
+ * ampersand-separated list. For example, `workflowName=name1&workflowName=name2`.
1439
+ */
1440
+ workflowName?: string[];
1441
+ /**
1442
+ * Use [expand](#expansion) to include additional information in the response.
1443
+ * This parameter accepts a comma-separated list. Expand options include:
1444
+ *
1445
+ * * `transitions` For each workflow, returns information about the transitions
1446
+ * inside the workflow.
1447
+ * * `transitions.rules` For each workflow transition, returns information about
1448
+ * its rules. Transitions are included automatically if this expand is requested.
1449
+ * * `transitions.properties` For each workflow transition, returns information
1450
+ * about its properties. Transitions are included automatically if this expand is
1451
+ * requested.
1452
+ * * `statuses` For each workflow, returns information about the statuses inside
1453
+ * the workflow.
1454
+ * * `statuses.properties` For each workflow status, returns information about
1455
+ * its properties. Statuses are included automatically if this expand is requested.
1456
+ * * `default` For each workflow, returns information about whether this is the
1457
+ * default workflow.
1458
+ * * `schemes` For each workflow, returns information about the workflow schemes
1459
+ * the workflow is assigned to.
1460
+ * * `projects` For each workflow, returns information about the projects the
1461
+ * workflow is assigned to, through workflow schemes.
1462
+ * * `hasDraftWorkflow` For each workflow, returns information about whether the
1463
+ * workflow has a draft version.
1464
+ * * `operations` For each workflow, returns information about the actions that
1465
+ * can be undertaken on the workflow.
1466
+ */
1467
+ expand?: string;
1468
+ /** String used to perform a case-insensitive partial match with workflow name. */
1469
+ queryString?: string;
1470
+ /**
1471
+ * [Order](#ordering) the results by a field:
1472
+ *
1473
+ * * `name` Sorts by workflow name.
1474
+ * * `created` Sorts by create time.
1475
+ * * `updated` Sorts by update time.
1476
+ */
1477
+ orderBy?: "name" | "-name" | "+name" | "created" | "-created" | "+created" | "updated" | "+updated" | "-updated";
1478
+ /** Filters active and inactive workflows. */
1479
+ isActive?: boolean;
1480
+ }): Promise<PageBeanWorkflow>;
1481
+ /**
1482
+ * Returns a list of workflows and related statuses by providing workflow names,
1483
+ * workflow IDs, or project and issue types.
1484
+ *
1485
+ * **[Permissions](#permissions) required:**
1486
+ *
1487
+ * * *Administer Jira* global permission to access all, including
1488
+ * project-scoped, workflows
1489
+ * * At least one of the *Administer projects* and *View (read-only) workflow*
1490
+ * project permissions to access project-scoped workflows
1491
+ *
1492
+ * @returns Returned if the request is successful.
1493
+ *
1494
+ * example: {
1495
+ * "statuses": [
1496
+ * {
1497
+ * "description": "",
1498
+ * "id": "10001",
1499
+ * "name": "To Do",
1500
+ * "scope": {
1501
+ * "type": "GLOBAL"
1502
+ * },
1503
+ * "statusCategory": "TODO",
1504
+ * "statusReference": "10001",
1505
+ * "usages": []
1506
+ * },
1507
+ * {
1508
+ * "description": "",
1509
+ * "id": "10002",
1510
+ * "name": "In Progress",
1511
+ * "scope": {
1512
+ * "type": "GLOBAL"
1513
+ * },
1514
+ * "statusCategory": "IN_PROGRESS",
1515
+ * "statusReference": "10002",
1516
+ * "usages": []
1517
+ * },
1518
+ * {
1519
+ * "description": "",
1520
+ * "id": "10003",
1521
+ * "name": "Done",
1522
+ * "scope": {
1523
+ * "type": "GLOBAL"
1524
+ * },
1525
+ * "statusCategory": "DONE",
1526
+ * "statusReference": "10003",
1527
+ * "usages": []
1528
+ * }
1529
+ * ],
1530
+ * "workflows": [
1531
+ * {
1532
+ * "description": "",
1533
+ * "id": "b9ff2384-d3b6-4d4e-9509-3ee19f607168",
1534
+ * "isEditable": true,
1535
+ * "name": "Workflow 1",
1536
+ * "scope": {
1537
+ * "type": "GLOBAL"
1538
+ * },
1539
+ * "startPointLayout": {
1540
+ * "x": -100.00030899047852,
1541
+ * "y": -153.00020599365234
1542
+ * },
1543
+ * "statuses": [
1544
+ * {
1545
+ * "deprecated": false,
1546
+ * "layout": {
1547
+ * "x": 114.99993896484375,
1548
+ * "y": -16
1549
+ * },
1550
+ * "properties": {},
1551
+ * "statusReference": "10001"
1552
+ * },
1553
+ * {
1554
+ * "deprecated": false,
1555
+ * "layout": {
1556
+ * "x": 317.0000915527344,
1557
+ * "y": -16
1558
+ * },
1559
+ * "properties": {},
1560
+ * "statusReference": "10002"
1561
+ * },
1562
+ * {
1563
+ * "deprecated": false,
1564
+ * "layout": {
1565
+ * "x": 508.000244140625,
1566
+ * "y": -16
1567
+ * },
1568
+ * "properties": {},
1569
+ * "statusReference": "10003"
1570
+ * }
1571
+ * ],
1572
+ * "transitions": [
1573
+ * {
1574
+ * "actions": [],
1575
+ * "description": "",
1576
+ * "from": [],
1577
+ * "id": "31",
1578
+ * "name": "Done",
1579
+ * "properties": {},
1580
+ * "to": {
1581
+ * "statusReference": "10003"
1582
+ * },
1583
+ * "triggers": [],
1584
+ * "type": "GLOBAL",
1585
+ * "validators": []
1586
+ * },
1587
+ * {
1588
+ * "actions": [],
1589
+ * "description": "",
1590
+ * "from": [],
1591
+ * "id": "11",
1592
+ * "name": "To Do",
1593
+ * "properties": {},
1594
+ * "to": {
1595
+ * "statusReference": "10001"
1596
+ * },
1597
+ * "triggers": [],
1598
+ * "type": "GLOBAL",
1599
+ * "validators": []
1600
+ * },
1601
+ * {
1602
+ * "actions": [],
1603
+ * "description": "",
1604
+ * "from": [],
1605
+ * "id": "21",
1606
+ * "name": "In Progress",
1607
+ * "properties": {},
1608
+ * "to": {
1609
+ * "statusReference": "10002"
1610
+ * },
1611
+ * "triggers": [],
1612
+ * "type": "GLOBAL",
1613
+ * "validators": []
1614
+ * },
1615
+ * {
1616
+ * "actions": [],
1617
+ * "description": "",
1618
+ * "from": [],
1619
+ * "id": "1",
1620
+ * "name": "Create",
1621
+ * "properties": {},
1622
+ * "to": {
1623
+ * "statusReference": "10001"
1624
+ * },
1625
+ * "triggers": [],
1626
+ * "type": "INITIAL",
1627
+ * "validators": []
1628
+ * }
1629
+ * ],
1630
+ * "usages": [],
1631
+ * "version": {
1632
+ * "id": "f010ac1b-3dd3-43a3-aa66-0ee8a447f76e",
1633
+ * "versionNumber": 0
1634
+ * }
1635
+ * }
1636
+ * ]
1637
+ * }
1638
+ * @path {POST} /rest/api/3/workflows
1639
+ * @scopes-current manage:jira-configuration
1640
+ * @scopes-beta read:workflow:jira
1641
+ */
1642
+ readWorkflows({ expand, workflowReadRequest, }: {
1643
+ /**
1644
+ * Use [expand](#expansion) to include additional information in the response.
1645
+ * This parameter accepts a comma-separated list. Expand options include:
1646
+ *
1647
+ * * `workflows.usages` Returns the project and issue types that each workflow
1648
+ * is associated with.
1649
+ * * `statuses.usages` Returns the project and issue types that each status is
1650
+ * associated with.
1651
+ */
1652
+ expand?: string;
1653
+ /**
1654
+ * @example {
1655
+ * "projectAndIssueTypes": [],
1656
+ * "workflowIds": [],
1657
+ * "workflowNames": [
1658
+ * "Workflow 1",
1659
+ * "Workflow 2"
1660
+ * ]
1661
+ * }
1662
+ */
1663
+ workflowReadRequest: WorkflowReadRequest;
1664
+ }): Promise<WorkflowReadResponse>;
1665
+ /**
1666
+ * Update workflows and related statuses.
1667
+ *
1668
+ * **[Permissions](#permissions) required:**
1669
+ *
1670
+ * * *Administer Jira* project permission to create all, including
1671
+ * global-scoped, workflows
1672
+ * * *Administer projects* project permissions to create project-scoped workflows
1673
+ *
1674
+ * @returns Returned if the request is successful.
1675
+ *
1676
+ * example: {
1677
+ * "statuses": [
1678
+ * {
1679
+ * "description": "",
1680
+ * "id": "10001",
1681
+ * "name": "To Do",
1682
+ * "scope": {
1683
+ * "type": "GLOBAL"
1684
+ * },
1685
+ * "statusCategory": "TODO",
1686
+ * "statusReference": "10001",
1687
+ * "usages": []
1688
+ * },
1689
+ * {
1690
+ * "description": "",
1691
+ * "id": "10002",
1692
+ * "name": "In Progress",
1693
+ * "scope": {
1694
+ * "type": "GLOBAL"
1695
+ * },
1696
+ * "statusCategory": "IN_PROGRESS",
1697
+ * "statusReference": "10002",
1698
+ * "usages": []
1699
+ * },
1700
+ * {
1701
+ * "description": "",
1702
+ * "id": "10003",
1703
+ * "name": "Done",
1704
+ * "scope": {
1705
+ * "type": "GLOBAL"
1706
+ * },
1707
+ * "statusCategory": "DONE",
1708
+ * "statusReference": "10003",
1709
+ * "usages": []
1710
+ * }
1711
+ * ],
1712
+ * "taskId": "10001",
1713
+ * "workflows": [
1714
+ * {
1715
+ * "description": "",
1716
+ * "id": "b9ff2384-d3b6-4d4e-9509-3ee19f607168",
1717
+ * "isEditable": true,
1718
+ * "name": "Software workflow 1",
1719
+ * "scope": {
1720
+ * "type": "GLOBAL"
1721
+ * },
1722
+ * "startPointLayout": {
1723
+ * "x": -100.00030899047852,
1724
+ * "y": -153.00020599365234
1725
+ * },
1726
+ * "statuses": [
1727
+ * {
1728
+ * "deprecated": false,
1729
+ * "layout": {
1730
+ * "x": 114.99993896484375,
1731
+ * "y": -16
1732
+ * },
1733
+ * "properties": {},
1734
+ * "statusReference": "10001"
1735
+ * },
1736
+ * {
1737
+ * "deprecated": false,
1738
+ * "layout": {
1739
+ * "x": 317.0000915527344,
1740
+ * "y": -16
1741
+ * },
1742
+ * "properties": {},
1743
+ * "statusReference": "10002"
1744
+ * },
1745
+ * {
1746
+ * "deprecated": false,
1747
+ * "layout": {
1748
+ * "x": 508.000244140625,
1749
+ * "y": -16
1750
+ * },
1751
+ * "properties": {},
1752
+ * "statusReference": "10003"
1753
+ * }
1754
+ * ],
1755
+ * "transitions": [
1756
+ * {
1757
+ * "actions": [],
1758
+ * "description": "",
1759
+ * "from": [],
1760
+ * "id": "31",
1761
+ * "name": "Done",
1762
+ * "properties": {},
1763
+ * "to": {
1764
+ * "statusReference": "10003"
1765
+ * },
1766
+ * "triggers": [],
1767
+ * "type": "GLOBAL",
1768
+ * "validators": []
1769
+ * },
1770
+ * {
1771
+ * "actions": [],
1772
+ * "description": "",
1773
+ * "from": [],
1774
+ * "id": "11",
1775
+ * "name": "To Do",
1776
+ * "properties": {},
1777
+ * "to": {
1778
+ * "statusReference": "10001"
1779
+ * },
1780
+ * "triggers": [],
1781
+ * "type": "GLOBAL",
1782
+ * "validators": []
1783
+ * },
1784
+ * {
1785
+ * "actions": [],
1786
+ * "description": "",
1787
+ * "from": [],
1788
+ * "id": "21",
1789
+ * "name": "In Progress",
1790
+ * "properties": {},
1791
+ * "to": {
1792
+ * "statusReference": "10002"
1793
+ * },
1794
+ * "triggers": [],
1795
+ * "type": "GLOBAL",
1796
+ * "validators": []
1797
+ * },
1798
+ * {
1799
+ * "actions": [],
1800
+ * "description": "",
1801
+ * "from": [],
1802
+ * "id": "1",
1803
+ * "name": "Create",
1804
+ * "properties": {},
1805
+ * "to": {
1806
+ * "statusReference": "10001"
1807
+ * },
1808
+ * "triggers": [],
1809
+ * "type": "INITIAL",
1810
+ * "validators": []
1811
+ * }
1812
+ * ],
1813
+ * "usages": [],
1814
+ * "version": {
1815
+ * "id": "f010ac1b-3dd3-43a3-aa66-0ee8a447f76e",
1816
+ * "versionNumber": 0
1817
+ * }
1818
+ * }
1819
+ * ]
1820
+ * }
1821
+ * @path {POST} /rest/api/3/workflows/update
1822
+ * @scopes-current manage:jira-configuration
1823
+ * @scopes-beta write:workflow:jira
1824
+ */
1825
+ updateWorkflows({ expand, workflowUpdateRequest, }: {
1826
+ /**
1827
+ * Use [expand](#expansion) to include additional information in the response.
1828
+ * This parameter accepts a comma-separated list. Expand options include:
1829
+ *
1830
+ * * `workflows.usages` Returns the project and issue types that each workflow
1831
+ * is associated with.
1832
+ * * `statuses.usages` Returns the project and issue types that each status is
1833
+ * associated with.
1834
+ */
1835
+ expand?: string;
1836
+ /**
1837
+ * @example {
1838
+ * "statuses": [
1839
+ * {
1840
+ * "description": "",
1841
+ * "name": "To Do",
1842
+ * "statusCategory": "TODO",
1843
+ * "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
1844
+ * },
1845
+ * {
1846
+ * "description": "",
1847
+ * "name": "In Progress",
1848
+ * "statusCategory": "IN_PROGRESS",
1849
+ * "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
1850
+ * },
1851
+ * {
1852
+ * "description": "",
1853
+ * "name": "Done",
1854
+ * "statusCategory": "DONE",
1855
+ * "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
1856
+ * }
1857
+ * ],
1858
+ * "workflows": [
1859
+ * {
1860
+ * "defaultStatusMappings": [
1861
+ * {
1862
+ * "newStatusReference": "10011",
1863
+ * "oldStatusReference": "10010"
1864
+ * }
1865
+ * ],
1866
+ * "description": "",
1867
+ * "id": "10001",
1868
+ * "startPointLayout": {
1869
+ * "x": -100.00030899047852,
1870
+ * "y": -153.00020599365234
1871
+ * },
1872
+ * "statusMappings": [
1873
+ * {
1874
+ * "issueTypeId": "10002",
1875
+ * "projectId": "10003",
1876
+ * "statusMigrations": [
1877
+ * {
1878
+ * "newStatusReference": "10011",
1879
+ * "oldStatusReference": "10010"
1880
+ * }
1881
+ * ]
1882
+ * }
1883
+ * ],
1884
+ * "statuses": [
1885
+ * {
1886
+ * "layout": {
1887
+ * "x": 114.99993896484375,
1888
+ * "y": -16
1889
+ * },
1890
+ * "properties": {},
1891
+ * "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
1892
+ * },
1893
+ * {
1894
+ * "layout": {
1895
+ * "x": 317.0000915527344,
1896
+ * "y": -16
1897
+ * },
1898
+ * "properties": {},
1899
+ * "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
1900
+ * },
1901
+ * {
1902
+ * "layout": {
1903
+ * "x": 508.000244140625,
1904
+ * "y": -16
1905
+ * },
1906
+ * "properties": {},
1907
+ * "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
1908
+ * }
1909
+ * ],
1910
+ * "transitions": [
1911
+ * {
1912
+ * "actions": [],
1913
+ * "description": "",
1914
+ * "from": [],
1915
+ * "id": "1",
1916
+ * "name": "Create",
1917
+ * "properties": {},
1918
+ * "to": {
1919
+ * "statusReference":
1920
+ * "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
1921
+ * },
1922
+ * "triggers": [],
1923
+ * "type": "INITIAL",
1924
+ * "validators": []
1925
+ * },
1926
+ * {
1927
+ * "actions": [],
1928
+ * "description": "",
1929
+ * "from": [],
1930
+ * "id": "11",
1931
+ * "name": "To Do",
1932
+ * "properties": {},
1933
+ * "to": {
1934
+ * "statusReference":
1935
+ * "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
1936
+ * },
1937
+ * "triggers": [],
1938
+ * "type": "GLOBAL",
1939
+ * "validators": []
1940
+ * },
1941
+ * {
1942
+ * "actions": [],
1943
+ * "description": "",
1944
+ * "from": [],
1945
+ * "id": "21",
1946
+ * "name": "In Progress",
1947
+ * "properties": {},
1948
+ * "to": {
1949
+ * "statusReference":
1950
+ * "c7a35bf0-c127-4aa6-869f-4033730c61d8"
1951
+ * },
1952
+ * "triggers": [],
1953
+ * "type": "GLOBAL",
1954
+ * "validators": []
1955
+ * },
1956
+ * {
1957
+ * "actions": [],
1958
+ * "description": "",
1959
+ * "from": [],
1960
+ * "id": "31",
1961
+ * "name": "Done",
1962
+ * "properties": {},
1963
+ * "to": {
1964
+ * "statusReference":
1965
+ * "6b3fc04d-3316-46c5-a257-65751aeb8849"
1966
+ * },
1967
+ * "triggers": [],
1968
+ * "type": "GLOBAL",
1969
+ * "validators": []
1970
+ * }
1971
+ * ],
1972
+ * "version": {
1973
+ * "id": "6f6c988b-2590-4358-90c2-5f7960265592",
1974
+ * "versionNumber": 1
1975
+ * }
1976
+ * }
1977
+ * ]
1978
+ * }
1979
+ */
1980
+ workflowUpdateRequest: WorkflowUpdateRequest;
1981
+ }): Promise<WorkflowUpdateResponse>;
1982
+ /**
1983
+ * Validate the payload for bulk create workflows.
1984
+ *
1985
+ * **[Permissions](#permissions) required:**
1986
+ *
1987
+ * * *Administer Jira* project permission to create all, including
1988
+ * global-scoped, workflows
1989
+ * * *Administer projects* project permissions to create project-scoped workflows
1990
+ *
1991
+ * @returns Returned if the request is successful.
1992
+ *
1993
+ * example: {
1994
+ * "errors": [
1995
+ * {
1996
+ * "code": "NON_UNIQUE_STATUS_NAME",
1997
+ * "elementReference": {
1998
+ * "statusReference": "1f0443ff-47e4-4306-9c26-0af696059a43"
1999
+ * },
2000
+ * "level": "ERROR",
2001
+ * "message": "You must use a unique status name.",
2002
+ * "type": "STATUS"
2003
+ * }
2004
+ * ]
2005
+ * }
2006
+ * @path {POST} /rest/api/3/workflows/create/validation
2007
+ * @scopes-current manage:jira-configuration
2008
+ * @scopes-beta write:workflow:jira
2009
+ */
2010
+ validateCreateWorkflows({ workflowCreateValidateRequest, }: {
2011
+ /**
2012
+ * @example {
2013
+ * "payload": {
2014
+ * "scope": {
2015
+ * "type": "GLOBAL"
2016
+ * },
2017
+ * "statuses": [
2018
+ * {
2019
+ * "description": "",
2020
+ * "name": "To Do",
2021
+ * "statusCategory": "TODO",
2022
+ * "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
2023
+ * },
2024
+ * {
2025
+ * "description": "",
2026
+ * "name": "In Progress",
2027
+ * "statusCategory": "IN_PROGRESS",
2028
+ * "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
2029
+ * },
2030
+ * {
2031
+ * "description": "",
2032
+ * "name": "Done",
2033
+ * "statusCategory": "DONE",
2034
+ * "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
2035
+ * }
2036
+ * ],
2037
+ * "workflows": [
2038
+ * {
2039
+ * "description": "",
2040
+ * "name": "Software workflow 1",
2041
+ * "startPointLayout": {
2042
+ * "x": -100.00030899047852,
2043
+ * "y": -153.00020599365234
2044
+ * },
2045
+ * "statuses": [
2046
+ * {
2047
+ * "layout": {
2048
+ * "x": 114.99993896484375,
2049
+ * "y": -16
2050
+ * },
2051
+ * "properties": {},
2052
+ * "statusReference":
2053
+ * "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
2054
+ * },
2055
+ * {
2056
+ * "layout": {
2057
+ * "x": 317.0000915527344,
2058
+ * "y": -16
2059
+ * },
2060
+ * "properties": {},
2061
+ * "statusReference":
2062
+ * "c7a35bf0-c127-4aa6-869f-4033730c61d8"
2063
+ * },
2064
+ * {
2065
+ * "layout": {
2066
+ * "x": 508.000244140625,
2067
+ * "y": -16
2068
+ * },
2069
+ * "properties": {},
2070
+ * "statusReference":
2071
+ * "6b3fc04d-3316-46c5-a257-65751aeb8849"
2072
+ * }
2073
+ * ],
2074
+ * "transitions": [
2075
+ * {
2076
+ * "actions": [],
2077
+ * "description": "",
2078
+ * "from": [],
2079
+ * "id": "1",
2080
+ * "name": "Create",
2081
+ * "properties": {},
2082
+ * "to": {
2083
+ * "statusReference":
2084
+ * "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
2085
+ * },
2086
+ * "triggers": [],
2087
+ * "type": "INITIAL",
2088
+ * "validators": []
2089
+ * },
2090
+ * {
2091
+ * "actions": [],
2092
+ * "description": "",
2093
+ * "from": [],
2094
+ * "id": "11",
2095
+ * "name": "To Do",
2096
+ * "properties": {},
2097
+ * "to": {
2098
+ * "statusReference":
2099
+ * "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
2100
+ * },
2101
+ * "triggers": [],
2102
+ * "type": "GLOBAL",
2103
+ * "validators": []
2104
+ * },
2105
+ * {
2106
+ * "actions": [],
2107
+ * "description": "",
2108
+ * "from": [],
2109
+ * "id": "21",
2110
+ * "name": "In Progress",
2111
+ * "properties": {},
2112
+ * "to": {
2113
+ * "statusReference":
2114
+ * "c7a35bf0-c127-4aa6-869f-4033730c61d8"
2115
+ * },
2116
+ * "triggers": [],
2117
+ * "type": "GLOBAL",
2118
+ * "validators": []
2119
+ * },
2120
+ * {
2121
+ * "actions": [],
2122
+ * "description": "",
2123
+ * "from": [],
2124
+ * "id": "31",
2125
+ * "name": "Done",
2126
+ * "properties": {},
2127
+ * "to": {
2128
+ * "statusReference":
2129
+ * "6b3fc04d-3316-46c5-a257-65751aeb8849"
2130
+ * },
2131
+ * "triggers": [],
2132
+ * "type": "GLOBAL",
2133
+ * "validators": []
2134
+ * }
2135
+ * ]
2136
+ * }
2137
+ * ]
2138
+ * },
2139
+ * "validationOptions": {
2140
+ * "levels": [
2141
+ * "ERROR",
2142
+ * "WARNING"
2143
+ * ]
2144
+ * }
2145
+ * }
2146
+ */
2147
+ workflowCreateValidateRequest: WorkflowCreateValidateRequest;
2148
+ }): Promise<WorkflowValidationErrorList>;
2149
+ /**
2150
+ * Validate the payload for bulk update workflows.
2151
+ *
2152
+ * **[Permissions](#permissions) required:**
2153
+ *
2154
+ * * *Administer Jira* project permission to create all, including
2155
+ * global-scoped, workflows
2156
+ * * *Administer projects* project permissions to create project-scoped workflows
2157
+ *
2158
+ * @returns Returned if the request is successful.
2159
+ *
2160
+ * example: {
2161
+ * "errors": [
2162
+ * {
2163
+ * "code": "NON_UNIQUE_STATUS_NAME",
2164
+ * "elementReference": {
2165
+ * "statusReference": "1f0443ff-47e4-4306-9c26-0af696059a43"
2166
+ * },
2167
+ * "level": "ERROR",
2168
+ * "message": "You must use a unique status name.",
2169
+ * "type": "STATUS"
2170
+ * }
2171
+ * ]
2172
+ * }
2173
+ * @path {POST} /rest/api/3/workflows/update/validation
2174
+ * @scopes-current manage:jira-configuration
2175
+ * @scopes-beta write:workflow:jira
2176
+ */
2177
+ validateUpdateWorkflows({ workflowUpdateValidateRequestBean, }: {
2178
+ /**
2179
+ * @example {
2180
+ * "payload": {
2181
+ * "statuses": [
2182
+ * {
2183
+ * "description": "",
2184
+ * "name": "To Do",
2185
+ * "statusCategory": "TODO",
2186
+ * "statusReference": "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
2187
+ * },
2188
+ * {
2189
+ * "description": "",
2190
+ * "name": "In Progress",
2191
+ * "statusCategory": "IN_PROGRESS",
2192
+ * "statusReference": "c7a35bf0-c127-4aa6-869f-4033730c61d8"
2193
+ * },
2194
+ * {
2195
+ * "description": "",
2196
+ * "name": "Done",
2197
+ * "statusCategory": "DONE",
2198
+ * "statusReference": "6b3fc04d-3316-46c5-a257-65751aeb8849"
2199
+ * }
2200
+ * ],
2201
+ * "workflows": [
2202
+ * {
2203
+ * "defaultStatusMappings": [
2204
+ * {
2205
+ * "newStatusReference": "10011",
2206
+ * "oldStatusReference": "10010"
2207
+ * }
2208
+ * ],
2209
+ * "description": "",
2210
+ * "id": "10001",
2211
+ * "startPointLayout": {
2212
+ * "x": -100.00030899047852,
2213
+ * "y": -153.00020599365234
2214
+ * },
2215
+ * "statusMappings": [
2216
+ * {
2217
+ * "issueTypeId": "10002",
2218
+ * "projectId": "10003",
2219
+ * "statusMigrations": [
2220
+ * {
2221
+ * "newStatusReference": "10011",
2222
+ * "oldStatusReference": "10010"
2223
+ * }
2224
+ * ]
2225
+ * }
2226
+ * ],
2227
+ * "statuses": [
2228
+ * {
2229
+ * "layout": {
2230
+ * "x": 114.99993896484375,
2231
+ * "y": -16
2232
+ * },
2233
+ * "properties": {},
2234
+ * "statusReference":
2235
+ * "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
2236
+ * },
2237
+ * {
2238
+ * "layout": {
2239
+ * "x": 317.0000915527344,
2240
+ * "y": -16
2241
+ * },
2242
+ * "properties": {},
2243
+ * "statusReference":
2244
+ * "c7a35bf0-c127-4aa6-869f-4033730c61d8"
2245
+ * },
2246
+ * {
2247
+ * "layout": {
2248
+ * "x": 508.000244140625,
2249
+ * "y": -16
2250
+ * },
2251
+ * "properties": {},
2252
+ * "statusReference":
2253
+ * "6b3fc04d-3316-46c5-a257-65751aeb8849"
2254
+ * }
2255
+ * ],
2256
+ * "transitions": [
2257
+ * {
2258
+ * "actions": [],
2259
+ * "description": "",
2260
+ * "from": [],
2261
+ * "id": "1",
2262
+ * "name": "Create",
2263
+ * "properties": {},
2264
+ * "to": {
2265
+ * "statusReference":
2266
+ * "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
2267
+ * },
2268
+ * "triggers": [],
2269
+ * "type": "INITIAL",
2270
+ * "validators": []
2271
+ * },
2272
+ * {
2273
+ * "actions": [],
2274
+ * "description": "",
2275
+ * "from": [],
2276
+ * "id": "11",
2277
+ * "name": "To Do",
2278
+ * "properties": {},
2279
+ * "to": {
2280
+ * "statusReference":
2281
+ * "f0b24de5-25e7-4fab-ab94-63d81db6c0c0"
2282
+ * },
2283
+ * "triggers": [],
2284
+ * "type": "GLOBAL",
2285
+ * "validators": []
2286
+ * },
2287
+ * {
2288
+ * "actions": [],
2289
+ * "description": "",
2290
+ * "from": [],
2291
+ * "id": "21",
2292
+ * "name": "In Progress",
2293
+ * "properties": {},
2294
+ * "to": {
2295
+ * "statusReference":
2296
+ * "c7a35bf0-c127-4aa6-869f-4033730c61d8"
2297
+ * },
2298
+ * "triggers": [],
2299
+ * "type": "GLOBAL",
2300
+ * "validators": []
2301
+ * },
2302
+ * {
2303
+ * "actions": [],
2304
+ * "description": "",
2305
+ * "from": [],
2306
+ * "id": "31",
2307
+ * "name": "Done",
2308
+ * "properties": {},
2309
+ * "to": {
2310
+ * "statusReference":
2311
+ * "6b3fc04d-3316-46c5-a257-65751aeb8849"
2312
+ * },
2313
+ * "triggers": [],
2314
+ * "type": "GLOBAL",
2315
+ * "validators": []
2316
+ * }
2317
+ * ],
2318
+ * "version": {
2319
+ * "id": "6f6c988b-2590-4358-90c2-5f7960265592",
2320
+ * "versionNumber": 1
2321
+ * }
2322
+ * }
2323
+ * ]
2324
+ * },
2325
+ * "validationOptions": {
2326
+ * "levels": [
2327
+ * "ERROR",
2328
+ * "WARNING"
2329
+ * ]
2330
+ * }
2331
+ * }
2332
+ */
2333
+ workflowUpdateValidateRequestBean: WorkflowUpdateValidateRequestBean;
2334
+ }): Promise<WorkflowValidationErrorList>;
2335
+ /**
2336
+ * Get the list of workflow capabilities for a specific workflow using either the
2337
+ * workflow ID, or the project and issue type ID pair. The response includes the
2338
+ * scope of the workflow, defined as global/project-based, and a list of project
2339
+ * types that the workflow is scoped to. It also includes all rules organised into
2340
+ * their broad categories (conditions, validators, actions, triggers, screens) as
2341
+ * well as the source location (Atlassian-provided, Connect, Forge).
2342
+ *
2343
+ * **[Permissions](#permissions) required:**
2344
+ *
2345
+ * * *Administer Jira* project permission to access all, including
2346
+ * global-scoped, workflows
2347
+ * * *Administer projects* project permissions to access project-scoped workflows
2348
+ *
2349
+ * The current list of Atlassian-provided rules:
2350
+ *
2351
+ * #### Validators ####
2352
+ *
2353
+ * A validator rule that checks if a user has the required permissions to execute
2354
+ * the transition in the workflow.
2355
+ *
2356
+ * ##### Permission validator #####
2357
+ *
2358
+ * A validator rule that checks if a user has the required permissions to execute
2359
+ * the transition in the workflow.
2360
+ *
2361
+ * {
2362
+ * "ruleKey": "system:check-permission-validator",
2363
+ * "parameters": {
2364
+ * "permissionKey": "ADMINISTER_PROJECTS"
2365
+ * }
2366
+ * }
2367
+ *
2368
+ * Parameters:
2369
+ *
2370
+ * * `permissionKey` The permission required to perform the transition. Allowed
2371
+ * values: [built-in Jira
2372
+ * permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions).
2373
+ *
2374
+ * ##### Parent or child blocking validator #####
2375
+ *
2376
+ * A validator to block the child issue\\u2019s transition depending on the parent
2377
+ * issue\\u2019s status.
2378
+ *
2379
+ * {
2380
+ * "ruleKey" : "system:parent-or-child-blocking-validator"
2381
+ * "parameters" : {
2382
+ * "blocker" : "PARENT"
2383
+ * "statusIds" : "1,2,3"
2384
+ * }
2385
+ * }
2386
+ *
2387
+ * Parameters:
2388
+ *
2389
+ * * `blocker` currently only supports `PARENT`.
2390
+ * * `statusIds` a comma-separated list of status IDs.
2391
+ *
2392
+ * ##### Previous status validator #####
2393
+ *
2394
+ * A validator that checks if an issue has transitioned through specified previous
2395
+ * status(es) before allowing the current transition to occur.
2396
+ *
2397
+ * {
2398
+ * "ruleKey": "system:previous-status-validator",
2399
+ * "parameters": {
2400
+ * "previousStatusIds": "10014",
2401
+ * "mostRecentStatusOnly": "true"
2402
+ * }
2403
+ * }
2404
+ *
2405
+ * Parameters:
2406
+ *
2407
+ * * `previousStatusIds` a comma-separated list of status IDs, currently only
2408
+ * support one ID.
2409
+ * * `mostRecentStatusOnly` when `true` only considers the most recent status
2410
+ * for the condition evaluation. Allowed values: `true`, `false`.
2411
+ *
2412
+ * ##### Validate a field value #####
2413
+ *
2414
+ * A validation that ensures a specific field's value meets the defined criteria
2415
+ * before allowing an issue to transition in the workflow.
2416
+ *
2417
+ * Depending on the rule type, the result will vary:
2418
+ *
2419
+ * ###### Field required ######
2420
+ *
2421
+ * {
2422
+ * "ruleKey": "system:validate-field-value",
2423
+ * "parameters": {
2424
+ * "ruleType": "fieldRequired",
2425
+ * "fieldsRequired": "assignee",
2426
+ * "ignoreContext": "true",
2427
+ * "errorMessage": "An assignee must be set!"
2428
+ * }
2429
+ * }
2430
+ *
2431
+ * Parameters:
2432
+ *
2433
+ * * `fieldsRequired` the ID of the field that is required. For a custom field,
2434
+ * it would look like `customfield_123`.
2435
+ * * `ignoreContext` controls the impact of context settings on field
2436
+ * validation. When set to `true`, the validator doesn't check a required field if
2437
+ * its context isn't configured for the current issue. When set to `false`, the
2438
+ * validator requires a field even if its context is invalid. Allowed values:
2439
+ * `true`, `false`.
2440
+ * * `errorMessage` is the error message to display if the user does not provide
2441
+ * a value during the transition. A default error message will be shown if you
2442
+ * don't provide one (Optional).
2443
+ *
2444
+ * ###### Field changed ######
2445
+ *
2446
+ * {
2447
+ * "ruleKey": "system:validate-field-value",
2448
+ * "parameters": {
2449
+ * "ruleType": "fieldChanged",
2450
+ * "groupsExemptFromValidation": "6862ac20-8672-4f68-896d-4854f5efb79e",
2451
+ * "fieldKey": "versions",
2452
+ * "errorMessage": "Affect versions must be modified before transition"
2453
+ * }
2454
+ * }
2455
+ *
2456
+ * Parameters:
2457
+ *
2458
+ * * `groupsExemptFromValidation` a comma-separated list of group IDs to be
2459
+ * exempt from the validation.
2460
+ * * `fieldKey` the ID of the field that has changed. For a custom field, it
2461
+ * would look like `customfield_123`.
2462
+ * * `errorMessage` the error message to display if the user does not provide a
2463
+ * value during the transition. A default error message will be shown if you don't
2464
+ * provide one (Optional).
2465
+ *
2466
+ * ###### Field has a single value ######
2467
+ *
2468
+ * {
2469
+ * "ruleKey": "system:validate-field-value",
2470
+ * "parameters": {
2471
+ * "ruleType": "fieldHasSingleValue",
2472
+ * "fieldKey": "created",
2473
+ * "excludeSubtasks": "true"
2474
+ * }
2475
+ * }
2476
+ *
2477
+ * Parameters:
2478
+ *
2479
+ * * `fieldKey` the ID of the field to validate. For a custom field, it would
2480
+ * look like `customfield_123`.
2481
+ * * `excludeSubtasks` Option to exclude values copied from sub-tasks. Allowed
2482
+ * values: `true`, `false`.
2483
+ *
2484
+ * ###### Field matches regular expression ######
2485
+ *
2486
+ * {
2487
+ * "ruleKey": "system:validate-field-value",
2488
+ * "parameters": {
2489
+ * "ruleType": "fieldMatchesRegularExpression",
2490
+ * "regexp": "[0-9]{4}",
2491
+ * "fieldKey": "description"
2492
+ * }
2493
+ * }
2494
+ *
2495
+ * Parameters:
2496
+ *
2497
+ * * `regexp` the regular expression used to validate the field\\u2019s content.
2498
+ * * `fieldKey` the ID of the field to validate. For a custom field, it would
2499
+ * look like `customfield_123`.
2500
+ *
2501
+ * ###### Date field comparison ######
2502
+ *
2503
+ * {
2504
+ * "ruleKey": "system:validate-field-value",
2505
+ * "parameters": {
2506
+ * "ruleType": "dateFieldComparison",
2507
+ * "date1FieldKey": "duedate",
2508
+ * "date2FieldKey": "customfield_10054",
2509
+ * "includeTime": "true",
2510
+ * "conditionSelected": ">="
2511
+ * }
2512
+ * }
2513
+ *
2514
+ * Parameters:
2515
+ *
2516
+ * * `date1FieldKey` the ID of the first field to compare. For a custom field,
2517
+ * it would look like `customfield_123`.
2518
+ * * `date2FieldKey` the ID of the second field to compare. For a custom field,
2519
+ * it would look like `customfield_123`.
2520
+ * * `includeTime` if `true`, compares both date and time. Allowed values:
2521
+ * `true`, `false`.
2522
+ * * `conditionSelected` the condition to compare with. Allowed values: `>`,
2523
+ * `>=`, `=`, `<=`, `<`, `!=`.
2524
+ *
2525
+ * ###### Date range comparison ######
2526
+ *
2527
+ * {
2528
+ * "ruleKey": "system:validate-field-value",
2529
+ * "parameters": {
2530
+ * "ruleType": "windowDateComparison",
2531
+ * "date1FieldKey": "customfield_10009",
2532
+ * "date2FieldKey": "customfield_10054",
2533
+ * "numberOfDays": "3"
2534
+ * }
2535
+ * }
2536
+ *
2537
+ * Parameters:
2538
+ *
2539
+ * * `date1FieldKey` the ID of the first field to compare. For a custom field,
2540
+ * it would look like `customfield_123`.
2541
+ * * `date2FieldKey` the ID of the second field to compare. For a custom field,
2542
+ * it would look like `customfield_123`.
2543
+ * * `numberOfDays` maximum number of days past the reference date
2544
+ * (`date2FieldKey`) to pass validation.
2545
+ *
2546
+ * This rule is composed by aggregating the following legacy rules:
2547
+ *
2548
+ * * FieldRequiredValidator
2549
+ * * FieldChangedValidator
2550
+ * * FieldHasSingleValueValidator
2551
+ * * RegexpFieldValidator
2552
+ * * DateFieldValidator
2553
+ * * WindowsDateValidator
2554
+ *
2555
+ * ##### Proforma: Forms attached validator #####
2556
+ *
2557
+ * Validates that one or more forms are attached to the issue.
2558
+ *
2559
+ * {
2560
+ * "ruleKey" : "system:proforma-forms-attached"
2561
+ * "parameters" : {}
2562
+ * }
2563
+ *
2564
+ * ##### Proforma: Forms submitted validator #####
2565
+ *
2566
+ * Validates that all forms attached to the issue have been submitted.
2567
+ *
2568
+ * {
2569
+ * "ruleKey" : "system:proforma-forms-submitted"
2570
+ * "parameters" : {}
2571
+ * }
2572
+ *
2573
+ * #### Conditions ####
2574
+ *
2575
+ * Conditions enable workflow rules that govern whether a transition can execute.
2576
+ *
2577
+ * ##### Check field value #####
2578
+ *
2579
+ * A condition rule evaluates as true if a specific field's value meets the
2580
+ * defined criteria. This rule ensures that an issue can only transition to the
2581
+ * next step in the workflow if the field's value matches the desired condition.
2582
+ *
2583
+ * {
2584
+ * "ruleKey": "system:check-field-value",
2585
+ * "parameters": {
2586
+ * "fieldId": "description",
2587
+ * "fieldValue": "[\"Done\"]",
2588
+ * "comparator": "=",
2589
+ * "comparisonType": "STRING"
2590
+ * }
2591
+ * }
2592
+ *
2593
+ * Parameters:
2594
+ *
2595
+ * * `fieldId` The ID of the field to check the value of. For non-system fields,
2596
+ * it will look like `customfield_123`. Note: `fieldId` is used interchangeably
2597
+ * with the idea of `fieldKey` here, they refer to the same field.
2598
+ * * `fieldValue` the list of values to check against the field\\u2019s value.
2599
+ * * `comparator` The comparison logic. Allowed values: `>`, `>=`, `=`, `<=`,
2600
+ * `<`, `!=`.
2601
+ * * `comparisonType` The type of data being compared. Allowed values: `STRING`,
2602
+ * `NUMBER`, `DATE`, `DATE_WITHOUT_TIME`, `OPTIONID`.
2603
+ *
2604
+ * ##### Restrict issue transition #####
2605
+ *
2606
+ * This rule ensures that issue transitions are restricted based on user accounts,
2607
+ * roles, group memberships, and permissions, maintaining control over who can
2608
+ * transition an issue. This condition evaluates as `true` if any of the following
2609
+ * criteria is met.
2610
+ *
2611
+ * {
2612
+ * "ruleKey": "system:restrict-issue-transition",
2613
+ * "parameters": {
2614
+ * "accountIds": "allow-reporter,5e68ac137d64450d01a77fa0",
2615
+ * "roleIds": "10002,10004",
2616
+ * "groupIds": "703ff44a-7dc8-4f4b-9aa6-a65bf3574fa4",
2617
+ * "permissionKeys": "ADMINISTER_PROJECTS",
2618
+ * "groupCustomFields": "customfield_10028",
2619
+ * "allowUserCustomFields":
2620
+ * "customfield_10072,customfield_10144,customfield_10007",
2621
+ * "denyUserCustomFields": "customfield_10107"
2622
+ * }
2623
+ * }
2624
+ *
2625
+ * Parameters:
2626
+ *
2627
+ * * `accountIds` a comma-separated list of the user account IDs. It also allows
2628
+ * generic values like: `allow-assignee`, `allow-reporter`, and `accountIds` Note:
2629
+ * This is only supported in team-managed projects
2630
+ * * `roleIds` a comma-separated list of role IDs.
2631
+ * * `groupIds` a comma-separated list of group IDs.
2632
+ * * `permissionKeys` a comma-separated list of permission keys. Allowed values:
2633
+ * [built-in Jira
2634
+ * permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-permission-schemes/#built-in-permissions).
2635
+ * * `groupCustomFields` a comma-separated list of group custom field IDs.
2636
+ * * `allowUserCustomFields` a comma-separated list of user custom field IDs to
2637
+ * allow for issue transition.
2638
+ * * `denyUserCustomFields` a comma-separated list of user custom field IDs to
2639
+ * deny for issue transition.
2640
+ *
2641
+ * This rule is composed by aggregating the following legacy rules:
2642
+ *
2643
+ * * AllowOnlyAssignee
2644
+ * * AllowOnlyReporter
2645
+ * * InAnyProjectRoleCondition
2646
+ * * InProjectRoleCondition
2647
+ * * UserInAnyGroupCondition
2648
+ * * UserInGroupCondition
2649
+ * * PermissionCondtion
2650
+ * * InGroupCFCondition
2651
+ * * UserIsInCustomFieldCondition
2652
+ *
2653
+ * ##### Previous status condition #####
2654
+ *
2655
+ * A condition that evaluates based on an issue's previous status(es) and specific
2656
+ * criteria.
2657
+ *
2658
+ * {
2659
+ * "ruleKey" : "system:previous-status-condition"
2660
+ * "parameters" : {
2661
+ * "previousStatusIds" : "10004",
2662
+ * "not": "true",
2663
+ * "mostRecentStatusOnly" : "true",
2664
+ * "includeCurrentStatus": "true",
2665
+ * "ignoreLoopTransitions": "true"
2666
+ * }
2667
+ * }
2668
+ *
2669
+ * Parameters:
2670
+ *
2671
+ * * `previousStatusIds` a comma-separated list of status IDs, current only
2672
+ * support one ID.
2673
+ * * `not` indicates if the condition should be reversed. When `true` it checks
2674
+ * that the issue has not been in the selected statuses. Allowed values: `true`,
2675
+ * `false`.
2676
+ * * `mostRecentStatusOnly` when true only considers the most recent status for
2677
+ * the condition evaluation. Allowed values: `true`, `false`.
2678
+ * * `includeCurrentStatus` includes the current status when evaluating if the
2679
+ * issue has been through the selected statuses. Allowed values: `true`, `false`.
2680
+ * * `ignoreLoopTransitions` ignore loop transitions. Allowed values: `true`,
2681
+ * `false`.
2682
+ *
2683
+ * ##### Parent or child blocking condition #####
2684
+ *
2685
+ * A condition to block the parent\\u2019s issue transition depending on the
2686
+ * child\\u2019s issue status.
2687
+ *
2688
+ * {
2689
+ * "ruleKey" : "system:parent-or-child-blocking-condition"
2690
+ * "parameters" : {
2691
+ * "blocker" : "CHILD",
2692
+ * "statusIds" : "1,2,3"
2693
+ * }
2694
+ * }
2695
+ *
2696
+ * Parameters:
2697
+ *
2698
+ * * `blocker` currently only supports `CHILD`.
2699
+ * * `statusIds` a comma-separated list of status IDs.
2700
+ *
2701
+ * ##### Separation of duties #####
2702
+ *
2703
+ * A condition preventing the user from performing, if the user has already
2704
+ * performed a transition on the issue.
2705
+ *
2706
+ * {
2707
+ * "ruleKey": "system:separation-of-duties",
2708
+ * "parameters": {
2709
+ * "fromStatusId": "10161",
2710
+ * "toStatusId": "10160"
2711
+ * }
2712
+ * }
2713
+ *
2714
+ * Parameters:
2715
+ *
2716
+ * * `fromStatusId` represents the status ID from which the issue is
2717
+ * transitioning. It ensures that the user performing the current transition has
2718
+ * not performed any actions when the issue was in the specified status.
2719
+ * * `toStatusId` represents the status ID to which the issue is transitioning.
2720
+ * It ensures that the user performing the current transition is not the same user
2721
+ * who has previously transitioned the issue.
2722
+ *
2723
+ * ##### Restrict transitions #####
2724
+ *
2725
+ * A condition preventing all users from transitioning the issue can also
2726
+ * optionally include APIs as well.
2727
+ *
2728
+ * {
2729
+ * "ruleKey": "system:restrict-from-all-users",
2730
+ * "parameters": {
2731
+ * "restrictMode": "users"
2732
+ * }
2733
+ * }
2734
+ *
2735
+ * Parameters:
2736
+ *
2737
+ * * `restrictMode` restricts the issue transition including/excluding APIs.
2738
+ * Allowed values: `"users"`, `"usersAndAPI"`.
2739
+ *
2740
+ * ##### Jira Service Management block until approved #####
2741
+ *
2742
+ * Block an issue transition until approval. Note: This is only supported in
2743
+ * team-managed projects.
2744
+ *
2745
+ * {
2746
+ * "ruleKey": "system:jsd-approvals-block-until-approved",
2747
+ * "parameters": {
2748
+ * "approvalConfigurationJson": "{"statusExternalUuid...}"
2749
+ * }
2750
+ * }
2751
+ *
2752
+ * Parameters:
2753
+ *
2754
+ * * `approvalConfigurationJson` a stringified JSON holding the Jira Service
2755
+ * Management approval configuration.
2756
+ *
2757
+ * ##### Jira Service Management block until rejected #####
2758
+ *
2759
+ * Block an issue transition until rejected. Note: This is only supported in
2760
+ * team-managed projects.
2761
+ *
2762
+ * {
2763
+ * "ruleKey": "system:jsd-approvals-block-until-rejected",
2764
+ * "parameters": {
2765
+ * "approvalConfigurationJson": "{"statusExternalUuid...}"
2766
+ * }
2767
+ * }
2768
+ *
2769
+ * Parameters:
2770
+ *
2771
+ * * `approvalConfigurationJson` a stringified JSON holding the Jira Service
2772
+ * Management approval configuration.
2773
+ *
2774
+ * ##### Block in progress approval #####
2775
+ *
2776
+ * Condition to block issue transition if there is pending approval. Note: This is
2777
+ * only supported in company-managed projects.
2778
+ *
2779
+ * {
2780
+ * "ruleKey": "system:block-in-progress-approval",
2781
+ * "parameters": {}
2782
+ * }
2783
+ *
2784
+ * #### Post functions ####
2785
+ *
2786
+ * Post functions carry out any additional processing required after a workflow
2787
+ * transition is executed.
2788
+ *
2789
+ * ##### Change assignee #####
2790
+ *
2791
+ * A post function rule that changes the assignee of an issue after a transition.
2792
+ *
2793
+ * {
2794
+ * "ruleKey": "system:change-assignee",
2795
+ * "parameters": {
2796
+ * "type": "to-selected-user",
2797
+ * "accountId": "example-account-id"
2798
+ * }
2799
+ * }
2800
+ *
2801
+ * Parameters:
2802
+ *
2803
+ * * `type` the parameter used to determine the new assignee. Allowed values:
2804
+ * `to-selected-user`, `to-unassigned`, `to-current-user`, `to-current-user`,
2805
+ * `to-default-user`, `to-default-user`
2806
+ * * `accountId` the account ID of the user to assign the issue to. This
2807
+ * parameter is required only when the type is `"to-selected-user"`.
2808
+ *
2809
+ * ##### Copy field value #####
2810
+ *
2811
+ * A post function that automates the process of copying values between fields
2812
+ * during a specific transition, ensuring data consistency and reducing manual
2813
+ * effort.
2814
+ *
2815
+ * {
2816
+ * "ruleKey": "system:copy-value-from-other-field",
2817
+ * "parameters": {
2818
+ * "sourceFieldKey": "description",
2819
+ * "targetFieldKey": "components",
2820
+ * "issueSource": "SAME"
2821
+ * }
2822
+ * }
2823
+ *
2824
+ * Parameters:
2825
+ *
2826
+ * * `sourceFieldKey` the field key to copy from. For a custom field, it would
2827
+ * look like `customfield_123`
2828
+ * * `targetFieldKey` the field key to copy to. For a custom field, it would
2829
+ * look like `customfield_123`
2830
+ * * `issueSource` `SAME` or `PARENT`. Defaults to `SAME` if no value is
2831
+ * provided.
2832
+ *
2833
+ * ##### Update field #####
2834
+ *
2835
+ * A post function that updates or appends a specific field with the given value.
2836
+ *
2837
+ * {
2838
+ * "ruleKey": "system:update-field",
2839
+ * "parameters": {
2840
+ * "field": "customfield_10056",
2841
+ * "value": "asdf",
2842
+ * "mode": "append"
2843
+ * }
2844
+ * }
2845
+ *
2846
+ * Parameters:
2847
+ *
2848
+ * * `field` the ID of the field to update. For a custom field, it would look
2849
+ * like `customfield_123`
2850
+ * * `value` the value to update the field with.
2851
+ * * `mode` `append` or `replace`. Determines if a value will be appended to the
2852
+ * current value, or if the current value will be replaced.
2853
+ *
2854
+ * ##### Trigger webhook #####
2855
+ *
2856
+ * A post function that automatically triggers a predefined webhook when a
2857
+ * transition occurs in the workflow.
2858
+ *
2859
+ * {
2860
+ * "ruleKey": "system:trigger-webhook",
2861
+ * "parameters": {
2862
+ * "webhookId": "1"
2863
+ * }
2864
+ * }
2865
+ *
2866
+ * Parameters:
2867
+ *
2868
+ * * `webhookId` the ID of the webhook.
2869
+ *
2870
+ * #### Screen ####
2871
+ *
2872
+ * ##### Remind people to update fields #####
2873
+ *
2874
+ * A screen rule that prompts users to update a specific field when they interact
2875
+ * with an issue screen during a transition. This rule is useful for ensuring that
2876
+ * users provide or modify necessary information before moving an issue to the
2877
+ * next step in the workflow.
2878
+ *
2879
+ * {
2880
+ * "ruleKey": "system:remind-people-to-update-fields",
2881
+ * "params": {
2882
+ * "remindingFieldIds": "assignee,customfield_10025",
2883
+ * "remindingMessage": "The message",
2884
+ * "remindingAlwaysAsk": "true"
2885
+ * }
2886
+ * }
2887
+ *
2888
+ * Parameters:
2889
+ *
2890
+ * * `remindingFieldIds` a comma-separated list of field IDs. Note: `fieldId` is
2891
+ * used interchangeably with the idea of `fieldKey` here, they refer to the same
2892
+ * field.
2893
+ * * `remindingMessage` the message to display when prompting the users to
2894
+ * update the fields.
2895
+ * * `remindingAlwaysAsk` always remind to update fields. Allowed values:
2896
+ * `true`, `false`.
2897
+ *
2898
+ * ##### Shared transition screen #####
2899
+ *
2900
+ * A common screen that is shared between transitions in a workflow.
2901
+ *
2902
+ * {
2903
+ * "ruleKey": "system:transition-screen",
2904
+ * "params": {
2905
+ * "screenId": "3"
2906
+ * }
2907
+ * }
2908
+ *
2909
+ * Parameters:
2910
+ *
2911
+ * * `screenId` the ID of the screen.
2912
+ *
2913
+ * #### Connect & Forge ####
2914
+ *
2915
+ * ##### Connect rules #####
2916
+ *
2917
+ * Validator/Condition/Post function for Connect app.
2918
+ *
2919
+ * {
2920
+ * "ruleKey": "connect:expression-validator",
2921
+ * "parameters": {
2922
+ * "appKey": "com.atlassian.app",
2923
+ * "config": "",
2924
+ * "id": "90ce590f-e90c-4cd3-8281-165ce41f2ac3",
2925
+ * "disabled": "false",
2926
+ * "tag": ""
2927
+ * }
2928
+ * }
2929
+ *
2930
+ * Parameters:
2931
+ *
2932
+ * * `ruleKey` Validator: `connect:expression-validator`, Condition:
2933
+ * `connect:expression-condition`, and Post function:
2934
+ * `connect:remote-workflow-function`
2935
+ * * `appKey` the reference to the Connect app
2936
+ * * `config` a JSON payload string describing the configuration
2937
+ * * `id` the ID of the rule
2938
+ * * `disabled` determine if the Connect app is disabled. Allowed values:
2939
+ * `true`, `false`.
2940
+ * * `tag` additional tags for the Connect app
2941
+ *
2942
+ * ##### Forge rules #####
2943
+ *
2944
+ * Validator/Condition/Post function for Forge app.
2945
+ *
2946
+ * {
2947
+ * "ruleKey": "forge:expression-validator",
2948
+ * "parameters": {
2949
+ * "key":
2950
+ * "ari:cloud:ecosystem::extension/{appId}/{environmentId}/static/{moduleKey}",
2951
+ * "config": "{"searchString":"workflow validator"}",
2952
+ * "id": "a865ddf6-bb3f-4a7b-9540-c2f8b3f9f6c2"
2953
+ * }
2954
+ * }
2955
+ *
2956
+ * Parameters:
2957
+ *
2958
+ * * `ruleKey` Validator: `forge:expression-validator`, Condition:
2959
+ * `forge:expression-condition`, and Post function: `forge:workflow-post-function`
2960
+ * * `key` the identifier for the Forge app
2961
+ * * `config` the persistent stringified JSON configuration for the Forge rule
2962
+ * * `id` the ID of the Forge rule
2963
+ *
2964
+ * @returns Returned if the request is successful.
2965
+ *
2966
+ * example: {
2967
+ * "connectRules": [
2968
+ * {
2969
+ * "addonKey": "com.atlassian.jira.refapp",
2970
+ * "createUrl": "/validators/jira-expression/create?id={validator.id}",
2971
+ * "description": "Validates if the given Jira expression is true.",
2972
+ * "editUrl": "/validators/jira-expression/edit?id={validator.id}",
2973
+ * "moduleKey": "jiraExpressionValidator",
2974
+ * "name": "Jira expression validator (by APPNAME)",
2975
+ * "ruleKey": "connect:expression-validator",
2976
+ * "ruleType": "Validator",
2977
+ * "viewUrl": "/validators/jira-expression/view?id={validator.id}"
2978
+ * }
2979
+ * ],
2980
+ * "editorScope": "GLOBAL",
2981
+ * "forgeRules": [
2982
+ * {
2983
+ * "description": "A Jira workflow validator example.",
2984
+ * "id":
2985
+ * "ari:cloud:ecosystem::extension/9df6d15f-1bbe-443e-be08-150309e8dbb0/f6a3bed3-737f-4e7a-8942-130df302b749/static/workflow-validator-example-workflow-validator",
2986
+ * "name": "workflow-validator",
2987
+ * "ruleKey": "forge:expression-validator",
2988
+ * "ruleType": "Validator"
2989
+ * }
2990
+ * ],
2991
+ * "projectTypes": [
2992
+ * "software",
2993
+ * "business"
2994
+ * ],
2995
+ * "systemRules": [
2996
+ * {
2997
+ * "description": "Automatically assign a request to someone after moving
2998
+ * the request using a particular transition.",
2999
+ * "incompatibleRuleKeys": [],
3000
+ * "isAvailableForInitialTransition": true,
3001
+ * "isVisible": true,
3002
+ * "name": "Assign a request",
3003
+ * "ruleKey": "system:change-assignee",
3004
+ * "ruleType": "Function"
3005
+ * }
3006
+ * ],
3007
+ * "triggerRules": [
3008
+ * {
3009
+ * "availableTypes": [
3010
+ * {
3011
+ * "description": "Automatically transitions the issue when a related
3012
+ * branch is created in a connected repository",
3013
+ * "name": "Branch created",
3014
+ * "type":
3015
+ * "com.atlassian.jira.plugins.jira-development-integration-plugin:branch-created-trigger"
3016
+ * }
3017
+ * ],
3018
+ * "ruleKey": "system:development-triggers"
3019
+ * }
3020
+ * ]
3021
+ * }
3022
+ * @path {GET} /rest/api/3/workflows/capabilities
3023
+ * @scopes-current manage:jira-configuration
3024
+ * @scopes-beta read:workflow:jira
3025
+ */
3026
+ workflowCapabilities({ workflowId, projectId, issueTypeId, }: {
3027
+ workflowId?: string;
3028
+ projectId?: string;
3029
+ issueTypeId?: string;
3030
+ }): Promise<WorkflowCapabilities>;
3031
+ static initialize(): void;
3032
+ }