wiql error saving query Expected end of string. The error is caused by <<(>>
prabhatkk opened this issue · 0 comments
prabhatkk commented
When I try to save my wiql given below, I get error: wiql error saving query Expected end of string. The error is caused by
If I remove the code snippet “(‘[MyProject]\MyTeam’)” I can save. What is wrong in the syntax for the @currentIteration ?
SELECT
[System.Id],
[System.WorkItemType],
[System.Title],
[System.AssignedTo],
[System.State],
[System.Tags]
FROM workitems
WHERE
[System.TeamProject] = ‘MyProject’
AND (
[System.WorkItemType] = ‘User Story’
OR [System.WorkItemType] = ‘Defect’
)
AND [System.State] <> ‘’
AND [Invensys.Team] = ‘MyTeam’
AND [System.IterationPath] UNDER @currentIteration(‘[MyProject]\MyTeam’)
ORDER BY [System.Id]