@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.
- package/.eslintignore +1 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +7365 -0
- package/CHANGELOG.md +24 -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 +228 -420
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +18753 -4899
- package/adapterBase.js +1274 -236
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- 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 +42 -18
- package/pronghorn.json +27769 -74
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +472 -4
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1615159462702.json +95 -0
- package/report/updateReport1659707107792.json +120 -0
- package/sampleProperties.json +103 -6
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +3633 -101
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +4766 -109
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +154 -0
- 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 +184 -0
- package/utils/tbUtils.js +469 -0
- package/utils/testRunner.js +16 -16
- package/utils/troubleshootingAdapter.js +190 -0
- package/versions.json +142 -0
- package/img/adapter.png +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
"getIssueTypeScreenSchemes",
|
|
14
|
+
"createIssueTypeScreenScheme",
|
|
15
|
+
"getIssueTypeScreenSchemeMappings",
|
|
16
|
+
"getIssueTypeScreenSchemeProjectAssociations",
|
|
17
|
+
"assignIssueTypeScreenSchemeToProject",
|
|
18
|
+
"updateIssueTypeScreenScheme",
|
|
19
|
+
"deleteIssueTypeScreenScheme",
|
|
20
|
+
"appendMappingsForIssueTypeScreenScheme",
|
|
21
|
+
"updateDefaultScreenScheme",
|
|
22
|
+
"removeMappingsFromIssueTypeScreenScheme",
|
|
23
|
+
"getProjectsForIssueTypeScreenScheme"
|
|
24
|
+
],
|
|
25
|
+
"external_name": "ph_request_type"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"definitions": {}
|
|
29
|
+
}
|
|
@@ -125,6 +125,48 @@
|
|
|
125
125
|
"mockFile": ""
|
|
126
126
|
}
|
|
127
127
|
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "getAttachmentContent",
|
|
131
|
+
"protocol": "REST",
|
|
132
|
+
"method": "GET",
|
|
133
|
+
"entitypath": "{base_path}/{version}/attachment/content/{pathv1}?{query}",
|
|
134
|
+
"requestSchema": "schema.json",
|
|
135
|
+
"responseSchema": "schema.json",
|
|
136
|
+
"timeout": 0,
|
|
137
|
+
"sendEmpty": false,
|
|
138
|
+
"sendGetBody": false,
|
|
139
|
+
"requestDatatype": "JSON",
|
|
140
|
+
"responseDatatype": "JSON",
|
|
141
|
+
"headers": {},
|
|
142
|
+
"responseObjects": [
|
|
143
|
+
{
|
|
144
|
+
"type": "default",
|
|
145
|
+
"key": "",
|
|
146
|
+
"mockFile": ""
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "getAttachmentThumbnail",
|
|
152
|
+
"protocol": "REST",
|
|
153
|
+
"method": "GET",
|
|
154
|
+
"entitypath": "{base_path}/{version}/attachment/thumbnail/{pathv1}?{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": ""
|
|
168
|
+
}
|
|
169
|
+
]
|
|
128
170
|
}
|
|
129
171
|
]
|
|
130
172
|
}
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
"deleteRestapi2attachmentid",
|
|
16
16
|
"getRestapi2attachmentidexpandhuman",
|
|
17
17
|
"getRestapi2attachmentidexpandraw",
|
|
18
|
-
"postRestapi2issueissueIdOrKeyattachments"
|
|
18
|
+
"postRestapi2issueissueIdOrKeyattachments",
|
|
19
|
+
"getAttachmentContent",
|
|
20
|
+
"getAttachmentThumbnail"
|
|
19
21
|
],
|
|
20
22
|
"external_name": "ph_request_type"
|
|
21
23
|
}
|
|
@@ -62,6 +62,128 @@
|
|
|
62
62
|
"mockFile": "mockdatafiles/postRestapi2field-default.json"
|
|
63
63
|
}
|
|
64
64
|
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "getFieldsPaginated",
|
|
68
|
+
"protocol": "REST",
|
|
69
|
+
"method": "GET",
|
|
70
|
+
"entitypath": "{base_path}/{version}/field/search?{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/getFieldsPaginated-default.json"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "updateCustomField",
|
|
89
|
+
"protocol": "REST",
|
|
90
|
+
"method": "PUT",
|
|
91
|
+
"entitypath": "{base_path}/{version}/field/{pathv1}?{query}",
|
|
92
|
+
"requestSchema": "schema.json",
|
|
93
|
+
"responseSchema": "schema.json",
|
|
94
|
+
"timeout": 0,
|
|
95
|
+
"sendEmpty": false,
|
|
96
|
+
"requestDatatype": "JSON",
|
|
97
|
+
"responseDatatype": "JSON",
|
|
98
|
+
"headers": {},
|
|
99
|
+
"responseObjects": [
|
|
100
|
+
{
|
|
101
|
+
"type": "default",
|
|
102
|
+
"key": "",
|
|
103
|
+
"mockFile": ""
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "getContextsForFieldDeprecated",
|
|
109
|
+
"protocol": "REST",
|
|
110
|
+
"method": "GET",
|
|
111
|
+
"entitypath": "{base_path}/{version}/field/{pathv1}/contexts?{query}",
|
|
112
|
+
"requestSchema": "schema.json",
|
|
113
|
+
"responseSchema": "schema.json",
|
|
114
|
+
"timeout": 0,
|
|
115
|
+
"sendEmpty": false,
|
|
116
|
+
"sendGetBody": false,
|
|
117
|
+
"requestDatatype": "JSON",
|
|
118
|
+
"responseDatatype": "JSON",
|
|
119
|
+
"headers": {},
|
|
120
|
+
"responseObjects": [
|
|
121
|
+
{
|
|
122
|
+
"type": "default",
|
|
123
|
+
"key": "",
|
|
124
|
+
"mockFile": "mockdatafiles/getContextsForFieldDeprecated-default.json"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "deleteCustomField",
|
|
130
|
+
"protocol": "REST",
|
|
131
|
+
"method": "DELETE",
|
|
132
|
+
"entitypath": "{base_path}/{version}/field/{pathv1}?{query}",
|
|
133
|
+
"requestSchema": "schema.json",
|
|
134
|
+
"responseSchema": "schema.json",
|
|
135
|
+
"timeout": 0,
|
|
136
|
+
"sendEmpty": false,
|
|
137
|
+
"requestDatatype": "JSON",
|
|
138
|
+
"responseDatatype": "JSON",
|
|
139
|
+
"headers": {},
|
|
140
|
+
"responseObjects": [
|
|
141
|
+
{
|
|
142
|
+
"type": "default",
|
|
143
|
+
"key": "",
|
|
144
|
+
"mockFile": ""
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "restoreCustomField",
|
|
150
|
+
"protocol": "REST",
|
|
151
|
+
"method": "POST",
|
|
152
|
+
"entitypath": "{base_path}/{version}/field/{pathv1}/restore?{query}",
|
|
153
|
+
"requestSchema": "schema.json",
|
|
154
|
+
"responseSchema": "schema.json",
|
|
155
|
+
"timeout": 0,
|
|
156
|
+
"sendEmpty": false,
|
|
157
|
+
"requestDatatype": "JSON",
|
|
158
|
+
"responseDatatype": "JSON",
|
|
159
|
+
"headers": {},
|
|
160
|
+
"responseObjects": [
|
|
161
|
+
{
|
|
162
|
+
"type": "default",
|
|
163
|
+
"key": "",
|
|
164
|
+
"mockFile": ""
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "trashCustomField",
|
|
170
|
+
"protocol": "REST",
|
|
171
|
+
"method": "POST",
|
|
172
|
+
"entitypath": "{base_path}/{version}/field/{pathv1}/trash?{query}",
|
|
173
|
+
"requestSchema": "schema.json",
|
|
174
|
+
"responseSchema": "schema.json",
|
|
175
|
+
"timeout": 0,
|
|
176
|
+
"sendEmpty": false,
|
|
177
|
+
"requestDatatype": "JSON",
|
|
178
|
+
"responseDatatype": "JSON",
|
|
179
|
+
"headers": {},
|
|
180
|
+
"responseObjects": [
|
|
181
|
+
{
|
|
182
|
+
"type": "default",
|
|
183
|
+
"key": "",
|
|
184
|
+
"mockFile": ""
|
|
185
|
+
}
|
|
186
|
+
]
|
|
65
187
|
}
|
|
66
188
|
]
|
|
67
189
|
}
|
|
@@ -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,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
|
+
}
|
|
@@ -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
|
}
|