We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node version: 8.9.4 Npm version: 5.6.0 OS and version: Windows 8 vsts-node-api version: 6.5.0 typescript: 2.8.3
I'm testing the vsts-node-api library with React and TypeScript and I came upon issue with getWorkItems method and Date parameter (AsOf parameter).
When i trigger my call i get 404 back. Same call Without Date parameter works as expected.
404 call goes to following URL: https://[URL]/tfs/DefaultCollection/_apis/wit/workItems?ids=358093%2C358094%2C358134%2C358135%2C358136&&$expand=4
The call fails because AsOf=[date] part which is missing between "&&".
const today: Date = new Date(); const featureIds = [358093, 358094, 358134, 358135, 358136]; // create connection object ... const workItemTrackingApi: IWorkItemTrackingApi = await connection.getWorkItemTrackingApi(); const features: WorkItem[] = await workItemTrackingApi.getWorkItems(featureIds, undefined, today, WorkItemExpand.All, undefined);
https://[URL]/tfs/DefaultCollection/_apis/wit/workItems?ids=358093%2C358094%2C358134%2C358135%2C358136&asof=[DATE]&$expand=4
https://[URL]/tfs/DefaultCollection/_apis/wit/workItems?ids=358093%2C358094%2C358134%2C358135%2C358136&&$expand=4
The text was updated successfully, but these errors were encountered:
I will take a look! Thanks for letting us know.
Sorry, something went wrong.
Is there any status update for this issue? Thanks.
Not yet, will try to take a look tomorrow.
Pretty sure this is the same issue as here: #98
I submitted a PR that should fix both.
stephenmichaelf
damccorm
Successfully merging a pull request may close this issue.
Environment
Node version: 8.9.4
Npm version: 5.6.0
OS and version: Windows 8
vsts-node-api version: 6.5.0
typescript: 2.8.3
Issue Description
I'm testing the vsts-node-api library with React and TypeScript and I came upon issue with getWorkItems method and Date parameter (AsOf parameter).
When i trigger my call i get 404 back. Same call Without Date parameter works as expected.
404 call goes to following URL:
https://[URL]/tfs/DefaultCollection/_apis/wit/workItems?ids=358093%2C358094%2C358134%2C358135%2C358136&&$expand=4
The call fails because AsOf=[date] part which is missing between "&&".
Steps to reproduce
Expected behaviour
https://[URL]/tfs/DefaultCollection/_apis/wit/workItems?ids=358093%2C358094%2C358134%2C358135%2C358136&asof=[DATE]&$expand=4
Actual behaviour
https://[URL]/tfs/DefaultCollection/_apis/wit/workItems?ids=358093%2C358094%2C358134%2C358135%2C358136&&$expand=4
The text was updated successfully, but these errors were encountered: