Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

REST API : Query on Work Item giving error "You cannot supply a time with the date when running a query using date precision"

$
0
0
while executing following query using rest api getting error

Error Message: You cannot supply a time with the date when running a query using date precision

URL: https://[Account].visualstudio.com/DefaultCollection/_apis/wit/wiql?api-version=1.0-preview.2

Body:

{

  "query": "SELECT [System.Id] FROM WorkItems
                 WHERE [System.WorkItemType] = 'Bug'
                 and  [System.TeamProject] in ('Project1')
                 and ((([System.ChangedDate] > '2014-10-07 18:30:00.000')) and ([System.CreatedDate] <= '2014-10-08 18:30:00.000'))"
}


I want to consider Time precision as well with date, and even when we are fetching work item information using rest api call in that case system.changedate is actually datetime field.

so why its not allowing in query.

Is there any way such that query consider datetime precision for these fields.

Please Reply ASAP





Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>