I want to write a query to list all stories in the current sprint in ADO. There is an annotation called @CurrentInteration , but it is throwing the error
"Expecting team value. The error is caused by @CurrentIteration." How do I handle this?
Azure DevOps query error when using @CurrentInteration
According to the document:
Query by date or current iteration
We could specify a team when using @CurrentIteration macro in queries, as follow:

Besides, At this time, the Burnup and Burndown widgets do not support @CurrentIteration. You could add your request for this feature on our UserVoice site (https://developercommunity.visualstudio.com/content/idea/post.html?space=21 ), which is our main forum for product suggestions. Thank you for helping us build a better Azure DevOps.
If above not help you, please share how did you use it in the query so that we could reproduce it.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With