I am using the Azure DevOps connector with Power Automate to create a cloud flow that creates a bug in an Azure DevOps project when an email is received with a certain subject. When I specify an iteration name manually with text the flow works as expected. I want to dynamically have the bug created in the current iteration/sprint by using the @CurrentIteration macro, but am getting an error when testing.
I have the Iteration Path parameter of the create a new work item's advanced properties set as (and passed as a string in "quotes") in the raw inputs. My project name is White Wilson and the default project team is White Wilson Team.
@CurrentIteration('[White Wilson]/White Wilson Team')
This is the error message I receive:
TF401347: Invalid tree name given for work item -1, field 'System.IterationPath'.
Azure DevOps
These are the docs I read about the current iteration macro in Azure DevOps: https://docs.microsoft.com/en-us/azure/devops/boards/queries/query-by-date-or-current-iteration?view=azure-devops
And these are the docs the error referred me to: https://docs.microsoft.com/en-us/connectors/visualstudioteamservices/#known-issues-and-limitations