问题
I am trying to retrieve workitems from TFS using REST API. https://servername/tfs/collectionname/_apis/wit/workitems?ids='xxxx,yyyy,zzzz,....n' (where n count is 420). Each id is a 4 digit number. I could not retrieve more than 409 workitems. If the query exceed more than 409 ids, I receive "404 - File or directory not found" error. Please help me to find solution for this.
回答1:
I can reproduce this issue,it has restriction for the length of the strings when using the REST API.
In this case, we can not get all the work items in one time, we can get the work items separately, just call the API twice.
来源:https://stackoverflow.com/questions/44381745/is-there-any-restriction-for-number-of-characters-in-tfs-rest-api