@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.
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +9587 -0
- package/CHANGELOG.md +16 -0
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +88 -74
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +225 -502
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +10821 -59
- package/adapterBase.js +1030 -248
- package/entities/.generic/action.json +110 -5
- package/entities/.generic/schema.json +6 -1
- package/entities/Avatars/action.json +63 -0
- package/entities/Avatars/schema.json +4 -1
- package/entities/Dashboards/action.json +80 -0
- package/entities/Dashboards/mockdatafiles/copyDashboard-default.json +13 -0
- package/entities/Dashboards/mockdatafiles/createDashboard-default.json +13 -0
- package/entities/Dashboards/mockdatafiles/updateDashboard-default.json +13 -0
- package/entities/Dashboards/schema.json +5 -1
- package/entities/Groups/action.json +21 -0
- package/entities/Groups/mockdatafiles/bulkGetGroups-default.json +16 -0
- package/entities/Groups/schema.json +2 -1
- package/entities/InstanceInformation/action.json +25 -0
- package/entities/InstanceInformation/mockdatafiles/getLicense-default.json +20 -0
- package/entities/InstanceInformation/schema.json +19 -0
- package/entities/IssueCustomFieldConfigurationApps/action.json +45 -0
- package/entities/IssueCustomFieldConfigurationApps/mockdatafiles/getCustomFieldConfiguration-default.json +34 -0
- package/entities/IssueCustomFieldConfigurationApps/schema.json +20 -0
- package/entities/IssueCustomFieldContexts/action.json +268 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/createCustomFieldContext-default.json +9 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/getContextsForField-default.json +22 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/getCustomFieldContextsForProjectsAndIssueTypes-default.json +23 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/getDefaultValues-default.json +22 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/getIssueTypeMappingsForContexts-default.json +20 -0
- package/entities/IssueCustomFieldContexts/mockdatafiles/getProjectContextMapping-default.json +16 -0
- package/entities/IssueCustomFieldContexts/schema.json +31 -0
- package/entities/IssueCustomFieldOptions/action.json +105 -0
- package/entities/IssueCustomFieldOptions/mockdatafiles/createCustomFieldOption-default.json +20 -0
- package/entities/IssueCustomFieldOptions/mockdatafiles/getOptionsForContext-default.json +26 -0
- package/entities/IssueCustomFieldOptions/mockdatafiles/updateCustomFieldOption-default.json +19 -0
- package/entities/IssueCustomFieldOptions/schema.json +23 -0
- package/entities/IssueCustomFieldValuesApps/action.json +44 -0
- package/entities/IssueCustomFieldValuesApps/schema.json +20 -0
- package/entities/IssueFieldConfigurations/action.json +309 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/createFieldConfiguration-default.json +5 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/createFieldConfigurationScheme-default.json +5 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurationSchemes-default.json +23 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurations-default.json +19 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationItems-default.json +19 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationSchemeMappings-default.json +33 -0
- package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationSchemeProjectMapping-default.json +26 -0
- package/entities/IssueFieldConfigurations/schema.json +33 -0
- package/entities/IssueTypeSchemes/action.json +207 -0
- package/entities/IssueTypeSchemes/mockdatafiles/createIssueTypeScheme-default.json +3 -0
- package/entities/IssueTypeSchemes/mockdatafiles/getAllIssueTypeSchemes-default.json +26 -0
- package/entities/IssueTypeSchemes/mockdatafiles/getIssueTypeSchemeForProjects-default.json +44 -0
- package/entities/IssueTypeSchemes/mockdatafiles/getIssueTypeSchemesMapping-default.json +24 -0
- package/entities/IssueTypeSchemes/schema.json +28 -0
- package/entities/IssueTypeScreenSchemes/action.json +228 -0
- package/entities/IssueTypeScreenSchemes/mockdatafiles/createIssueTypeScreenScheme-default.json +3 -0
- package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemeMappings-default.json +28 -0
- package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemeProjectAssociations-default.json +19 -0
- package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemes-default.json +18 -0
- package/entities/IssueTypeScreenSchemes/mockdatafiles/getProjectsForIssueTypeScreenScheme-default.json +27 -0
- package/entities/IssueTypeScreenSchemes/schema.json +29 -0
- package/entities/Issueattachments/action.json +42 -0
- package/entities/Issueattachments/schema.json +3 -1
- package/entities/Issuefields/action.json +122 -0
- package/entities/Issuefields/mockdatafiles/getContextsForFieldDeprecated-default.json +12 -0
- package/entities/Issuefields/mockdatafiles/getFieldsPaginated-default.json +46 -0
- package/entities/Issuefields/schema.json +7 -1
- package/entities/Issueproperties/action.json +40 -0
- package/entities/Issueproperties/schema.json +3 -1
- package/entities/Issues/action.json +45 -0
- package/entities/Issues/mockdatafiles/getChangeLogsByIds-default.json +65 -0
- package/entities/Issues/mockdatafiles/getEvents-default.json +10 -0
- package/entities/Issues/schema.json +20 -0
- package/entities/Issuesearch/action.json +20 -0
- package/entities/Issuesearch/mockdatafiles/matchIssues-default.json +29 -0
- package/entities/Issuesearch/schema.json +2 -1
- package/entities/Issuesecuritylevel/action.json +21 -0
- package/entities/Issuesecuritylevel/mockdatafiles/getIssueSecurityLevelMembers-default.json +46 -0
- package/entities/Issuesecuritylevel/schema.json +2 -1
- package/entities/Issuetypes/action.json +21 -0
- package/entities/Issuetypes/mockdatafiles/getIssueTypesForProject-default.json +39 -0
- package/entities/Issuetypes/schema.json +2 -1
- package/entities/Issuewatchers/action.json +20 -0
- package/entities/Issuewatchers/mockdatafiles/getIsWatchingIssueBulk-default.json +7 -0
- package/entities/Issuewatchers/schema.json +2 -1
- package/entities/JQL/action.json +40 -0
- package/entities/JQL/mockdatafiles/getAutoCompletePost-default.json +89 -0
- package/entities/JQL/mockdatafiles/parseJqlQueries-default.json +119 -0
- package/entities/JQL/schema.json +3 -1
- package/entities/Jiraexpressions/action.json +20 -0
- package/entities/Jiraexpressions/mockdatafiles/analyseExpression-default.json +47 -0
- package/entities/Jiraexpressions/schema.json +2 -1
- package/entities/Labels/action.json +25 -0
- package/entities/Labels/mockdatafiles/getAllLabels-default.json +10 -0
- package/entities/Labels/schema.json +19 -0
- package/entities/ProjectEmail/action.json +45 -0
- package/entities/ProjectEmail/mockdatafiles/getProjectEmail-default.json +6 -0
- package/entities/ProjectEmail/schema.json +20 -0
- package/entities/ProjectFeatures/action.json +45 -0
- package/entities/ProjectFeatures/mockdatafiles/getFeaturesForProject-default.json +24 -0
- package/entities/ProjectFeatures/mockdatafiles/toggleFeatureForProject-default.json +24 -0
- package/entities/ProjectFeatures/schema.json +20 -0
- package/entities/Projects/action.json +102 -0
- package/entities/Projects/mockdatafiles/getHierarchy-default.json +50 -0
- package/entities/Projects/mockdatafiles/getRecent-default.json +50 -0
- package/entities/Projects/mockdatafiles/restore-default.json +139 -0
- package/entities/Projects/schema.json +6 -1
- package/entities/Projecttypes/action.json +21 -0
- package/entities/Projecttypes/mockdatafiles/getAllAccessibleProjectTypes-default.json +16 -0
- package/entities/Projecttypes/schema.json +2 -1
- package/entities/ScreenSchemes/action.json +85 -0
- package/entities/ScreenSchemes/mockdatafiles/createScreenScheme-default.json +3 -0
- package/entities/ScreenSchemes/mockdatafiles/getScreenSchemes-default.json +28 -0
- package/entities/ScreenSchemes/schema.json +22 -0
- package/entities/Screens/action.json +81 -0
- package/entities/Screens/mockdatafiles/createScreen-default.json +5 -0
- package/entities/Screens/mockdatafiles/getScreensForField-default.json +17 -0
- package/entities/Screens/mockdatafiles/updateScreen-default.json +5 -0
- package/entities/Screens/schema.json +5 -1
- package/entities/Users/action.json +84 -0
- package/entities/Users/mockdatafiles/getAllUsers-default.json +32 -0
- package/entities/Users/mockdatafiles/getAllUsersDefault-default.json +32 -0
- package/entities/Users/mockdatafiles/getUserEmail-default.json +1 -0
- package/entities/Users/schema.json +5 -1
- package/entities/Webhooks/action.json +106 -0
- package/entities/Webhooks/mockdatafiles/getDynamicWebhooksForApp-default.json +40 -0
- package/entities/Webhooks/mockdatafiles/getFailedWebhooks-default.json +17 -0
- package/entities/Webhooks/mockdatafiles/refreshWebhooks-default.json +3 -0
- package/entities/Webhooks/mockdatafiles/registerDynamicWebhooks-default.json +15 -0
- package/entities/Webhooks/schema.json +23 -0
- package/entities/WorkflowSchemeProjectAssociations/action.json +45 -0
- package/entities/WorkflowSchemeProjectAssociations/mockdatafiles/getWorkflowSchemeProjectAssociations-default.json +21 -0
- package/entities/WorkflowSchemeProjectAssociations/schema.json +20 -0
- package/entities/WorkflowTransitionRules/action.json +65 -0
- package/entities/WorkflowTransitionRules/mockdatafiles/deleteWorkflowTransitionRuleConfigurations-default.json +34 -0
- package/entities/WorkflowTransitionRules/mockdatafiles/getWorkflowTransitionRuleConfigurations-default.json +56 -0
- package/entities/WorkflowTransitionRules/mockdatafiles/updateWorkflowTransitionRuleConfigurations-default.json +34 -0
- package/entities/WorkflowTransitionRules/schema.json +21 -0
- package/entities/Workflows/action.json +61 -0
- package/entities/Workflows/mockdatafiles/createWorkflow-default.json +4 -0
- package/entities/Workflows/mockdatafiles/getWorkflowsPaginated-default.json +140 -0
- package/entities/Workflows/schema.json +4 -1
- package/entities/Workflowschemedrafts/action.json +20 -0
- package/entities/Workflowschemedrafts/schema.json +2 -1
- package/entities/Workflowschemes/action.json +21 -0
- package/entities/Workflowschemes/mockdatafiles/getAllWorkflowSchemes-default.json +30 -0
- package/entities/Workflowschemes/schema.json +2 -1
- package/error.json +12 -0
- package/package.json +21 -13
- package/pronghorn.json +33339 -5948
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +436 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1659707107792.json +120 -0
- package/sampleProperties.json +95 -3
- package/test/integration/adapterTestBasicGet.js +2 -2
- package/test/integration/adapterTestIntegration.js +3633 -106
- package/test/unit/adapterBaseTestUnit.js +35 -27
- package/test/unit/adapterTestUnit.js +4767 -115
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/basicGet.js +1 -14
- package/utils/entitiesToDB.js +179 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +1 -1
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +5 -0
- package/utils/removeHooks.js +20 -0
- package/utils/tbScript.js +43 -22
- package/utils/tbUtils.js +126 -29
- package/utils/testRunner.js +16 -16
- package/utils/troubleshootingAdapter.js +2 -26
- package/versions.json +142 -0
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getAllFieldConfigurations",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/fieldconfiguration?{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/getAllFieldConfigurations-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "createFieldConfiguration",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/fieldconfiguration?{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/createFieldConfiguration-default.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "updateFieldConfiguration",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "PUT",
|
|
48
|
+
"entitypath": "{base_path}/{version}/fieldconfiguration/{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": "deleteFieldConfiguration",
|
|
66
|
+
"protocol": "REST",
|
|
67
|
+
"method": "DELETE",
|
|
68
|
+
"entitypath": "{base_path}/{version}/fieldconfiguration/{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
|
+
"name": "getFieldConfigurationItems",
|
|
86
|
+
"protocol": "REST",
|
|
87
|
+
"method": "GET",
|
|
88
|
+
"entitypath": "{base_path}/{version}/fieldconfiguration/{pathv1}/fields?{query}",
|
|
89
|
+
"requestSchema": "schema.json",
|
|
90
|
+
"responseSchema": "schema.json",
|
|
91
|
+
"timeout": 0,
|
|
92
|
+
"sendEmpty": false,
|
|
93
|
+
"sendGetBody": false,
|
|
94
|
+
"requestDatatype": "JSON",
|
|
95
|
+
"responseDatatype": "JSON",
|
|
96
|
+
"headers": {},
|
|
97
|
+
"responseObjects": [
|
|
98
|
+
{
|
|
99
|
+
"type": "default",
|
|
100
|
+
"key": "",
|
|
101
|
+
"mockFile": "mockdatafiles/getFieldConfigurationItems-default.json"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "updateFieldConfigurationItems",
|
|
107
|
+
"protocol": "REST",
|
|
108
|
+
"method": "PUT",
|
|
109
|
+
"entitypath": "{base_path}/{version}/fieldconfiguration/{pathv1}/fields?{query}",
|
|
110
|
+
"requestSchema": "schema.json",
|
|
111
|
+
"responseSchema": "schema.json",
|
|
112
|
+
"timeout": 0,
|
|
113
|
+
"sendEmpty": false,
|
|
114
|
+
"requestDatatype": "JSON",
|
|
115
|
+
"responseDatatype": "JSON",
|
|
116
|
+
"headers": {},
|
|
117
|
+
"responseObjects": [
|
|
118
|
+
{
|
|
119
|
+
"type": "default",
|
|
120
|
+
"key": "",
|
|
121
|
+
"mockFile": ""
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "getAllFieldConfigurationSchemes",
|
|
127
|
+
"protocol": "REST",
|
|
128
|
+
"method": "GET",
|
|
129
|
+
"entitypath": "{base_path}/{version}/fieldconfigurationscheme?{query}",
|
|
130
|
+
"requestSchema": "schema.json",
|
|
131
|
+
"responseSchema": "schema.json",
|
|
132
|
+
"timeout": 0,
|
|
133
|
+
"sendEmpty": false,
|
|
134
|
+
"sendGetBody": false,
|
|
135
|
+
"requestDatatype": "JSON",
|
|
136
|
+
"responseDatatype": "JSON",
|
|
137
|
+
"headers": {},
|
|
138
|
+
"responseObjects": [
|
|
139
|
+
{
|
|
140
|
+
"type": "default",
|
|
141
|
+
"key": "",
|
|
142
|
+
"mockFile": "mockdatafiles/getAllFieldConfigurationSchemes-default.json"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "createFieldConfigurationScheme",
|
|
148
|
+
"protocol": "REST",
|
|
149
|
+
"method": "POST",
|
|
150
|
+
"entitypath": "{base_path}/{version}/fieldconfigurationscheme?{query}",
|
|
151
|
+
"requestSchema": "schema.json",
|
|
152
|
+
"responseSchema": "schema.json",
|
|
153
|
+
"timeout": 0,
|
|
154
|
+
"sendEmpty": false,
|
|
155
|
+
"requestDatatype": "JSON",
|
|
156
|
+
"responseDatatype": "JSON",
|
|
157
|
+
"headers": {},
|
|
158
|
+
"responseObjects": [
|
|
159
|
+
{
|
|
160
|
+
"type": "default",
|
|
161
|
+
"key": "",
|
|
162
|
+
"mockFile": "mockdatafiles/createFieldConfigurationScheme-default.json"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "getFieldConfigurationSchemeMappings",
|
|
168
|
+
"protocol": "REST",
|
|
169
|
+
"method": "GET",
|
|
170
|
+
"entitypath": "{base_path}/{version}/fieldconfigurationscheme/mapping?{query}",
|
|
171
|
+
"requestSchema": "schema.json",
|
|
172
|
+
"responseSchema": "schema.json",
|
|
173
|
+
"timeout": 0,
|
|
174
|
+
"sendEmpty": false,
|
|
175
|
+
"sendGetBody": false,
|
|
176
|
+
"requestDatatype": "JSON",
|
|
177
|
+
"responseDatatype": "JSON",
|
|
178
|
+
"headers": {},
|
|
179
|
+
"responseObjects": [
|
|
180
|
+
{
|
|
181
|
+
"type": "default",
|
|
182
|
+
"key": "",
|
|
183
|
+
"mockFile": "mockdatafiles/getFieldConfigurationSchemeMappings-default.json"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "getFieldConfigurationSchemeProjectMapping",
|
|
189
|
+
"protocol": "REST",
|
|
190
|
+
"method": "GET",
|
|
191
|
+
"entitypath": "{base_path}/{version}/fieldconfigurationscheme/project?{query}",
|
|
192
|
+
"requestSchema": "schema.json",
|
|
193
|
+
"responseSchema": "schema.json",
|
|
194
|
+
"timeout": 0,
|
|
195
|
+
"sendEmpty": false,
|
|
196
|
+
"sendGetBody": false,
|
|
197
|
+
"requestDatatype": "JSON",
|
|
198
|
+
"responseDatatype": "JSON",
|
|
199
|
+
"headers": {},
|
|
200
|
+
"responseObjects": [
|
|
201
|
+
{
|
|
202
|
+
"type": "default",
|
|
203
|
+
"key": "",
|
|
204
|
+
"mockFile": "mockdatafiles/getFieldConfigurationSchemeProjectMapping-default.json"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "assignFieldConfigurationSchemeToProject",
|
|
210
|
+
"protocol": "REST",
|
|
211
|
+
"method": "PUT",
|
|
212
|
+
"entitypath": "{base_path}/{version}/fieldconfigurationscheme/project?{query}",
|
|
213
|
+
"requestSchema": "schema.json",
|
|
214
|
+
"responseSchema": "schema.json",
|
|
215
|
+
"timeout": 0,
|
|
216
|
+
"sendEmpty": false,
|
|
217
|
+
"requestDatatype": "JSON",
|
|
218
|
+
"responseDatatype": "JSON",
|
|
219
|
+
"headers": {},
|
|
220
|
+
"responseObjects": [
|
|
221
|
+
{
|
|
222
|
+
"type": "default",
|
|
223
|
+
"key": "",
|
|
224
|
+
"mockFile": ""
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "updateFieldConfigurationScheme",
|
|
230
|
+
"protocol": "REST",
|
|
231
|
+
"method": "PUT",
|
|
232
|
+
"entitypath": "{base_path}/{version}/fieldconfigurationscheme/{pathv1}?{query}",
|
|
233
|
+
"requestSchema": "schema.json",
|
|
234
|
+
"responseSchema": "schema.json",
|
|
235
|
+
"timeout": 0,
|
|
236
|
+
"sendEmpty": false,
|
|
237
|
+
"requestDatatype": "JSON",
|
|
238
|
+
"responseDatatype": "JSON",
|
|
239
|
+
"headers": {},
|
|
240
|
+
"responseObjects": [
|
|
241
|
+
{
|
|
242
|
+
"type": "default",
|
|
243
|
+
"key": "",
|
|
244
|
+
"mockFile": ""
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "deleteFieldConfigurationScheme",
|
|
250
|
+
"protocol": "REST",
|
|
251
|
+
"method": "DELETE",
|
|
252
|
+
"entitypath": "{base_path}/{version}/fieldconfigurationscheme/{pathv1}?{query}",
|
|
253
|
+
"requestSchema": "schema.json",
|
|
254
|
+
"responseSchema": "schema.json",
|
|
255
|
+
"timeout": 0,
|
|
256
|
+
"sendEmpty": false,
|
|
257
|
+
"requestDatatype": "JSON",
|
|
258
|
+
"responseDatatype": "JSON",
|
|
259
|
+
"headers": {},
|
|
260
|
+
"responseObjects": [
|
|
261
|
+
{
|
|
262
|
+
"type": "default",
|
|
263
|
+
"key": "",
|
|
264
|
+
"mockFile": ""
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "setFieldConfigurationSchemeMapping",
|
|
270
|
+
"protocol": "REST",
|
|
271
|
+
"method": "PUT",
|
|
272
|
+
"entitypath": "{base_path}/{version}/fieldconfigurationscheme/{pathv1}/mapping?{query}",
|
|
273
|
+
"requestSchema": "schema.json",
|
|
274
|
+
"responseSchema": "schema.json",
|
|
275
|
+
"timeout": 0,
|
|
276
|
+
"sendEmpty": false,
|
|
277
|
+
"requestDatatype": "JSON",
|
|
278
|
+
"responseDatatype": "JSON",
|
|
279
|
+
"headers": {},
|
|
280
|
+
"responseObjects": [
|
|
281
|
+
{
|
|
282
|
+
"type": "default",
|
|
283
|
+
"key": "",
|
|
284
|
+
"mockFile": ""
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "removeIssueTypesFromGlobalFieldConfigurationScheme",
|
|
290
|
+
"protocol": "REST",
|
|
291
|
+
"method": "POST",
|
|
292
|
+
"entitypath": "{base_path}/{version}/fieldconfigurationscheme/{pathv1}/mapping/delete?{query}",
|
|
293
|
+
"requestSchema": "schema.json",
|
|
294
|
+
"responseSchema": "schema.json",
|
|
295
|
+
"timeout": 0,
|
|
296
|
+
"sendEmpty": false,
|
|
297
|
+
"requestDatatype": "JSON",
|
|
298
|
+
"responseDatatype": "JSON",
|
|
299
|
+
"headers": {},
|
|
300
|
+
"responseObjects": [
|
|
301
|
+
{
|
|
302
|
+
"type": "default",
|
|
303
|
+
"key": "",
|
|
304
|
+
"mockFile": ""
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
}
|
package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurationSchemes-default.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"maxResults": 10,
|
|
3
|
+
"startAt": 0,
|
|
4
|
+
"total": 3,
|
|
5
|
+
"isLast": true,
|
|
6
|
+
"values": [
|
|
7
|
+
{
|
|
8
|
+
"id": "10000",
|
|
9
|
+
"name": "Field Configuration Scheme for Bugs",
|
|
10
|
+
"description": "This field configuration scheme is for bugs only."
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "10001",
|
|
14
|
+
"name": "Field Configuration Scheme for software related projects",
|
|
15
|
+
"description": "We can use this one for software projects."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "10002",
|
|
19
|
+
"name": "Field Configuration Scheme for Epics",
|
|
20
|
+
"description": "Use this one for Epic issue type."
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurations-default.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"maxResults": 50,
|
|
3
|
+
"startAt": 0,
|
|
4
|
+
"total": 2,
|
|
5
|
+
"isLast": true,
|
|
6
|
+
"values": [
|
|
7
|
+
{
|
|
8
|
+
"id": 10000,
|
|
9
|
+
"name": "Default Field Configuration",
|
|
10
|
+
"description": "The default field configuration description",
|
|
11
|
+
"isDefault": true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": 10001,
|
|
15
|
+
"name": "My Field Configuration",
|
|
16
|
+
"description": "My field configuration description"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationItems-default.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"maxResults": 50,
|
|
3
|
+
"startAt": 0,
|
|
4
|
+
"total": 2,
|
|
5
|
+
"isLast": true,
|
|
6
|
+
"values": [
|
|
7
|
+
{
|
|
8
|
+
"id": "environment",
|
|
9
|
+
"description": "For example operating system, software platform and/or hardware specifications (include as appropriate for the issue).",
|
|
10
|
+
"isHidden": false,
|
|
11
|
+
"isRequired": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "description",
|
|
15
|
+
"isHidden": false,
|
|
16
|
+
"isRequired": false
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"maxResults": 100,
|
|
3
|
+
"startAt": 0,
|
|
4
|
+
"total": 5,
|
|
5
|
+
"isLast": true,
|
|
6
|
+
"values": [
|
|
7
|
+
{
|
|
8
|
+
"fieldConfigurationSchemeId": "10020",
|
|
9
|
+
"issueTypeId": "10000",
|
|
10
|
+
"fieldConfigurationId": "10010"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"fieldConfigurationSchemeId": "10020",
|
|
14
|
+
"issueTypeId": "10001",
|
|
15
|
+
"fieldConfigurationId": "10010"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"fieldConfigurationSchemeId": "10021",
|
|
19
|
+
"issueTypeId": "10002",
|
|
20
|
+
"fieldConfigurationId": "10000"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"fieldConfigurationSchemeId": "10022",
|
|
24
|
+
"issueTypeId": "default",
|
|
25
|
+
"fieldConfigurationId": "10011"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"fieldConfigurationSchemeId": "10023",
|
|
29
|
+
"issueTypeId": "default",
|
|
30
|
+
"fieldConfigurationId": "10000"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"maxResults": 50,
|
|
3
|
+
"startAt": 0,
|
|
4
|
+
"total": 5,
|
|
5
|
+
"isLast": true,
|
|
6
|
+
"values": [
|
|
7
|
+
{
|
|
8
|
+
"projectIds": [
|
|
9
|
+
"10",
|
|
10
|
+
"11"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"fieldConfigurationScheme": {
|
|
15
|
+
"id": "10002",
|
|
16
|
+
"name": "Field Configuration Scheme for software related projects",
|
|
17
|
+
"description": "We can use this one for software projects."
|
|
18
|
+
},
|
|
19
|
+
"projectIds": [
|
|
20
|
+
"12",
|
|
21
|
+
"13",
|
|
22
|
+
"14"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
"getAllFieldConfigurations",
|
|
14
|
+
"createFieldConfiguration",
|
|
15
|
+
"updateFieldConfiguration",
|
|
16
|
+
"deleteFieldConfiguration",
|
|
17
|
+
"getFieldConfigurationItems",
|
|
18
|
+
"updateFieldConfigurationItems",
|
|
19
|
+
"getAllFieldConfigurationSchemes",
|
|
20
|
+
"createFieldConfigurationScheme",
|
|
21
|
+
"getFieldConfigurationSchemeMappings",
|
|
22
|
+
"getFieldConfigurationSchemeProjectMapping",
|
|
23
|
+
"assignFieldConfigurationSchemeToProject",
|
|
24
|
+
"updateFieldConfigurationScheme",
|
|
25
|
+
"deleteFieldConfigurationScheme",
|
|
26
|
+
"setFieldConfigurationSchemeMapping",
|
|
27
|
+
"removeIssueTypesFromGlobalFieldConfigurationScheme"
|
|
28
|
+
],
|
|
29
|
+
"external_name": "ph_request_type"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"definitions": {}
|
|
33
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getAllIssueTypeSchemes",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/issuetypescheme?{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/getAllIssueTypeSchemes-default.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "createIssueTypeScheme",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"entitypath": "{base_path}/{version}/issuetypescheme?{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/createIssueTypeScheme-default.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "getIssueTypeSchemesMapping",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/issuetypescheme/mapping?{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/getIssueTypeSchemesMapping-default.json"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "getIssueTypeSchemeForProjects",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "GET",
|
|
69
|
+
"entitypath": "{base_path}/{version}/issuetypescheme/project?{query}",
|
|
70
|
+
"requestSchema": "schema.json",
|
|
71
|
+
"responseSchema": "schema.json",
|
|
72
|
+
"timeout": 0,
|
|
73
|
+
"sendEmpty": false,
|
|
74
|
+
"sendGetBody": false,
|
|
75
|
+
"requestDatatype": "JSON",
|
|
76
|
+
"responseDatatype": "JSON",
|
|
77
|
+
"headers": {},
|
|
78
|
+
"responseObjects": [
|
|
79
|
+
{
|
|
80
|
+
"type": "default",
|
|
81
|
+
"key": "",
|
|
82
|
+
"mockFile": "mockdatafiles/getIssueTypeSchemeForProjects-default.json"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "assignIssueTypeSchemeToProject",
|
|
88
|
+
"protocol": "REST",
|
|
89
|
+
"method": "PUT",
|
|
90
|
+
"entitypath": "{base_path}/{version}/issuetypescheme/project?{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": ""
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "updateIssueTypeScheme",
|
|
108
|
+
"protocol": "REST",
|
|
109
|
+
"method": "PUT",
|
|
110
|
+
"entitypath": "{base_path}/{version}/issuetypescheme/{pathv1}?{query}",
|
|
111
|
+
"requestSchema": "schema.json",
|
|
112
|
+
"responseSchema": "schema.json",
|
|
113
|
+
"timeout": 0,
|
|
114
|
+
"sendEmpty": false,
|
|
115
|
+
"requestDatatype": "JSON",
|
|
116
|
+
"responseDatatype": "JSON",
|
|
117
|
+
"headers": {},
|
|
118
|
+
"responseObjects": [
|
|
119
|
+
{
|
|
120
|
+
"type": "default",
|
|
121
|
+
"key": "",
|
|
122
|
+
"mockFile": ""
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "deleteIssueTypeScheme",
|
|
128
|
+
"protocol": "REST",
|
|
129
|
+
"method": "DELETE",
|
|
130
|
+
"entitypath": "{base_path}/{version}/issuetypescheme/{pathv1}?{query}",
|
|
131
|
+
"requestSchema": "schema.json",
|
|
132
|
+
"responseSchema": "schema.json",
|
|
133
|
+
"timeout": 0,
|
|
134
|
+
"sendEmpty": false,
|
|
135
|
+
"requestDatatype": "JSON",
|
|
136
|
+
"responseDatatype": "JSON",
|
|
137
|
+
"headers": {},
|
|
138
|
+
"responseObjects": [
|
|
139
|
+
{
|
|
140
|
+
"type": "default",
|
|
141
|
+
"key": "",
|
|
142
|
+
"mockFile": ""
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "addIssueTypesToIssueTypeScheme",
|
|
148
|
+
"protocol": "REST",
|
|
149
|
+
"method": "PUT",
|
|
150
|
+
"entitypath": "{base_path}/{version}/issuetypescheme/{pathv1}/issuetype?{query}",
|
|
151
|
+
"requestSchema": "schema.json",
|
|
152
|
+
"responseSchema": "schema.json",
|
|
153
|
+
"timeout": 0,
|
|
154
|
+
"sendEmpty": false,
|
|
155
|
+
"requestDatatype": "JSON",
|
|
156
|
+
"responseDatatype": "JSON",
|
|
157
|
+
"headers": {},
|
|
158
|
+
"responseObjects": [
|
|
159
|
+
{
|
|
160
|
+
"type": "default",
|
|
161
|
+
"key": "",
|
|
162
|
+
"mockFile": ""
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "reorderIssueTypesInIssueTypeScheme",
|
|
168
|
+
"protocol": "REST",
|
|
169
|
+
"method": "PUT",
|
|
170
|
+
"entitypath": "{base_path}/{version}/issuetypescheme/{pathv1}/issuetype/move?{query}",
|
|
171
|
+
"requestSchema": "schema.json",
|
|
172
|
+
"responseSchema": "schema.json",
|
|
173
|
+
"timeout": 0,
|
|
174
|
+
"sendEmpty": false,
|
|
175
|
+
"requestDatatype": "JSON",
|
|
176
|
+
"responseDatatype": "JSON",
|
|
177
|
+
"headers": {},
|
|
178
|
+
"responseObjects": [
|
|
179
|
+
{
|
|
180
|
+
"type": "default",
|
|
181
|
+
"key": "",
|
|
182
|
+
"mockFile": ""
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "removeIssueTypeFromIssueTypeScheme",
|
|
188
|
+
"protocol": "REST",
|
|
189
|
+
"method": "DELETE",
|
|
190
|
+
"entitypath": "{base_path}/{version}/issuetypescheme/{pathv1}/issuetype/{pathv2}?{query}",
|
|
191
|
+
"requestSchema": "schema.json",
|
|
192
|
+
"responseSchema": "schema.json",
|
|
193
|
+
"timeout": 0,
|
|
194
|
+
"sendEmpty": false,
|
|
195
|
+
"requestDatatype": "JSON",
|
|
196
|
+
"responseDatatype": "JSON",
|
|
197
|
+
"headers": {},
|
|
198
|
+
"responseObjects": [
|
|
199
|
+
{
|
|
200
|
+
"type": "default",
|
|
201
|
+
"key": "",
|
|
202
|
+
"mockFile": ""
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
}
|