{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-node-api/issues/191","repository_url":"https://api.github.com/repos/Microsoft/vsts-node-api","labels_url":"https://api.github.com/repos/Microsoft/vsts-node-api/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-node-api/issues/191/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-node-api/issues/191/events","html_url":"https://github.com/Microsoft/vsts-node-api/issues/191","id":335873011,"node_id":"MDU6SXNzdWUzMzU4NzMwMTE=","number":191,"title":"getWorkItems AsOf Date fails","user":{"login":"Ninido","id":17885547,"node_id":"MDQ6VXNlcjE3ODg1NTQ3","avatar_url":"https://avatars1.githubusercontent.com/u/17885547?v=4","gravatar_id":"","url":"https://api.github.com/users/Ninido","html_url":"https://github.com/Ninido","followers_url":"https://api.github.com/users/Ninido/followers","following_url":"https://api.github.com/users/Ninido/following{/other_user}","gists_url":"https://api.github.com/users/Ninido/gists{/gist_id}","starred_url":"https://api.github.com/users/Ninido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ninido/subscriptions","organizations_url":"https://api.github.com/users/Ninido/orgs","repos_url":"https://api.github.com/users/Ninido/repos","events_url":"https://api.github.com/users/Ninido/events{/privacy}","received_events_url":"https://api.github.com/users/Ninido/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"stephenmichaelf","id":450490,"node_id":"MDQ6VXNlcjQ1MDQ5MA==","avatar_url":"https://avatars1.githubusercontent.com/u/450490?v=4","gravatar_id":"","url":"https://api.github.com/users/stephenmichaelf","html_url":"https://github.com/stephenmichaelf","followers_url":"https://api.github.com/users/stephenmichaelf/followers","following_url":"https://api.github.com/users/stephenmichaelf/following{/other_user}","gists_url":"https://api.github.com/users/stephenmichaelf/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenmichaelf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenmichaelf/subscriptions","organizations_url":"https://api.github.com/users/stephenmichaelf/orgs","repos_url":"https://api.github.com/users/stephenmichaelf/repos","events_url":"https://api.github.com/users/stephenmichaelf/events{/privacy}","received_events_url":"https://api.github.com/users/stephenmichaelf/received_events","type":"User","site_admin":false},"assignees":[{"login":"stephenmichaelf","id":450490,"node_id":"MDQ6VXNlcjQ1MDQ5MA==","avatar_url":"https://avatars1.githubusercontent.com/u/450490?v=4","gravatar_id":"","url":"https://api.github.com/users/stephenmichaelf","html_url":"https://github.com/stephenmichaelf","followers_url":"https://api.github.com/users/stephenmichaelf/followers","following_url":"https://api.github.com/users/stephenmichaelf/following{/other_user}","gists_url":"https://api.github.com/users/stephenmichaelf/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenmichaelf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenmichaelf/subscriptions","organizations_url":"https://api.github.com/users/stephenmichaelf/orgs","repos_url":"https://api.github.com/users/stephenmichaelf/repos","events_url":"https://api.github.com/users/stephenmichaelf/events{/privacy}","received_events_url":"https://api.github.com/users/stephenmichaelf/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-06-26T15:24:58Z","updated_at":"2018-09-05T16:56:21Z","closed_at":null,"author_association":"NONE","body":"### Environment\r\nNode version: 8.9.4\r\nNpm version: 5.6.0 \r\nOS and version: Windows 8\r\nvsts-node-api version: 6.5.0\r\ntypescript: 2.8.3\r\n\r\n### Issue Description\r\nI'm testing the vsts-node-api library with React and TypeScript and I came upon issue with getWorkItems method and Date parameter (AsOf parameter). \r\n\r\nWhen i trigger my call i get 404 back. Same call Without Date parameter works as expected.\r\n\r\n404 call goes to following URL:\r\nhttps://[URL]/tfs/DefaultCollection/_apis/wit/workItems?ids=358093%2C358094%2C358134%2C358135%2C358136&&$expand=4\r\n\r\nThe call fails because AsOf=[date] part which is missing between \"&&\". \r\n\r\n### Steps to reproduce\r\n```\r\nconst today: Date = new Date();\r\nconst featureIds = [358093, 358094, 358134, 358135, 358136];\r\n// create connection object ...\r\nconst workItemTrackingApi: IWorkItemTrackingApi = await connection.getWorkItemTrackingApi();\r\nconst features: WorkItem[] = await workItemTrackingApi.getWorkItems(featureIds, undefined, today, WorkItemExpand.All, undefined);\r\n```\r\n### Expected behaviour\r\nhttps://[URL]/tfs/DefaultCollection/_apis/wit/workItems?ids=358093%2C358094%2C358134%2C358135%2C358136&asof=[DATE]&$expand=4\r\n\r\n### Actual behaviour\r\nhttps://[URL]/tfs/DefaultCollection/_apis/wit/workItems?ids=358093%2C358094%2C358134%2C358135%2C358136&&$expand=4\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-node-api/issues/comments/418803650","html_url":"https://github.com/Microsoft/vsts-node-api/issues/191#issuecomment-418803650","issue_url":"https://api.github.com/repos/Microsoft/vsts-node-api/issues/191","id":418803650,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODgwMzY1MA==","user":{"login":"damccorm","id":42773683,"node_id":"MDQ6VXNlcjQyNzczNjgz","avatar_url":"https://avatars2.githubusercontent.com/u/42773683?v=4","gravatar_id":"","url":"https://api.github.com/users/damccorm","html_url":"https://github.com/damccorm","followers_url":"https://api.github.com/users/damccorm/followers","following_url":"https://api.github.com/users/damccorm/following{/other_user}","gists_url":"https://api.github.com/users/damccorm/gists{/gist_id}","starred_url":"https://api.github.com/users/damccorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damccorm/subscriptions","organizations_url":"https://api.github.com/users/damccorm/orgs","repos_url":"https://api.github.com/users/damccorm/repos","events_url":"https://api.github.com/users/damccorm/events{/privacy}","received_events_url":"https://api.github.com/users/damccorm/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T16:56:21Z","updated_at":"2018-09-05T16:56:21Z","author_association":"NONE","body":"Pretty sure this is the same issue as here: https://github.com/Microsoft/vsts-node-api/issues/98\r\n\r\nI submitted a PR that should fix both."}}
{"actor":{"display_login":"damccorm"}}