IMO it could be viable to do this for certain tasks (e.g., creating a service, creating a project, sending a CloudEvent, etc...), which would save us some lines of code.
Definition of Done
[ ] Research which tasks would be elegible for this execution (by trying it out)
[ ] Investigate the disadvantages of this approach
I found this in the Azure DevOps examples: https://github.com/microsoft/azure-pipelines-extensions/blob/78bf251236c84c4da622c125764b7e7434e98a2a/Extensions/ServiceNow/Src/Tasks/UpdateChangeRequest/UpdateChangeRequestV2/task.json#L118-L162
Basically it means that instead of
it is possible to use a http request chain, e.g.:
Another way I found is
IMO it could be viable to do this for certain tasks (e.g., creating a service, creating a project, sending a CloudEvent, etc...), which would save us some lines of code.
Definition of Done