@itentialopensource/adapter-jira 1.7.4 → 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 (183) hide show
  1. package/AUTH.md +39 -0
  2. package/BROKER.md +199 -0
  3. package/CALLS.md +7365 -0
  4. package/CHANGELOG.md +8 -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 +10820 -58
  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,12 @@
1
+ {
2
+ "maxResults": 1,
3
+ "startAt": 0,
4
+ "total": 5,
5
+ "isLast": false,
6
+ "values": [
7
+ {
8
+ "id": 10001,
9
+ "name": "Default Context"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "maxResults": 50,
3
+ "startAt": 0,
4
+ "total": 2,
5
+ "isLast": false,
6
+ "values": [
7
+ {
8
+ "id": "customfield_10000",
9
+ "name": "Approvers",
10
+ "schema": {
11
+ "type": "array",
12
+ "items": "user",
13
+ "custom": "com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker",
14
+ "customId": 10000
15
+ },
16
+ "description": "Contains users needed for approval. This custom field was created by Jira Service Desk.",
17
+ "key": "customfield_10000",
18
+ "isLocked": true,
19
+ "searcherKey": "com.atlassian.jira.plugin.system.customfieldtypes:userpickergroupsearcher",
20
+ "screensCount": 2,
21
+ "contextsCount": 2,
22
+ "lastUsed": {
23
+ "type": "TRACKED",
24
+ "value": "2019-09-12T10:10:00.691+0000"
25
+ }
26
+ },
27
+ {
28
+ "id": "customfield_10001",
29
+ "name": "Change reason",
30
+ "schema": {
31
+ "type": "option",
32
+ "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
33
+ "customId": 10001
34
+ },
35
+ "description": "Choose the reason for the change request",
36
+ "key": "customfield_10001",
37
+ "isLocked": false,
38
+ "searcherKey": "com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher",
39
+ "screensCount": 2,
40
+ "contextsCount": 2,
41
+ "lastUsed": {
42
+ "type": "NOT_TRACKED"
43
+ }
44
+ }
45
+ ]
46
+ }
@@ -12,7 +12,13 @@
12
12
  "enum": [
13
13
  "getRestapi2customFieldOptionid",
14
14
  "getRestapi2field",
15
- "postRestapi2field"
15
+ "postRestapi2field",
16
+ "getFieldsPaginated",
17
+ "updateCustomField",
18
+ "getContextsForFieldDeprecated",
19
+ "deleteCustomField",
20
+ "restoreCustomField",
21
+ "trashCustomField"
16
22
  ],
17
23
  "external_name": "ph_request_type"
18
24
  }
@@ -125,6 +125,46 @@
125
125
  "mockFile": ""
126
126
  }
127
127
  ]
128
+ },
129
+ {
130
+ "name": "bulkSetIssuesPropertiesList",
131
+ "protocol": "REST",
132
+ "method": "POST",
133
+ "entitypath": "{base_path}/{version}/issue/properties?{query}",
134
+ "requestSchema": "schema.json",
135
+ "responseSchema": "schema.json",
136
+ "timeout": 0,
137
+ "sendEmpty": false,
138
+ "requestDatatype": "JSON",
139
+ "responseDatatype": "JSON",
140
+ "headers": {},
141
+ "responseObjects": [
142
+ {
143
+ "type": "default",
144
+ "key": "",
145
+ "mockFile": ""
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "name": "bulkSetIssuePropertiesByIssue",
151
+ "protocol": "REST",
152
+ "method": "POST",
153
+ "entitypath": "{base_path}/{version}/issue/properties/multi?{query}",
154
+ "requestSchema": "schema.json",
155
+ "responseSchema": "schema.json",
156
+ "timeout": 0,
157
+ "sendEmpty": false,
158
+ "requestDatatype": "JSON",
159
+ "responseDatatype": "JSON",
160
+ "headers": {},
161
+ "responseObjects": [
162
+ {
163
+ "type": "default",
164
+ "key": "",
165
+ "mockFile": ""
166
+ }
167
+ ]
128
168
  }
129
169
  ]
130
170
  }
@@ -15,7 +15,9 @@
15
15
  "getRestapi2issueissueIdOrKeyproperties",
16
16
  "getRestapi2issueissueIdOrKeypropertiespropertyKey",
17
17
  "putRestapi2issueissueIdOrKeypropertiespropertyKey",
18
- "deleteRestapi2issueissueIdOrKeypropertiespropertyKey"
18
+ "deleteRestapi2issueissueIdOrKeypropertiespropertyKey",
19
+ "bulkSetIssuesPropertiesList",
20
+ "bulkSetIssuePropertiesByIssue"
19
21
  ],
20
22
  "external_name": "ph_request_type"
21
23
  }
@@ -0,0 +1,45 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getEvents",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/events?{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/getEvents-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getChangeLogsByIds",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/issue/{pathv1}/changelog/list?{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/getChangeLogsByIds-default.json"
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "startAt": 0,
3
+ "maxResults": 2,
4
+ "total": 2,
5
+ "histories": [
6
+ {
7
+ "id": "10001",
8
+ "author": {
9
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
10
+ "accountId": "5b10a2844c20165700ede21g",
11
+ "emailAddress": "mia@example.com",
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": true,
20
+ "timeZone": "Australia/Sydney"
21
+ },
22
+ "created": "1970-01-18T06:27:50.429+0000",
23
+ "items": [
24
+ {
25
+ "field": "fields",
26
+ "fieldtype": "jira",
27
+ "fieldId": "fieldId",
28
+ "from": null,
29
+ "fromString": "",
30
+ "to": null,
31
+ "toString": "label-1"
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "id": "10002",
37
+ "author": {
38
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
39
+ "accountId": "5b10a2844c20165700ede21g",
40
+ "emailAddress": "mia@example.com",
41
+ "avatarUrls": {
42
+ "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
43
+ "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
44
+ "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
45
+ "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
46
+ },
47
+ "displayName": "Mia Krystof",
48
+ "active": true,
49
+ "timeZone": "Australia/Sydney"
50
+ },
51
+ "created": "1970-01-18T06:27:51.429+0000",
52
+ "items": [
53
+ {
54
+ "field": "fields",
55
+ "fieldtype": "jira",
56
+ "fieldId": "fieldId",
57
+ "from": null,
58
+ "fromString": "label-1",
59
+ "to": null,
60
+ "toString": "label-1 label-2"
61
+ }
62
+ ]
63
+ }
64
+ ]
65
+ }
@@ -0,0 +1,10 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "name": "Issue Created"
5
+ },
6
+ {
7
+ "id": 2,
8
+ "name": "Issue Updated"
9
+ }
10
+ ]
@@ -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
+ "getEvents",
14
+ "getChangeLogsByIds"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -62,6 +62,26 @@
62
62
  "mockFile": "mockdatafiles/getRestapi2issuepicker-default.json"
63
63
  }
64
64
  ]
65
+ },
66
+ {
67
+ "name": "matchIssues",
68
+ "protocol": "REST",
69
+ "method": "POST",
70
+ "entitypath": "{base_path}/{version}/jql/match?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "requestDatatype": "JSON",
76
+ "responseDatatype": "JSON",
77
+ "headers": {},
78
+ "responseObjects": [
79
+ {
80
+ "type": "default",
81
+ "key": "",
82
+ "mockFile": "mockdatafiles/matchIssues-default.json"
83
+ }
84
+ ]
65
85
  }
66
86
  ]
67
87
  }
@@ -0,0 +1,29 @@
1
+ {
2
+ "matches": [
3
+ {
4
+ "matchedIssues": [
5
+ 10000,
6
+ 10004
7
+ ],
8
+ "errors": []
9
+ },
10
+ {
11
+ "matchedIssues": [
12
+ 100134,
13
+ 10025,
14
+ 10236
15
+ ],
16
+ "errors": []
17
+ },
18
+ {
19
+ "matchedIssues": [],
20
+ "errors": []
21
+ },
22
+ {
23
+ "matchedIssues": [],
24
+ "errors": [
25
+ "Invalid JQL: broken = value"
26
+ ]
27
+ }
28
+ ]
29
+ }
@@ -12,7 +12,8 @@
12
12
  "enum": [
13
13
  "getRestapi2search",
14
14
  "postRestapi2search",
15
- "getRestapi2issuepicker"
15
+ "getRestapi2issuepicker",
16
+ "matchIssues"
16
17
  ],
17
18
  "external_name": "ph_request_type"
18
19
  }
@@ -20,6 +20,27 @@
20
20
  "mockFile": "mockdatafiles/getRestapi2securitylevelid-default.json"
21
21
  }
22
22
  ]
23
+ },
24
+ {
25
+ "name": "getIssueSecurityLevelMembers",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/issuesecurityschemes/{pathv1}/members?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": "mockdatafiles/getIssueSecurityLevelMembers-default.json"
42
+ }
43
+ ]
23
44
  }
24
45
  ]
25
46
  }
@@ -0,0 +1,46 @@
1
+ {
2
+ "maxResults": 100,
3
+ "startAt": 0,
4
+ "total": 3,
5
+ "isLast": true,
6
+ "values": [
7
+ {
8
+ "id": 10000,
9
+ "issueSecurityLevelId": 10020,
10
+ "holder": {
11
+ "type": "user",
12
+ "user": {
13
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
14
+ "accountId": "5b10a2844c20165700ede21g",
15
+ "emailAddress": "mia@example.com",
16
+ "avatarUrls": {
17
+ "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
18
+ "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
19
+ "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
20
+ "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
21
+ },
22
+ "displayName": "Mia Krystof",
23
+ "active": true,
24
+ "timeZone": "Australia/Sydney"
25
+ },
26
+ "expand": "user"
27
+ }
28
+ },
29
+ {
30
+ "id": 10001,
31
+ "issueSecurityLevelId": 10020,
32
+ "holder": {
33
+ "type": "group",
34
+ "parameter": "jira-core-users",
35
+ "expand": "group"
36
+ }
37
+ },
38
+ {
39
+ "id": 10002,
40
+ "issueSecurityLevelId": 10021,
41
+ "holder": {
42
+ "type": "assignee"
43
+ }
44
+ }
45
+ ]
46
+ }
@@ -10,7 +10,8 @@
10
10
  "description": "type of request (internal to adapter)",
11
11
  "default": "getRestapi2securitylevelid",
12
12
  "enum": [
13
- "getRestapi2securitylevelid"
13
+ "getRestapi2securitylevelid",
14
+ "getIssueSecurityLevelMembers"
14
15
  ],
15
16
  "external_name": "ph_request_type"
16
17
  }
@@ -146,6 +146,27 @@
146
146
  "mockFile": "mockdatafiles/postRestapi2issuetypeidavatar2-default.json"
147
147
  }
148
148
  ]
149
+ },
150
+ {
151
+ "name": "getIssueTypesForProject",
152
+ "protocol": "REST",
153
+ "method": "GET",
154
+ "entitypath": "{base_path}/{version}/issuetype/project?{query}",
155
+ "requestSchema": "schema.json",
156
+ "responseSchema": "schema.json",
157
+ "timeout": 0,
158
+ "sendEmpty": false,
159
+ "sendGetBody": false,
160
+ "requestDatatype": "JSON",
161
+ "responseDatatype": "JSON",
162
+ "headers": {},
163
+ "responseObjects": [
164
+ {
165
+ "type": "default",
166
+ "key": "",
167
+ "mockFile": "mockdatafiles/getIssueTypesForProject-default.json"
168
+ }
169
+ ]
149
170
  }
150
171
  ]
151
172
  }
@@ -0,0 +1,39 @@
1
+ [
2
+ {
3
+ "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
4
+ "id": "1",
5
+ "description": "A problem with the software.",
6
+ "iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
7
+ "name": "Bug",
8
+ "subtask": false,
9
+ "avatarId": 10002,
10
+ "entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
11
+ "hierarchyLevel": 0,
12
+ "scope": {
13
+ "type": "PROJECT",
14
+ "project": {
15
+ "id": "10000",
16
+ "key": "KEY",
17
+ "name": "Next Gen Project"
18
+ }
19
+ }
20
+ },
21
+ {
22
+ "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
23
+ "id": "3",
24
+ "description": "A task that needs to be done.",
25
+ "iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
26
+ "name": "Task",
27
+ "subtask": false,
28
+ "avatarId": 1,
29
+ "hierarchyLevel": 0,
30
+ "scope": {
31
+ "type": "PROJECT",
32
+ "project": {
33
+ "id": "10000",
34
+ "key": "KEY",
35
+ "name": "Next Gen Project"
36
+ }
37
+ }
38
+ }
39
+ ]
@@ -16,7 +16,8 @@
16
16
  "putRestapi2issuetypeid",
17
17
  "deleteRestapi2issuetypeid",
18
18
  "getRestapi2issuetypeidalternatives",
19
- "postRestapi2issuetypeidavatar2"
19
+ "postRestapi2issuetypeidavatar2",
20
+ "getIssueTypesForProject"
20
21
  ],
21
22
  "external_name": "ph_request_type"
22
23
  }
@@ -62,6 +62,26 @@
62
62
  "mockFile": ""
63
63
  }
64
64
  ]
65
+ },
66
+ {
67
+ "name": "getIsWatchingIssueBulk",
68
+ "protocol": "REST",
69
+ "method": "POST",
70
+ "entitypath": "{base_path}/{version}/issue/watching?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "requestDatatype": "JSON",
76
+ "responseDatatype": "JSON",
77
+ "headers": {},
78
+ "responseObjects": [
79
+ {
80
+ "type": "default",
81
+ "key": "",
82
+ "mockFile": "mockdatafiles/getIsWatchingIssueBulk-default.json"
83
+ }
84
+ ]
65
85
  }
66
86
  ]
67
87
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "issuesIsWatching": {
3
+ "10001": true,
4
+ "10002": false,
5
+ "10005": true
6
+ }
7
+ }
@@ -12,7 +12,8 @@
12
12
  "enum": [
13
13
  "getRestapi2issueissueIdOrKeywatchers",
14
14
  "postRestapi2issueissueIdOrKeywatchers",
15
- "deleteRestapi2issueissueIdOrKeywatchers"
15
+ "deleteRestapi2issueissueIdOrKeywatchers",
16
+ "getIsWatchingIssueBulk"
16
17
  ],
17
18
  "external_name": "ph_request_type"
18
19
  }
@@ -62,6 +62,46 @@
62
62
  "mockFile": "mockdatafiles/postRestapi2jqlpdcleaner-default.json"
63
63
  }
64
64
  ]
65
+ },
66
+ {
67
+ "name": "getAutoCompletePost",
68
+ "protocol": "REST",
69
+ "method": "POST",
70
+ "entitypath": "{base_path}/{version}/jql/autocompletedata?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "requestDatatype": "JSON",
76
+ "responseDatatype": "JSON",
77
+ "headers": {},
78
+ "responseObjects": [
79
+ {
80
+ "type": "default",
81
+ "key": "",
82
+ "mockFile": "mockdatafiles/getAutoCompletePost-default.json"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "name": "parseJqlQueries",
88
+ "protocol": "REST",
89
+ "method": "POST",
90
+ "entitypath": "{base_path}/{version}/jql/parse?{query}",
91
+ "requestSchema": "schema.json",
92
+ "responseSchema": "schema.json",
93
+ "timeout": 0,
94
+ "sendEmpty": false,
95
+ "requestDatatype": "JSON",
96
+ "responseDatatype": "JSON",
97
+ "headers": {},
98
+ "responseObjects": [
99
+ {
100
+ "type": "default",
101
+ "key": "",
102
+ "mockFile": "mockdatafiles/parseJqlQueries-default.json"
103
+ }
104
+ ]
65
105
  }
66
106
  ]
67
107
  }