@itentialopensource/adapter-jira 1.7.2 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/.eslintignore +1 -0
  2. package/AUTH.md +39 -0
  3. package/BROKER.md +199 -0
  4. package/CALLS.md +7365 -0
  5. package/CHANGELOG.md +24 -0
  6. package/CODE_OF_CONDUCT.md +12 -17
  7. package/CONTRIBUTING.md +88 -74
  8. package/ENHANCE.md +69 -0
  9. package/PROPERTIES.md +641 -0
  10. package/README.md +228 -420
  11. package/SUMMARY.md +9 -0
  12. package/SYSTEMINFO.md +11 -0
  13. package/TROUBLESHOOT.md +47 -0
  14. package/adapter.js +18753 -4899
  15. package/adapterBase.js +1274 -236
  16. package/entities/.generic/action.json +214 -0
  17. package/entities/.generic/schema.json +28 -0
  18. package/entities/Avatars/action.json +63 -0
  19. package/entities/Avatars/schema.json +4 -1
  20. package/entities/Dashboards/action.json +80 -0
  21. package/entities/Dashboards/mockdatafiles/copyDashboard-default.json +13 -0
  22. package/entities/Dashboards/mockdatafiles/createDashboard-default.json +13 -0
  23. package/entities/Dashboards/mockdatafiles/updateDashboard-default.json +13 -0
  24. package/entities/Dashboards/schema.json +5 -1
  25. package/entities/Groups/action.json +21 -0
  26. package/entities/Groups/mockdatafiles/bulkGetGroups-default.json +16 -0
  27. package/entities/Groups/schema.json +2 -1
  28. package/entities/InstanceInformation/action.json +25 -0
  29. package/entities/InstanceInformation/mockdatafiles/getLicense-default.json +20 -0
  30. package/entities/InstanceInformation/schema.json +19 -0
  31. package/entities/IssueCustomFieldConfigurationApps/action.json +45 -0
  32. package/entities/IssueCustomFieldConfigurationApps/mockdatafiles/getCustomFieldConfiguration-default.json +34 -0
  33. package/entities/IssueCustomFieldConfigurationApps/schema.json +20 -0
  34. package/entities/IssueCustomFieldContexts/action.json +268 -0
  35. package/entities/IssueCustomFieldContexts/mockdatafiles/createCustomFieldContext-default.json +9 -0
  36. package/entities/IssueCustomFieldContexts/mockdatafiles/getContextsForField-default.json +22 -0
  37. package/entities/IssueCustomFieldContexts/mockdatafiles/getCustomFieldContextsForProjectsAndIssueTypes-default.json +23 -0
  38. package/entities/IssueCustomFieldContexts/mockdatafiles/getDefaultValues-default.json +22 -0
  39. package/entities/IssueCustomFieldContexts/mockdatafiles/getIssueTypeMappingsForContexts-default.json +20 -0
  40. package/entities/IssueCustomFieldContexts/mockdatafiles/getProjectContextMapping-default.json +16 -0
  41. package/entities/IssueCustomFieldContexts/schema.json +31 -0
  42. package/entities/IssueCustomFieldOptions/action.json +105 -0
  43. package/entities/IssueCustomFieldOptions/mockdatafiles/createCustomFieldOption-default.json +20 -0
  44. package/entities/IssueCustomFieldOptions/mockdatafiles/getOptionsForContext-default.json +26 -0
  45. package/entities/IssueCustomFieldOptions/mockdatafiles/updateCustomFieldOption-default.json +19 -0
  46. package/entities/IssueCustomFieldOptions/schema.json +23 -0
  47. package/entities/IssueCustomFieldValuesApps/action.json +44 -0
  48. package/entities/IssueCustomFieldValuesApps/schema.json +20 -0
  49. package/entities/IssueFieldConfigurations/action.json +309 -0
  50. package/entities/IssueFieldConfigurations/mockdatafiles/createFieldConfiguration-default.json +5 -0
  51. package/entities/IssueFieldConfigurations/mockdatafiles/createFieldConfigurationScheme-default.json +5 -0
  52. package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurationSchemes-default.json +23 -0
  53. package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurations-default.json +19 -0
  54. package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationItems-default.json +19 -0
  55. package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationSchemeMappings-default.json +33 -0
  56. package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationSchemeProjectMapping-default.json +26 -0
  57. package/entities/IssueFieldConfigurations/schema.json +33 -0
  58. package/entities/IssueTypeSchemes/action.json +207 -0
  59. package/entities/IssueTypeSchemes/mockdatafiles/createIssueTypeScheme-default.json +3 -0
  60. package/entities/IssueTypeSchemes/mockdatafiles/getAllIssueTypeSchemes-default.json +26 -0
  61. package/entities/IssueTypeSchemes/mockdatafiles/getIssueTypeSchemeForProjects-default.json +44 -0
  62. package/entities/IssueTypeSchemes/mockdatafiles/getIssueTypeSchemesMapping-default.json +24 -0
  63. package/entities/IssueTypeSchemes/schema.json +28 -0
  64. package/entities/IssueTypeScreenSchemes/action.json +228 -0
  65. package/entities/IssueTypeScreenSchemes/mockdatafiles/createIssueTypeScreenScheme-default.json +3 -0
  66. package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemeMappings-default.json +28 -0
  67. package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemeProjectAssociations-default.json +19 -0
  68. package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemes-default.json +18 -0
  69. package/entities/IssueTypeScreenSchemes/mockdatafiles/getProjectsForIssueTypeScreenScheme-default.json +27 -0
  70. package/entities/IssueTypeScreenSchemes/schema.json +29 -0
  71. package/entities/Issueattachments/action.json +42 -0
  72. package/entities/Issueattachments/schema.json +3 -1
  73. package/entities/Issuefields/action.json +122 -0
  74. package/entities/Issuefields/mockdatafiles/getContextsForFieldDeprecated-default.json +12 -0
  75. package/entities/Issuefields/mockdatafiles/getFieldsPaginated-default.json +46 -0
  76. package/entities/Issuefields/schema.json +7 -1
  77. package/entities/Issueproperties/action.json +40 -0
  78. package/entities/Issueproperties/schema.json +3 -1
  79. package/entities/Issues/action.json +45 -0
  80. package/entities/Issues/mockdatafiles/getChangeLogsByIds-default.json +65 -0
  81. package/entities/Issues/mockdatafiles/getEvents-default.json +10 -0
  82. package/entities/Issues/schema.json +20 -0
  83. package/entities/Issuesearch/action.json +20 -0
  84. package/entities/Issuesearch/mockdatafiles/matchIssues-default.json +29 -0
  85. package/entities/Issuesearch/schema.json +2 -1
  86. package/entities/Issuesecuritylevel/action.json +21 -0
  87. package/entities/Issuesecuritylevel/mockdatafiles/getIssueSecurityLevelMembers-default.json +46 -0
  88. package/entities/Issuesecuritylevel/schema.json +2 -1
  89. package/entities/Issuetypes/action.json +21 -0
  90. package/entities/Issuetypes/mockdatafiles/getIssueTypesForProject-default.json +39 -0
  91. package/entities/Issuetypes/schema.json +2 -1
  92. package/entities/Issuewatchers/action.json +20 -0
  93. package/entities/Issuewatchers/mockdatafiles/getIsWatchingIssueBulk-default.json +7 -0
  94. package/entities/Issuewatchers/schema.json +2 -1
  95. package/entities/JQL/action.json +40 -0
  96. package/entities/JQL/mockdatafiles/getAutoCompletePost-default.json +89 -0
  97. package/entities/JQL/mockdatafiles/parseJqlQueries-default.json +119 -0
  98. package/entities/JQL/schema.json +3 -1
  99. package/entities/Jiraexpressions/action.json +20 -0
  100. package/entities/Jiraexpressions/mockdatafiles/analyseExpression-default.json +47 -0
  101. package/entities/Jiraexpressions/schema.json +2 -1
  102. package/entities/Labels/action.json +25 -0
  103. package/entities/Labels/mockdatafiles/getAllLabels-default.json +10 -0
  104. package/entities/Labels/schema.json +19 -0
  105. package/entities/ProjectEmail/action.json +45 -0
  106. package/entities/ProjectEmail/mockdatafiles/getProjectEmail-default.json +6 -0
  107. package/entities/ProjectEmail/schema.json +20 -0
  108. package/entities/ProjectFeatures/action.json +45 -0
  109. package/entities/ProjectFeatures/mockdatafiles/getFeaturesForProject-default.json +24 -0
  110. package/entities/ProjectFeatures/mockdatafiles/toggleFeatureForProject-default.json +24 -0
  111. package/entities/ProjectFeatures/schema.json +20 -0
  112. package/entities/Projects/action.json +102 -0
  113. package/entities/Projects/mockdatafiles/getHierarchy-default.json +50 -0
  114. package/entities/Projects/mockdatafiles/getRecent-default.json +50 -0
  115. package/entities/Projects/mockdatafiles/restore-default.json +139 -0
  116. package/entities/Projects/schema.json +6 -1
  117. package/entities/Projecttypes/action.json +21 -0
  118. package/entities/Projecttypes/mockdatafiles/getAllAccessibleProjectTypes-default.json +16 -0
  119. package/entities/Projecttypes/schema.json +2 -1
  120. package/entities/ScreenSchemes/action.json +85 -0
  121. package/entities/ScreenSchemes/mockdatafiles/createScreenScheme-default.json +3 -0
  122. package/entities/ScreenSchemes/mockdatafiles/getScreenSchemes-default.json +28 -0
  123. package/entities/ScreenSchemes/schema.json +22 -0
  124. package/entities/Screens/action.json +81 -0
  125. package/entities/Screens/mockdatafiles/createScreen-default.json +5 -0
  126. package/entities/Screens/mockdatafiles/getScreensForField-default.json +17 -0
  127. package/entities/Screens/mockdatafiles/updateScreen-default.json +5 -0
  128. package/entities/Screens/schema.json +5 -1
  129. package/entities/Users/action.json +84 -0
  130. package/entities/Users/mockdatafiles/getAllUsers-default.json +32 -0
  131. package/entities/Users/mockdatafiles/getAllUsersDefault-default.json +32 -0
  132. package/entities/Users/mockdatafiles/getUserEmail-default.json +1 -0
  133. package/entities/Users/schema.json +5 -1
  134. package/entities/Webhooks/action.json +106 -0
  135. package/entities/Webhooks/mockdatafiles/getDynamicWebhooksForApp-default.json +40 -0
  136. package/entities/Webhooks/mockdatafiles/getFailedWebhooks-default.json +17 -0
  137. package/entities/Webhooks/mockdatafiles/refreshWebhooks-default.json +3 -0
  138. package/entities/Webhooks/mockdatafiles/registerDynamicWebhooks-default.json +15 -0
  139. package/entities/Webhooks/schema.json +23 -0
  140. package/entities/WorkflowSchemeProjectAssociations/action.json +45 -0
  141. package/entities/WorkflowSchemeProjectAssociations/mockdatafiles/getWorkflowSchemeProjectAssociations-default.json +21 -0
  142. package/entities/WorkflowSchemeProjectAssociations/schema.json +20 -0
  143. package/entities/WorkflowTransitionRules/action.json +65 -0
  144. package/entities/WorkflowTransitionRules/mockdatafiles/deleteWorkflowTransitionRuleConfigurations-default.json +34 -0
  145. package/entities/WorkflowTransitionRules/mockdatafiles/getWorkflowTransitionRuleConfigurations-default.json +56 -0
  146. package/entities/WorkflowTransitionRules/mockdatafiles/updateWorkflowTransitionRuleConfigurations-default.json +34 -0
  147. package/entities/WorkflowTransitionRules/schema.json +21 -0
  148. package/entities/Workflows/action.json +61 -0
  149. package/entities/Workflows/mockdatafiles/createWorkflow-default.json +4 -0
  150. package/entities/Workflows/mockdatafiles/getWorkflowsPaginated-default.json +140 -0
  151. package/entities/Workflows/schema.json +4 -1
  152. package/entities/Workflowschemedrafts/action.json +20 -0
  153. package/entities/Workflowschemedrafts/schema.json +2 -1
  154. package/entities/Workflowschemes/action.json +21 -0
  155. package/entities/Workflowschemes/mockdatafiles/getAllWorkflowSchemes-default.json +30 -0
  156. package/entities/Workflowschemes/schema.json +2 -1
  157. package/error.json +12 -0
  158. package/package.json +42 -18
  159. package/pronghorn.json +27769 -74
  160. package/propertiesDecorators.json +14 -0
  161. package/propertiesSchema.json +472 -4
  162. package/refs?service=git-upload-pack +0 -0
  163. package/report/adapterInfo.json +10 -0
  164. package/report/updateReport1615159462702.json +95 -0
  165. package/report/updateReport1659707107792.json +120 -0
  166. package/sampleProperties.json +103 -6
  167. package/test/integration/adapterTestBasicGet.js +85 -0
  168. package/test/integration/adapterTestConnectivity.js +93 -0
  169. package/test/integration/adapterTestIntegration.js +3633 -101
  170. package/test/unit/adapterBaseTestUnit.js +949 -0
  171. package/test/unit/adapterTestUnit.js +4766 -109
  172. package/utils/adapterInfo.js +206 -0
  173. package/utils/addAuth.js +94 -0
  174. package/utils/basicGet.js +50 -0
  175. package/utils/checkMigrate.js +63 -0
  176. package/utils/entitiesToDB.js +179 -0
  177. package/utils/findPath.js +74 -0
  178. package/utils/methodDocumentor.js +225 -0
  179. package/utils/modify.js +154 -0
  180. package/utils/packModificationScript.js +1 -1
  181. package/utils/patches2bundledDeps.js +90 -0
  182. package/utils/pre-commit.sh +5 -0
  183. package/utils/removeHooks.js +20 -0
  184. package/utils/tbScript.js +184 -0
  185. package/utils/tbUtils.js +469 -0
  186. package/utils/testRunner.js +16 -16
  187. package/utils/troubleshootingAdapter.js +190 -0
  188. package/versions.json +142 -0
  189. package/img/adapter.png +0 -0
@@ -0,0 +1,24 @@
1
+ {
2
+ "features": [
3
+ {
4
+ "projectId": 10001,
5
+ "state": "ENABLED",
6
+ "toggleLocked": true,
7
+ "feature": "jsw.classic.roadmap",
8
+ "prerequisites": [],
9
+ "localisedName": "Roadmap",
10
+ "localisedDescription": "Your roadmap is an optimized location to create and manage your epics.",
11
+ "imageUri": "https://jira.atlassian.com/s/sb53l8/b/3/ab8a7691e4738b4f147e293f0864adfd5b8d3c85/_/download/resources/com.atlassian.jira.rest:classic-project-features/simple-roadmap-feature.svg"
12
+ },
13
+ {
14
+ "projectId": 10001,
15
+ "state": "ENABLED",
16
+ "toggleLocked": true,
17
+ "feature": "jsw.classic.backlog",
18
+ "prerequisites": [],
19
+ "localisedName": "Backlog",
20
+ "localisedDescription": "Plan and prioritize work in a dedicated space. To enable and configure the backlog for each board, go to board settings.",
21
+ "imageUri": "https://jira.atlassian.com/s/sb53l8/b/3/ab8a7691e4738b4f147e293f0864adfd5b8d3c85/_/download/resources/com.atlassian.jira.rest:classic-project-features/simple-backlog-feature.svg"
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "features": [
3
+ {
4
+ "projectId": 10001,
5
+ "state": "ENABLED",
6
+ "toggleLocked": true,
7
+ "feature": "jsw.classic.roadmap",
8
+ "prerequisites": [],
9
+ "localisedName": "Roadmap",
10
+ "localisedDescription": "Your roadmap is an optimized location to create and manage your epics.",
11
+ "imageUri": "https://jira.atlassian.com/s/sb53l8/b/3/ab8a7691e4738b4f147e293f0864adfd5b8d3c85/_/download/resources/com.atlassian.jira.rest:classic-project-features/simple-roadmap-feature.svg"
12
+ },
13
+ {
14
+ "projectId": 10001,
15
+ "state": "ENABLED",
16
+ "toggleLocked": true,
17
+ "feature": "jsw.classic.backlog",
18
+ "prerequisites": [],
19
+ "localisedName": "Backlog",
20
+ "localisedDescription": "Plan and prioritize work in a dedicated space. To enable and configure the backlog for each board, go to board settings.",
21
+ "imageUri": "https://jira.atlassian.com/s/sb53l8/b/3/ab8a7691e4738b4f147e293f0864adfd5b8d3c85/_/download/resources/com.atlassian.jira.rest:classic-project-features/simple-backlog-feature.svg"
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "getFeaturesForProject",
14
+ "toggleFeatureForProject"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -188,6 +188,108 @@
188
188
  "mockFile": "mockdatafiles/putRestapi2projectprojectIdOrKeytypenewProjectTypeKey-default.json"
189
189
  }
190
190
  ]
191
+ },
192
+ {
193
+ "name": "getRecent",
194
+ "protocol": "REST",
195
+ "method": "GET",
196
+ "entitypath": "{base_path}/{version}/project/recent?{query}",
197
+ "requestSchema": "schema.json",
198
+ "responseSchema": "schema.json",
199
+ "timeout": 0,
200
+ "sendEmpty": false,
201
+ "sendGetBody": false,
202
+ "requestDatatype": "JSON",
203
+ "responseDatatype": "JSON",
204
+ "headers": {},
205
+ "responseObjects": [
206
+ {
207
+ "type": "default",
208
+ "key": "",
209
+ "mockFile": "mockdatafiles/getRecent-default.json"
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "name": "archiveProject",
215
+ "protocol": "REST",
216
+ "method": "POST",
217
+ "entitypath": "{base_path}/{version}/project/{pathv1}/archive?{query}",
218
+ "requestSchema": "schema.json",
219
+ "responseSchema": "schema.json",
220
+ "timeout": 0,
221
+ "sendEmpty": false,
222
+ "requestDatatype": "JSON",
223
+ "responseDatatype": "JSON",
224
+ "headers": {},
225
+ "responseObjects": [
226
+ {
227
+ "type": "default",
228
+ "key": "",
229
+ "mockFile": ""
230
+ }
231
+ ]
232
+ },
233
+ {
234
+ "name": "deleteProjectAsynchronously",
235
+ "protocol": "REST",
236
+ "method": "POST",
237
+ "entitypath": "{base_path}/{version}/project/{pathv1}/delete?{query}",
238
+ "requestSchema": "schema.json",
239
+ "responseSchema": "schema.json",
240
+ "timeout": 0,
241
+ "sendEmpty": false,
242
+ "requestDatatype": "JSON",
243
+ "responseDatatype": "JSON",
244
+ "headers": {},
245
+ "responseObjects": [
246
+ {
247
+ "type": "default",
248
+ "key": "",
249
+ "mockFile": ""
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "name": "restore",
255
+ "protocol": "REST",
256
+ "method": "POST",
257
+ "entitypath": "{base_path}/{version}/project/{pathv1}/restore?{query}",
258
+ "requestSchema": "schema.json",
259
+ "responseSchema": "schema.json",
260
+ "timeout": 0,
261
+ "sendEmpty": false,
262
+ "requestDatatype": "JSON",
263
+ "responseDatatype": "JSON",
264
+ "headers": {},
265
+ "responseObjects": [
266
+ {
267
+ "type": "default",
268
+ "key": "",
269
+ "mockFile": "mockdatafiles/restore-default.json"
270
+ }
271
+ ]
272
+ },
273
+ {
274
+ "name": "getHierarchy",
275
+ "protocol": "REST",
276
+ "method": "GET",
277
+ "entitypath": "{base_path}/{version}/project/{pathv1}/hierarchy?{query}",
278
+ "requestSchema": "schema.json",
279
+ "responseSchema": "schema.json",
280
+ "timeout": 0,
281
+ "sendEmpty": false,
282
+ "sendGetBody": false,
283
+ "requestDatatype": "JSON",
284
+ "responseDatatype": "JSON",
285
+ "headers": {},
286
+ "responseObjects": [
287
+ {
288
+ "type": "default",
289
+ "key": "",
290
+ "mockFile": "mockdatafiles/getHierarchy-default.json"
291
+ }
292
+ ]
191
293
  }
192
294
  ]
193
295
  }
@@ -0,0 +1,50 @@
1
+ {
2
+ "projectId": 10030,
3
+ "hierarchy": [
4
+ {
5
+ "entityId": "02daf660-edec-49ae-b991-3738a36c8495",
6
+ "level": 0,
7
+ "name": "Base",
8
+ "issueTypes": [
9
+ {
10
+ "id": 10008,
11
+ "entityId": "aa355209-2212-4307-9de0-61d56390a685",
12
+ "name": "Story",
13
+ "avatarId": 10324
14
+ },
15
+ {
16
+ "id": 10001,
17
+ "entityId": "e04497f1-6d4b-4fc4-9c13-434f0960388f",
18
+ "name": "Bug",
19
+ "avatarId": 10324
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "entityId": "080569b3-9ff3-476b-9e13-76088d79ea19",
25
+ "level": 1,
26
+ "name": "Epic",
27
+ "issueTypes": [
28
+ {
29
+ "id": 10007,
30
+ "entityId": "c49f4995-37b1-473d-a1e7-f1aff7dac75f",
31
+ "name": "Epic",
32
+ "avatarId": 10179
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "entityId": "1c389290-25d9-42d9-9bd1-7276f7b1a14b",
38
+ "level": -1,
39
+ "name": "Subtask",
40
+ "issueTypes": [
41
+ {
42
+ "id": 10009,
43
+ "entityId": "70a62f06-b437-49f9-bc37-c290871bb011",
44
+ "name": "Subtask",
45
+ "avatarId": 10573
46
+ }
47
+ ]
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
4
+ "id": "10000",
5
+ "key": "EX",
6
+ "name": "Example",
7
+ "avatarUrls": {
8
+ "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000",
9
+ "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
10
+ "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
11
+ "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000"
12
+ },
13
+ "projectCategory": {
14
+ "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000",
15
+ "id": "10000",
16
+ "name": "FIRST",
17
+ "description": "First Project Category"
18
+ },
19
+ "simplified": false,
20
+ "style": "classic",
21
+ "insight": {
22
+ "totalIssueCount": 100,
23
+ "lastIssueUpdateTime": "2021-12-31T03:47:11.150+0000"
24
+ }
25
+ },
26
+ {
27
+ "self": "https://your-domain.atlassian.net/rest/api/3/project/ABC",
28
+ "id": "10001",
29
+ "key": "ABC",
30
+ "name": "Alphabetical",
31
+ "avatarUrls": {
32
+ "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10001",
33
+ "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10001",
34
+ "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10001",
35
+ "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10001"
36
+ },
37
+ "projectCategory": {
38
+ "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000",
39
+ "id": "10000",
40
+ "name": "FIRST",
41
+ "description": "First Project Category"
42
+ },
43
+ "simplified": false,
44
+ "style": "classic",
45
+ "insight": {
46
+ "totalIssueCount": 100,
47
+ "lastIssueUpdateTime": "2021-12-31T03:47:11.150+0000"
48
+ }
49
+ }
50
+ ]
@@ -0,0 +1,139 @@
1
+ {
2
+ "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
3
+ "id": "10000",
4
+ "key": "EX",
5
+ "description": "This project was created as an example for REST.",
6
+ "lead": {
7
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
8
+ "key": "",
9
+ "accountId": "5b10a2844c20165700ede21g",
10
+ "accountType": "atlassian",
11
+ "name": "",
12
+ "avatarUrls": {
13
+ "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
14
+ "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
15
+ "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
16
+ "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
17
+ },
18
+ "displayName": "Mia Krystof",
19
+ "active": false
20
+ },
21
+ "components": [
22
+ {
23
+ "self": "https://your-domain.atlassian.net/rest/api/3/component/10000",
24
+ "id": "10000",
25
+ "name": "Component 1",
26
+ "description": "This is a Jira component",
27
+ "lead": {
28
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
29
+ "key": "",
30
+ "accountId": "5b10a2844c20165700ede21g",
31
+ "accountType": "atlassian",
32
+ "name": "",
33
+ "avatarUrls": {
34
+ "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
35
+ "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
36
+ "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
37
+ "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
38
+ },
39
+ "displayName": "Mia Krystof",
40
+ "active": false
41
+ },
42
+ "assigneeType": "PROJECT_LEAD",
43
+ "assignee": {
44
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
45
+ "key": "",
46
+ "accountId": "5b10a2844c20165700ede21g",
47
+ "accountType": "atlassian",
48
+ "name": "",
49
+ "avatarUrls": {
50
+ "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
51
+ "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
52
+ "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
53
+ "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
54
+ },
55
+ "displayName": "Mia Krystof",
56
+ "active": false
57
+ },
58
+ "realAssigneeType": "PROJECT_LEAD",
59
+ "realAssignee": {
60
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
61
+ "key": "",
62
+ "accountId": "5b10a2844c20165700ede21g",
63
+ "accountType": "atlassian",
64
+ "name": "",
65
+ "avatarUrls": {
66
+ "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
67
+ "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
68
+ "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
69
+ "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
70
+ },
71
+ "displayName": "Mia Krystof",
72
+ "active": false
73
+ },
74
+ "isAssigneeTypeValid": false,
75
+ "project": "HSP",
76
+ "projectId": 10000
77
+ }
78
+ ],
79
+ "issueTypes": [
80
+ {
81
+ "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
82
+ "id": "3",
83
+ "description": "A task that needs to be done.",
84
+ "iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
85
+ "name": "Task",
86
+ "subtask": false,
87
+ "avatarId": 1,
88
+ "hierarchyLevel": 0
89
+ },
90
+ {
91
+ "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
92
+ "id": "1",
93
+ "description": "A problem with the software.",
94
+ "iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
95
+ "name": "Bug",
96
+ "subtask": false,
97
+ "avatarId": 10002,
98
+ "entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
99
+ "hierarchyLevel": 0,
100
+ "scope": {
101
+ "type": "PROJECT",
102
+ "project": {
103
+ "id": "10000",
104
+ "key": "KEY",
105
+ "name": "Next Gen Project"
106
+ }
107
+ }
108
+ }
109
+ ],
110
+ "url": "https://www.example.com",
111
+ "email": "from-jira@example.com",
112
+ "assigneeType": "PROJECT_LEAD",
113
+ "versions": [],
114
+ "name": "Example",
115
+ "roles": {
116
+ "Developers": "https://your-domain.atlassian.net/rest/api/3/project/EX/role/10000"
117
+ },
118
+ "avatarUrls": {
119
+ "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000",
120
+ "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
121
+ "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
122
+ "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000"
123
+ },
124
+ "projectCategory": {
125
+ "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000",
126
+ "id": "10000",
127
+ "name": "FIRST",
128
+ "description": "First Project Category"
129
+ },
130
+ "simplified": false,
131
+ "style": "classic",
132
+ "properties": {
133
+ "propertyKey": "propertyValue"
134
+ },
135
+ "insight": {
136
+ "totalIssueCount": 100,
137
+ "lastIssueUpdateTime": "2021-12-31T03:47:11.150+0000"
138
+ }
139
+ }
@@ -18,7 +18,12 @@
18
18
  "putRestapi2projectprojectIdOrKey",
19
19
  "deleteRestapi2projectprojectIdOrKey",
20
20
  "getRestapi2projectprojectIdOrKeystatuses",
21
- "putRestapi2projectprojectIdOrKeytypenewProjectTypeKey"
21
+ "putRestapi2projectprojectIdOrKeytypenewProjectTypeKey",
22
+ "getRecent",
23
+ "archiveProject",
24
+ "deleteProjectAsynchronously",
25
+ "restore",
26
+ "getHierarchy"
22
27
  ],
23
28
  "external_name": "ph_request_type"
24
29
  }
@@ -62,6 +62,27 @@
62
62
  "mockFile": "mockdatafiles/getRestapi2projecttypeprojectTypeKeyaccessible-default.json"
63
63
  }
64
64
  ]
65
+ },
66
+ {
67
+ "name": "getAllAccessibleProjectTypes",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/project/type/accessible?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "sendGetBody": false,
76
+ "requestDatatype": "JSON",
77
+ "responseDatatype": "JSON",
78
+ "headers": {},
79
+ "responseObjects": [
80
+ {
81
+ "type": "default",
82
+ "key": "",
83
+ "mockFile": "mockdatafiles/getAllAccessibleProjectTypes-default.json"
84
+ }
85
+ ]
65
86
  }
66
87
  ]
67
88
  }
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "key": "business",
4
+ "formattedKey": "Business",
5
+ "descriptionI18nKey": "jira.project.type.business.description",
6
+ "icon": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOC4xLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZmlsbD0iIzY2NjY2NiIgZD0iTTE2LDBDNy4yLDAsMCw3LjIsMCwxNmMwLDguOCw3LjIsMTYsMTYsMTZjOC44LDAsMTYtNy4yLDE2LTE2QzMyLDcuMiwyNC44LDAsMTYsMHogTTI1LjcsMjMNCgkJYzAsMS44LTEuNCwzLjItMy4yLDMuMkg5LjJDNy41LDI2LjIsNiwyNC44LDYsMjNWOS44QzYsOCw3LjUsNi42LDkuMiw2LjZoMTMuMmMwLjIsMCwwLjQsMCwwLjcsMC4xbC0yLjgsMi44SDkuMg0KCQlDOSw5LjQsOC44LDkuNiw4LjgsOS44VjIzYzAsMC4yLDAuMiwwLjQsMC40LDAuNGgxMy4yYzAuMiwwLDAuNC0wLjIsMC40LTAuNHYtNS4zbDIuOC0yLjhWMjN6IE0xNS45LDIxLjNMMTEsMTYuNGwyLTJsMi45LDIuOQ0KCQlMMjYuNCw2LjhjMC42LDAuNywxLjIsMS41LDEuNywyLjNMMTUuOSwyMS4zeiIvPg0KPC9nPg0KPC9zdmc+",
7
+ "color": "#FFFFFF"
8
+ },
9
+ {
10
+ "key": "software",
11
+ "formattedKey": "Software",
12
+ "descriptionI18nKey": "jira.project.type.software.description",
13
+ "icon": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOC4xLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZmlsbD0iIzY2NjY2NiIgZD0iTTE2LDBDNy4yLDAsMCw3LjIsMCwxNmMwLDguOCw3LjIsMTYsMTYsMTZjOC44LDAsMTYtNy4yLDE2LTE2QzMyLDcuMiwyNC44LDAsMTYsMHogTTI1LjcsMjMNCgkJYzAsMS44LTEuNCwzLjItMy4yLDMuMkg5LjJDNy41LDI2LjIsNiwyNC44LDYsMjNWOS44QzYsOCw3LjUsNi42LDkuMiw2LjZoMTMuMmMwLjIsMCwwLjQsMCwwLjcsMC4xbC0yLjgsMi44SDkuMg0KCQlDOSw5LjQsOC44LDkuNiw4LjgsOS44VjIzYzAsMC4yLDAuMiwwLjQsMC40LDAuNGgxMy4yYzAuMiwwLDAuNC0wLjIsMC40LTAuNHYtNS4zbDIuOC0yLjhWMjN6IE0xNS45LDIxLjNMMTEsMTYuNGwyLTJsMi45LDIuOQ0KCQlMMjYuNCw2LjhjMC42LDAuNywxLjIsMS41LDEuNywyLjNMMTUuOSwyMS4zeiIvPg0KPC9nPg0KPC9zdmc+",
14
+ "color": "#AAAAAA"
15
+ }
16
+ ]
@@ -12,7 +12,8 @@
12
12
  "enum": [
13
13
  "getRestapi2projecttype",
14
14
  "getRestapi2projecttypeprojectTypeKey",
15
- "getRestapi2projecttypeprojectTypeKeyaccessible"
15
+ "getRestapi2projecttypeprojectTypeKeyaccessible",
16
+ "getAllAccessibleProjectTypes"
16
17
  ],
17
18
  "external_name": "ph_request_type"
18
19
  }
@@ -0,0 +1,85 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getScreenSchemes",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/screenscheme?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": "mockdatafiles/getScreenSchemes-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createScreenScheme",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/screenscheme?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": "mockdatafiles/createScreenScheme-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "updateScreenScheme",
46
+ "protocol": "REST",
47
+ "method": "PUT",
48
+ "entitypath": "{base_path}/{version}/screenscheme/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "deleteScreenScheme",
66
+ "protocol": "REST",
67
+ "method": "DELETE",
68
+ "entitypath": "{base_path}/{version}/screenscheme/{pathv1}?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "self": "https://your-domain.atlassian.net/rest/api/3/screenscheme?maxResults=25&startAt=0",
3
+ "maxResults": 100,
4
+ "startAt": 0,
5
+ "total": 2,
6
+ "isLast": true,
7
+ "values": [
8
+ {
9
+ "id": 10010,
10
+ "name": "Employee screen scheme",
11
+ "description": "Manage employee data",
12
+ "screens": {
13
+ "default": 10017,
14
+ "edit": 10019,
15
+ "create": 10019,
16
+ "view": 10020
17
+ }
18
+ },
19
+ {
20
+ "id": 10032,
21
+ "name": "Office screen scheme",
22
+ "description": "Manage office data",
23
+ "screens": {
24
+ "default": 10020
25
+ }
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "getScreenSchemes",
14
+ "createScreenScheme",
15
+ "updateScreenScheme",
16
+ "deleteScreenScheme"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }