@itentialopensource/adapter-jira 1.7.4 → 1.7.6

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 (183) hide show
  1. package/AUTH.md +39 -0
  2. package/BROKER.md +199 -0
  3. package/CALLS.md +9587 -0
  4. package/CHANGELOG.md +16 -0
  5. package/CODE_OF_CONDUCT.md +12 -17
  6. package/CONTRIBUTING.md +88 -74
  7. package/ENHANCE.md +69 -0
  8. package/PROPERTIES.md +641 -0
  9. package/README.md +225 -502
  10. package/SUMMARY.md +9 -0
  11. package/SYSTEMINFO.md +11 -0
  12. package/TROUBLESHOOT.md +47 -0
  13. package/adapter.js +10821 -59
  14. package/adapterBase.js +1030 -248
  15. package/entities/.generic/action.json +110 -5
  16. package/entities/.generic/schema.json +6 -1
  17. package/entities/Avatars/action.json +63 -0
  18. package/entities/Avatars/schema.json +4 -1
  19. package/entities/Dashboards/action.json +80 -0
  20. package/entities/Dashboards/mockdatafiles/copyDashboard-default.json +13 -0
  21. package/entities/Dashboards/mockdatafiles/createDashboard-default.json +13 -0
  22. package/entities/Dashboards/mockdatafiles/updateDashboard-default.json +13 -0
  23. package/entities/Dashboards/schema.json +5 -1
  24. package/entities/Groups/action.json +21 -0
  25. package/entities/Groups/mockdatafiles/bulkGetGroups-default.json +16 -0
  26. package/entities/Groups/schema.json +2 -1
  27. package/entities/InstanceInformation/action.json +25 -0
  28. package/entities/InstanceInformation/mockdatafiles/getLicense-default.json +20 -0
  29. package/entities/InstanceInformation/schema.json +19 -0
  30. package/entities/IssueCustomFieldConfigurationApps/action.json +45 -0
  31. package/entities/IssueCustomFieldConfigurationApps/mockdatafiles/getCustomFieldConfiguration-default.json +34 -0
  32. package/entities/IssueCustomFieldConfigurationApps/schema.json +20 -0
  33. package/entities/IssueCustomFieldContexts/action.json +268 -0
  34. package/entities/IssueCustomFieldContexts/mockdatafiles/createCustomFieldContext-default.json +9 -0
  35. package/entities/IssueCustomFieldContexts/mockdatafiles/getContextsForField-default.json +22 -0
  36. package/entities/IssueCustomFieldContexts/mockdatafiles/getCustomFieldContextsForProjectsAndIssueTypes-default.json +23 -0
  37. package/entities/IssueCustomFieldContexts/mockdatafiles/getDefaultValues-default.json +22 -0
  38. package/entities/IssueCustomFieldContexts/mockdatafiles/getIssueTypeMappingsForContexts-default.json +20 -0
  39. package/entities/IssueCustomFieldContexts/mockdatafiles/getProjectContextMapping-default.json +16 -0
  40. package/entities/IssueCustomFieldContexts/schema.json +31 -0
  41. package/entities/IssueCustomFieldOptions/action.json +105 -0
  42. package/entities/IssueCustomFieldOptions/mockdatafiles/createCustomFieldOption-default.json +20 -0
  43. package/entities/IssueCustomFieldOptions/mockdatafiles/getOptionsForContext-default.json +26 -0
  44. package/entities/IssueCustomFieldOptions/mockdatafiles/updateCustomFieldOption-default.json +19 -0
  45. package/entities/IssueCustomFieldOptions/schema.json +23 -0
  46. package/entities/IssueCustomFieldValuesApps/action.json +44 -0
  47. package/entities/IssueCustomFieldValuesApps/schema.json +20 -0
  48. package/entities/IssueFieldConfigurations/action.json +309 -0
  49. package/entities/IssueFieldConfigurations/mockdatafiles/createFieldConfiguration-default.json +5 -0
  50. package/entities/IssueFieldConfigurations/mockdatafiles/createFieldConfigurationScheme-default.json +5 -0
  51. package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurationSchemes-default.json +23 -0
  52. package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurations-default.json +19 -0
  53. package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationItems-default.json +19 -0
  54. package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationSchemeMappings-default.json +33 -0
  55. package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationSchemeProjectMapping-default.json +26 -0
  56. package/entities/IssueFieldConfigurations/schema.json +33 -0
  57. package/entities/IssueTypeSchemes/action.json +207 -0
  58. package/entities/IssueTypeSchemes/mockdatafiles/createIssueTypeScheme-default.json +3 -0
  59. package/entities/IssueTypeSchemes/mockdatafiles/getAllIssueTypeSchemes-default.json +26 -0
  60. package/entities/IssueTypeSchemes/mockdatafiles/getIssueTypeSchemeForProjects-default.json +44 -0
  61. package/entities/IssueTypeSchemes/mockdatafiles/getIssueTypeSchemesMapping-default.json +24 -0
  62. package/entities/IssueTypeSchemes/schema.json +28 -0
  63. package/entities/IssueTypeScreenSchemes/action.json +228 -0
  64. package/entities/IssueTypeScreenSchemes/mockdatafiles/createIssueTypeScreenScheme-default.json +3 -0
  65. package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemeMappings-default.json +28 -0
  66. package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemeProjectAssociations-default.json +19 -0
  67. package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemes-default.json +18 -0
  68. package/entities/IssueTypeScreenSchemes/mockdatafiles/getProjectsForIssueTypeScreenScheme-default.json +27 -0
  69. package/entities/IssueTypeScreenSchemes/schema.json +29 -0
  70. package/entities/Issueattachments/action.json +42 -0
  71. package/entities/Issueattachments/schema.json +3 -1
  72. package/entities/Issuefields/action.json +122 -0
  73. package/entities/Issuefields/mockdatafiles/getContextsForFieldDeprecated-default.json +12 -0
  74. package/entities/Issuefields/mockdatafiles/getFieldsPaginated-default.json +46 -0
  75. package/entities/Issuefields/schema.json +7 -1
  76. package/entities/Issueproperties/action.json +40 -0
  77. package/entities/Issueproperties/schema.json +3 -1
  78. package/entities/Issues/action.json +45 -0
  79. package/entities/Issues/mockdatafiles/getChangeLogsByIds-default.json +65 -0
  80. package/entities/Issues/mockdatafiles/getEvents-default.json +10 -0
  81. package/entities/Issues/schema.json +20 -0
  82. package/entities/Issuesearch/action.json +20 -0
  83. package/entities/Issuesearch/mockdatafiles/matchIssues-default.json +29 -0
  84. package/entities/Issuesearch/schema.json +2 -1
  85. package/entities/Issuesecuritylevel/action.json +21 -0
  86. package/entities/Issuesecuritylevel/mockdatafiles/getIssueSecurityLevelMembers-default.json +46 -0
  87. package/entities/Issuesecuritylevel/schema.json +2 -1
  88. package/entities/Issuetypes/action.json +21 -0
  89. package/entities/Issuetypes/mockdatafiles/getIssueTypesForProject-default.json +39 -0
  90. package/entities/Issuetypes/schema.json +2 -1
  91. package/entities/Issuewatchers/action.json +20 -0
  92. package/entities/Issuewatchers/mockdatafiles/getIsWatchingIssueBulk-default.json +7 -0
  93. package/entities/Issuewatchers/schema.json +2 -1
  94. package/entities/JQL/action.json +40 -0
  95. package/entities/JQL/mockdatafiles/getAutoCompletePost-default.json +89 -0
  96. package/entities/JQL/mockdatafiles/parseJqlQueries-default.json +119 -0
  97. package/entities/JQL/schema.json +3 -1
  98. package/entities/Jiraexpressions/action.json +20 -0
  99. package/entities/Jiraexpressions/mockdatafiles/analyseExpression-default.json +47 -0
  100. package/entities/Jiraexpressions/schema.json +2 -1
  101. package/entities/Labels/action.json +25 -0
  102. package/entities/Labels/mockdatafiles/getAllLabels-default.json +10 -0
  103. package/entities/Labels/schema.json +19 -0
  104. package/entities/ProjectEmail/action.json +45 -0
  105. package/entities/ProjectEmail/mockdatafiles/getProjectEmail-default.json +6 -0
  106. package/entities/ProjectEmail/schema.json +20 -0
  107. package/entities/ProjectFeatures/action.json +45 -0
  108. package/entities/ProjectFeatures/mockdatafiles/getFeaturesForProject-default.json +24 -0
  109. package/entities/ProjectFeatures/mockdatafiles/toggleFeatureForProject-default.json +24 -0
  110. package/entities/ProjectFeatures/schema.json +20 -0
  111. package/entities/Projects/action.json +102 -0
  112. package/entities/Projects/mockdatafiles/getHierarchy-default.json +50 -0
  113. package/entities/Projects/mockdatafiles/getRecent-default.json +50 -0
  114. package/entities/Projects/mockdatafiles/restore-default.json +139 -0
  115. package/entities/Projects/schema.json +6 -1
  116. package/entities/Projecttypes/action.json +21 -0
  117. package/entities/Projecttypes/mockdatafiles/getAllAccessibleProjectTypes-default.json +16 -0
  118. package/entities/Projecttypes/schema.json +2 -1
  119. package/entities/ScreenSchemes/action.json +85 -0
  120. package/entities/ScreenSchemes/mockdatafiles/createScreenScheme-default.json +3 -0
  121. package/entities/ScreenSchemes/mockdatafiles/getScreenSchemes-default.json +28 -0
  122. package/entities/ScreenSchemes/schema.json +22 -0
  123. package/entities/Screens/action.json +81 -0
  124. package/entities/Screens/mockdatafiles/createScreen-default.json +5 -0
  125. package/entities/Screens/mockdatafiles/getScreensForField-default.json +17 -0
  126. package/entities/Screens/mockdatafiles/updateScreen-default.json +5 -0
  127. package/entities/Screens/schema.json +5 -1
  128. package/entities/Users/action.json +84 -0
  129. package/entities/Users/mockdatafiles/getAllUsers-default.json +32 -0
  130. package/entities/Users/mockdatafiles/getAllUsersDefault-default.json +32 -0
  131. package/entities/Users/mockdatafiles/getUserEmail-default.json +1 -0
  132. package/entities/Users/schema.json +5 -1
  133. package/entities/Webhooks/action.json +106 -0
  134. package/entities/Webhooks/mockdatafiles/getDynamicWebhooksForApp-default.json +40 -0
  135. package/entities/Webhooks/mockdatafiles/getFailedWebhooks-default.json +17 -0
  136. package/entities/Webhooks/mockdatafiles/refreshWebhooks-default.json +3 -0
  137. package/entities/Webhooks/mockdatafiles/registerDynamicWebhooks-default.json +15 -0
  138. package/entities/Webhooks/schema.json +23 -0
  139. package/entities/WorkflowSchemeProjectAssociations/action.json +45 -0
  140. package/entities/WorkflowSchemeProjectAssociations/mockdatafiles/getWorkflowSchemeProjectAssociations-default.json +21 -0
  141. package/entities/WorkflowSchemeProjectAssociations/schema.json +20 -0
  142. package/entities/WorkflowTransitionRules/action.json +65 -0
  143. package/entities/WorkflowTransitionRules/mockdatafiles/deleteWorkflowTransitionRuleConfigurations-default.json +34 -0
  144. package/entities/WorkflowTransitionRules/mockdatafiles/getWorkflowTransitionRuleConfigurations-default.json +56 -0
  145. package/entities/WorkflowTransitionRules/mockdatafiles/updateWorkflowTransitionRuleConfigurations-default.json +34 -0
  146. package/entities/WorkflowTransitionRules/schema.json +21 -0
  147. package/entities/Workflows/action.json +61 -0
  148. package/entities/Workflows/mockdatafiles/createWorkflow-default.json +4 -0
  149. package/entities/Workflows/mockdatafiles/getWorkflowsPaginated-default.json +140 -0
  150. package/entities/Workflows/schema.json +4 -1
  151. package/entities/Workflowschemedrafts/action.json +20 -0
  152. package/entities/Workflowschemedrafts/schema.json +2 -1
  153. package/entities/Workflowschemes/action.json +21 -0
  154. package/entities/Workflowschemes/mockdatafiles/getAllWorkflowSchemes-default.json +30 -0
  155. package/entities/Workflowschemes/schema.json +2 -1
  156. package/error.json +12 -0
  157. package/package.json +21 -13
  158. package/pronghorn.json +33339 -5948
  159. package/propertiesDecorators.json +14 -0
  160. package/propertiesSchema.json +436 -0
  161. package/refs?service=git-upload-pack +0 -0
  162. package/report/adapterInfo.json +10 -0
  163. package/report/updateReport1659707107792.json +120 -0
  164. package/sampleProperties.json +95 -3
  165. package/test/integration/adapterTestBasicGet.js +2 -2
  166. package/test/integration/adapterTestIntegration.js +3633 -106
  167. package/test/unit/adapterBaseTestUnit.js +35 -27
  168. package/test/unit/adapterTestUnit.js +4767 -115
  169. package/utils/adapterInfo.js +206 -0
  170. package/utils/addAuth.js +94 -0
  171. package/utils/basicGet.js +1 -14
  172. package/utils/entitiesToDB.js +179 -0
  173. package/utils/methodDocumentor.js +225 -0
  174. package/utils/modify.js +1 -1
  175. package/utils/packModificationScript.js +1 -1
  176. package/utils/patches2bundledDeps.js +90 -0
  177. package/utils/pre-commit.sh +5 -0
  178. package/utils/removeHooks.js +20 -0
  179. package/utils/tbScript.js +43 -22
  180. package/utils/tbUtils.js +126 -29
  181. package/utils/testRunner.js +16 -16
  182. package/utils/troubleshootingAdapter.js +2 -26
  183. package/versions.json +142 -0
@@ -0,0 +1,21 @@
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
+ "getWorkflowTransitionRuleConfigurations",
14
+ "updateWorkflowTransitionRuleConfigurations",
15
+ "deleteWorkflowTransitionRuleConfigurations"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }
@@ -20,6 +20,67 @@
20
20
  "mockFile": ""
21
21
  }
22
22
  ]
23
+ },
24
+ {
25
+ "name": "createWorkflow",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/workflow?{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/createWorkflow-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getWorkflowsPaginated",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/workflow/search?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": "mockdatafiles/getWorkflowsPaginated-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "deleteInactiveWorkflow",
67
+ "protocol": "REST",
68
+ "method": "DELETE",
69
+ "entitypath": "{base_path}/{version}/workflow/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
23
84
  }
24
85
  ]
25
86
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "Workflow 1",
3
+ "entityId": "fb8731c5-aa05-4453-bf79-b583a1c87736"
4
+ }
@@ -0,0 +1,140 @@
1
+ {
2
+ "maxResults": 1,
3
+ "startAt": 0,
4
+ "total": 5,
5
+ "isLast": false,
6
+ "values": [
7
+ {
8
+ "id": {
9
+ "name": "SCRUM Workflow",
10
+ "entityId": "5ed312c5-f7a6-4a78-a1f6-8ff7f307d063"
11
+ },
12
+ "description": "A workflow used for Software projects in the SCRUM methodology",
13
+ "transitions": [
14
+ {
15
+ "id": "5",
16
+ "name": "In Progress",
17
+ "description": "Start working on the issue.",
18
+ "from": [
19
+ "10",
20
+ "13"
21
+ ],
22
+ "to": "14",
23
+ "type": "directed",
24
+ "screen": {
25
+ "id": "10000",
26
+ "name": "Issue screen"
27
+ },
28
+ "rules": {
29
+ "conditions": [
30
+ {
31
+ "type": "PermissionCondition",
32
+ "configuration": {
33
+ "permissionKey": "WORK_ON_ISSUES"
34
+ }
35
+ },
36
+ {
37
+ "type": "PermissionCondition",
38
+ "configuration": {
39
+ "permissionKey": "RESOLVE_ISSUES"
40
+ }
41
+ }
42
+ ],
43
+ "conditionsTree": {
44
+ "nodeType": "compound",
45
+ "operator": "AND",
46
+ "conditions": [
47
+ {
48
+ "nodeType": "simple",
49
+ "type": "PermissionCondition",
50
+ "configuration": {
51
+ "permissionKey": "WORK_ON_ISSUES"
52
+ }
53
+ },
54
+ {
55
+ "nodeType": "simple",
56
+ "type": "PermissionCondition",
57
+ "configuration": {
58
+ "permissionKey": "RESOLVE_ISSUES"
59
+ }
60
+ }
61
+ ]
62
+ },
63
+ "validators": [
64
+ {
65
+ "type": "FieldRequiredValidator",
66
+ "configuration": {
67
+ "ignoreContext": true,
68
+ "errorMessage": "A custom error message",
69
+ "fields": [
70
+ "description",
71
+ "assignee"
72
+ ]
73
+ }
74
+ }
75
+ ],
76
+ "postFunctions": [
77
+ {
78
+ "type": "UpdateIssueStatusFunction"
79
+ },
80
+ {
81
+ "type": "GenerateChangeHistoryFunction"
82
+ },
83
+ {
84
+ "type": "FireIssueEventFunction"
85
+ }
86
+ ]
87
+ },
88
+ "properties": {
89
+ "jira.fieldscreen.id": 1
90
+ }
91
+ }
92
+ ],
93
+ "statuses": [
94
+ {
95
+ "id": "3",
96
+ "name": "In Progress",
97
+ "properties": {
98
+ "jira.issue.editable": "false",
99
+ "issueEditable": false
100
+ }
101
+ }
102
+ ],
103
+ "isDefault": false,
104
+ "schemes": [
105
+ {
106
+ "id": "10001",
107
+ "name": "Test Workflow Scheme"
108
+ }
109
+ ],
110
+ "projects": [
111
+ {
112
+ "self": "project/EX",
113
+ "id": "10000",
114
+ "key": "EX",
115
+ "name": "Example",
116
+ "projectTypeKey": "ProjectTypeKey{key='software'}",
117
+ "simplified": false,
118
+ "avatarUrls": {
119
+ "48x48": "secure/projectavatar?size=large&pid=10000",
120
+ "24x24": "secure/projectavatar?size=small&pid=10000",
121
+ "16x16": "secure/projectavatar?size=xsmall&pid=10000",
122
+ "32x32": "secure/projectavatar?size=medium&pid=10000"
123
+ },
124
+ "projectCategory": {
125
+ "id": "10000",
126
+ "description": "Project category description",
127
+ "name": "A project category"
128
+ }
129
+ }
130
+ ],
131
+ "hasDraftWorkflow": true,
132
+ "operations": {
133
+ "canEdit": true,
134
+ "canDelete": false
135
+ },
136
+ "created": "2021-12-31T03:47:10.057+0000",
137
+ "updated": "2021-12-31T03:47:10.057+0000"
138
+ }
139
+ ]
140
+ }
@@ -10,7 +10,10 @@
10
10
  "description": "type of request (internal to adapter)",
11
11
  "default": "getRestapi2workflow",
12
12
  "enum": [
13
- "getRestapi2workflow"
13
+ "getRestapi2workflow",
14
+ "createWorkflow",
15
+ "getWorkflowsPaginated",
16
+ "deleteInactiveWorkflow"
14
17
  ],
15
18
  "external_name": "ph_request_type"
16
19
  }
@@ -272,6 +272,26 @@
272
272
  "mockFile": ""
273
273
  }
274
274
  ]
275
+ },
276
+ {
277
+ "name": "publishDraftWorkflowScheme",
278
+ "protocol": "REST",
279
+ "method": "POST",
280
+ "entitypath": "{base_path}/{version}/workflowscheme/{pathv1}/draft/publish?{query}",
281
+ "requestSchema": "schema.json",
282
+ "responseSchema": "schema.json",
283
+ "timeout": 0,
284
+ "sendEmpty": false,
285
+ "requestDatatype": "JSON",
286
+ "responseDatatype": "JSON",
287
+ "headers": {},
288
+ "responseObjects": [
289
+ {
290
+ "type": "default",
291
+ "key": "",
292
+ "mockFile": ""
293
+ }
294
+ ]
275
295
  }
276
296
  ]
277
297
  }
@@ -22,7 +22,8 @@
22
22
  "deleteRestapi2workflowschemeiddraftissuetypeissueType",
23
23
  "getRestapi2workflowschemeiddraftworkflow",
24
24
  "putRestapi2workflowschemeiddraftworkflow",
25
- "deleteRestapi2workflowschemeiddraftworkflow"
25
+ "deleteRestapi2workflowschemeiddraftworkflow",
26
+ "publishDraftWorkflowScheme"
26
27
  ],
27
28
  "external_name": "ph_request_type"
28
29
  }
@@ -272,6 +272,27 @@
272
272
  "mockFile": ""
273
273
  }
274
274
  ]
275
+ },
276
+ {
277
+ "name": "getAllWorkflowSchemes",
278
+ "protocol": "REST",
279
+ "method": "GET",
280
+ "entitypath": "{base_path}/{version}/workflowscheme?{query}",
281
+ "requestSchema": "schema.json",
282
+ "responseSchema": "schema.json",
283
+ "timeout": 0,
284
+ "sendEmpty": false,
285
+ "sendGetBody": false,
286
+ "requestDatatype": "JSON",
287
+ "responseDatatype": "JSON",
288
+ "headers": {},
289
+ "responseObjects": [
290
+ {
291
+ "type": "default",
292
+ "key": "",
293
+ "mockFile": "mockdatafiles/getAllWorkflowSchemes-default.json"
294
+ }
295
+ ]
275
296
  }
276
297
  ]
277
298
  }
@@ -0,0 +1,30 @@
1
+ {
2
+ "maxResults": 50,
3
+ "startAt": 0,
4
+ "total": 2,
5
+ "isLast": true,
6
+ "values": [
7
+ {
8
+ "id": 101010,
9
+ "name": "Example workflow scheme",
10
+ "description": "The description of the example workflow scheme.",
11
+ "defaultWorkflow": "jira",
12
+ "issueTypeMappings": {
13
+ "10000": "scrum workflow",
14
+ "10001": "builds workflow"
15
+ },
16
+ "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101010"
17
+ },
18
+ {
19
+ "id": 101011,
20
+ "name": "Another example workflow scheme",
21
+ "description": "The description of the another example workflow scheme.",
22
+ "defaultWorkflow": "jira",
23
+ "issueTypeMappings": {
24
+ "10000": "scrum workflow",
25
+ "10001": "builds workflow"
26
+ },
27
+ "self": "https://your-domain.atlassian.net/rest/api/3/workflowscheme/101011"
28
+ }
29
+ ]
30
+ }
@@ -22,7 +22,8 @@
22
22
  "deleteRestapi2workflowschemeidissuetypeissueType",
23
23
  "getRestapi2workflowschemeidworkflow",
24
24
  "putRestapi2workflowschemeidworkflow",
25
- "deleteRestapi2workflowschemeidworkflow"
25
+ "deleteRestapi2workflowschemeidworkflow",
26
+ "getAllWorkflowSchemes"
26
27
  ],
27
28
  "external_name": "ph_request_type"
28
29
  }
package/error.json CHANGED
@@ -96,6 +96,12 @@
96
96
  "displayString": "Invalid properties: $VARIABLE$",
97
97
  "recommendation": "Verify the properties for the adapter"
98
98
  },
99
+ {
100
+ "key": "Missing Properties",
101
+ "icode": "AD.306",
102
+ "displayString": "Property $VARIABLE$ is required",
103
+ "recommendation": "Please provide the required property"
104
+ },
99
105
  {
100
106
  "key": "Query Not Translated",
101
107
  "icode": "AD.310",
@@ -168,6 +174,12 @@
168
174
  "displayString": "Failure response received for $VARIABLE$",
169
175
  "recommendation": "Check the reason for failure in the stack trace"
170
176
  },
177
+ {
178
+ "key": "Suspended Adapter",
179
+ "icode": "AD.600",
180
+ "displayString": "Adapter is suspended",
181
+ "recommendation": "Check if external system is functional and unsuspend if appropriate"
182
+ },
171
183
  {
172
184
  "key": "Caught Exception",
173
185
  "icode": "AD.900",
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-jira",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "This adapter integrates with system Jira",
5
5
  "main": "adapter.js",
6
- "wizardVersion": "2.43.12",
7
- "engineVersion": "1.58.3",
6
+ "systemName": "Atlassian Jira",
7
+ "wizardVersion": "2.44.7",
8
+ "engineVersion": "1.61.10",
9
+ "adapterType": "http",
8
10
  "scripts": {
9
11
  "artifactize": "npm i && node utils/packModificationScript.js",
10
- "preinstall": "node utils/setup.js",
12
+ "preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
11
13
  "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
12
14
  "lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
13
15
  "test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
@@ -16,7 +18,7 @@
16
18
  "test:system": "nyc --reporter html --reporter text mocha test/integration/adapterTestIntegration.js --LOG=error -g \"System Integration Tests\"",
17
19
  "test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
18
20
  "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
19
- "adapter:install": "node utils/tbScript.js install",
21
+ "adapter:install": "npm i && node utils/tbScript.js install",
20
22
  "adapter:checkMigrate": "node utils/checkMigrate.js",
21
23
  "adapter:findPath": "node utils/findPath.js",
22
24
  "adapter:migrate": "node utils/modify.js -m",
@@ -26,7 +28,7 @@
26
28
  "healthcheck": "node utils/tbScript.js healthcheck",
27
29
  "basicget": "node utils/tbScript.js basicget",
28
30
  "connectivity": "node utils/tbScript.js connectivity",
29
- "deploy": "npm publish --registry=http://registry.npmjs.org --access=public",
31
+ "deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
30
32
  "build": "npm run deploy"
31
33
  },
32
34
  "keywords": [
@@ -53,13 +55,16 @@
53
55
  "author": "Itential",
54
56
  "homepage": "https://gitlab.com/itentialopensource/adapters/itsm-testing/adapter-jira.git",
55
57
  "dependencies": {
56
- "@itentialopensource/adapter-utils": "^4.39.1",
58
+ "@itentialopensource/adapter-utils": "^4.48.1",
57
59
  "ajv": "^6.12.0",
58
60
  "axios": "^0.21.0",
59
61
  "commander": "^2.20.0",
62
+ "esprima": "^4.0.1",
60
63
  "fs-extra": "^8.1.0",
61
- "mocha": "^8.1.1",
64
+ "json-query": "^2.2.2",
65
+ "mocha": "^9.0.1",
62
66
  "mocha-param": "^2.0.1",
67
+ "mongodb": "^4.1.0",
63
68
  "network-diagnostics": "^0.5.3",
64
69
  "nyc": "^15.1.0",
65
70
  "readline-sync": "^1.4.10",
@@ -67,13 +72,16 @@
67
72
  "winston": "^3.3.3"
68
73
  },
69
74
  "devDependencies": {
70
- "chai": "^4.2.0",
71
- "eslint": "^7.2.0",
72
- "eslint-config-airbnb-base": "^14.2.0",
73
- "eslint-plugin-import": "^2.21.2",
74
- "eslint-plugin-json": "^2.1.1",
75
+ "chai": "^4.3.4",
76
+ "eslint": "^7.29.0",
77
+ "eslint-config-airbnb-base": "^14.2.1",
78
+ "eslint-plugin-import": "^2.23.4",
79
+ "eslint-plugin-json": "^3.0.0",
75
80
  "package-json-validator": "^0.6.3",
76
81
  "testdouble": "^3.16.1"
77
82
  },
83
+ "resolutions": {
84
+ "minimist": "^1.2.5"
85
+ },
78
86
  "private": false
79
87
  }