Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data sources for state and priority updated #552

Merged
merged 1 commit into from
Dec 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@
"name": "DesiredExitStatus",
"type": "pickList",
"label": "Desired status of change request",
"defaultValue": "New",
"required": "true",
"groupName": "completionOptions",
"helpMarkDown": "Choose or type status of change request that indicates the change request is ready to be implemented. Gate would succeed when the the change request status is same as the provided value.",
Expand Down
16 changes: 11 additions & 5 deletions Extensions/ServiceNow/Src/vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "vss-services-servicenowchangerequestmanagement",
"name": "ServiceNow Change Management",
"publisher": "ms-vscs-rm",
"version": "0.0.2",
"version": "0.0.3",
"public": true,
"description": "Integrate ServiceNow Change Management with Azure Pipelines",
"categories": [
Expand Down Expand Up @@ -88,13 +88,19 @@
"dataSources": [
{
"name": "Priority",
"endpointUrl": "{{endpoint.url}}/api/now/table/sys_choice?sysparm_query=element=priority^name=change_request&sysparm_fields=label",
"resultSelector": "jsonpath:$.result[*].label"
"endpointUrl": "{{endpoint.url}}/api/now/table/sys_choice?sysparm_query=element=priority^name={{table}}&sysparm_fields=label",
"resultSelector": "jsonpath:$.result[*].label",
"callbackContextTemplate": "{\"table\": \"task\"}",
"callbackRequiredTemplate": "{{#equals table \"change_request\"}}{{isEqualNumber result.count 0}}{{else}}false{{/equals}}",
"initialContextTemplate": "{\"table\": \"change_request\"}"
},
{
"name": "State",
"endpointUrl": "{{endpoint.url}}/api/now/table/sys_choice?sysparm_query=element=state^name=change_request&sysparm_fields=label",
"resultSelector": "jsonpath:$.result[*].label"
"endpointUrl": "{{endpoint.url}}/api/now/table/sys_choice?sysparm_query=element=state^name={{table}}&sysparm_fields=label",
"resultSelector": "jsonpath:$.result[*].label",
"callbackContextTemplate": "{\"table\": \"task\"}",
"callbackRequiredTemplate": "{{#equals table \"change_request\"}}{{isEqualNumber result.count 0}}{{else}}false{{/equals}}",
"initialContextTemplate": "{\"table\": \"change_request\"}"
},
{
"name": "Risk",
Expand Down