Hello,
I created a web request automation and this works:
https://dev.azure.com/instance/team/_apis/wit/workitems/$Bug?api-version=7.1-preview.3
However, this does not:
https://dev.azure.com/instance/team/_apis/wit/workitems/$Product Backlog Item?api-version=7.1-preview.3
I believe the spaces in "Product Backlog Item" are breaking the call. Is this a bug or feature? In either case is there a workaround?
Thanks
Hi @lcrusan and welcome to the community!
Yes, spaces are an issue with URLs so I would try encoding the spaces with something like this:
https://dev.azure.com/instance/team/_apis/wit/workitems/$Product Backlog%20Item?api-version=7.1-preview.3
That did it, thanks!
Hi @Mark Segall ,
we can do this work around if we have static value. But in my case, I am getting value from smart variable like - {{issue.summary}}. Any idea how we can handle spaces in endpoint URL if spaces come in this variable.
Hi @Ankit Rastogi - There are two options for this:
{{issue.summary.urlEncode}}
{{issue.summary.replace(" ","%20")}}
It looks like you're new here. Sign in or register to get started.