forked from Dedac/RestDataMappingPicklist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvss-extension.json
More file actions
187 lines (186 loc) · 7.16 KB
/
vss-extension.json
File metadata and controls
187 lines (186 loc) · 7.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
{
"manifestVersion": 1.0,
"id": "RestDataMappingPicklistForked",
"publisher": "EverAg",
"version": "0.4.5",
"name": "Rest Data Mapping Picklist Forked",
"description": "Load work item values from a specified REST endpoint and map additional REST data to your work item, with added support for PAT Authorization",
"public": false,
"icons": {
"default": "img/Logo.png"
},
"categories": [
"Azure Boards"
],
"targets": [
{
"id": "Microsoft.VisualStudio.Services.Cloud"
}
],
"repository": {
"type": "git",
"uri": "https://github.com/mikepollard1985/RestDataMappingPicklist"
},
"tags": [
"Work Items",
"Work Item Control",
"Picklist",
"Rest",
"Form",
"ServiceNow"
],
"content": {
"details": {
"path": "overview.md"
}
},
"scopes": [
"vso.work",
"vso.work_write"
],
"contributions": [
{
"id": "rest-data-mapping-picklist",
"type": "ms.vss-work-web.work-item-form-control",
"targets": [
"ms.vss-work-web.work-item-form"
],
"properties": {
"name": "Rest Data Mapping Picklist - Forked",
"uri": "/dist/selector.html",
"height" : 74,
"inputs": [
{
"id": "FieldName",
"name": "Select the field for this control.",
"description": "The field associated with the control, it will match the value from the rest service's key field.",
"type": "WorkItemField",
"properties": {
"workItemFieldTypes": ["String", "PlainText", "HTML"]
},
"validation": {
"dataType": "String",
"isRequired": true
}
},
{
"id": "RestServiceAddress",
"name": "Rest Service Address",
"description": "The URL for rest service from which you want to load data",
"validation": {
"dataType": "String",
"isRequired": true
}
},
{
"id": "RestServiceKeyField",
"name": "Rest Service Key Field",
"description": "Select the key field from the rest service that matches the control field",
"validation": {
"dataType": "String",
"isRequired": true
}
},
{
"id": "PathToArray",
"name": "JSON Path to the Array",
"description": "path within the returned JSON data to find the array of items listed - often something like 'data.result'",
"validation": {
"isRequired": false,
"dataType": "String"
}
},
{
"id": "RestServiceUserName",
"name": "Rest Service User Name / 'Bearer' / 'Basic' / 'PAT'",
"description": "The name of the property to load from the rest service, use 'Bearer', 'Basic' or 'PAT' for token auth",
"validation": {
"dataType": "String",
"isRequired": false
}
},
{
"id": "RestServicePassword",
"name": "Rest Service Password / Token",
"description": "Rest Service Password, passed as a bearer token if the username is 'Bearer', base64 encoded PAT username is 'PAT'",
"inputMode": "PasswordBox",
"isConfidential": true,
"validation": {
"isRequired": false,
"dataType": "String"
}
},
{
"id": "ErrorMessage",
"name": "Selection Not Found Error message",
"description": "Error message presented when the selected value is not found",
"validation": {
"isRequired": false,
"dataType": "String"
}
},
{
"id": "RestCallParameters",
"name": "Rest Call URL Parameters (JSON format)",
"description": "Additional fields and values to provide to the rest service as URL parameters, use $() to substitute in a field value from the work item",
"inputMode": "TextArea",
"validation": {
"isRequired": false,
"dataType": "String"
}
},
{
"id": "FieldMap",
"name": "Rest Service Field Map (JSON format)",
"description": "Map fields from the rest service fields on the Work Item by mapping them in a JSON format",
"inputMode": "TextArea",
"validation": {
"isRequired": false,
"dataType": "String"
}
},
{
"id": "HideFieldLabel",
"name": "Hide native Field label",
"description": "When checked, the native DevOps field label will not be displayed in the control",
"inputMode": "CheckBox",
"validation": {
"isRequired": false,
"dataType": "Boolean"
}
},
{
"id": "FilterFunction",
"name": "Filter Function",
"description": "Write a function body (in the form (item) => {your filter function string goes here, must return a boolean}) in javascript to filter the results from the rest service, the function should return true to include the item in the list, false to exclude it. i.e. 'return item.startsWith(`2024`)'",
"inputMode": "TextArea",
"validation": {
"isRequired": false,
"dataType": "String"
}
},
{
"id": "PermanentItems",
"name": "Permanent Items",
"description": "Comma separated list of items to be permanently added to the list, these will be added to the list before any rest service call is made",
"inputMode": "TextArea",
"validation": {
"isRequired": false,
"dataType": "String"
}
}
]
}
}
],
"files": [
{
"path": "dist",
"addressable": true
},
{
"path": "img",
"addressable":true
}
]
}