Skip to content
New issue

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

VSTS REST API List Iterations does not accept 'past' or 'current' values for $timeframe #445

Closed
acleith opened this issue Jun 20, 2018 · 6 comments
Assignees
Labels
assigned-to-pm A docs.microsoft.com PM is on the case! resolved Work is done!

Comments

@acleith
Copy link

acleith commented Jun 20, 2018

Using the VSTS REST api version 4.1 AND 5.0 preview 1, making a GET request to list iterations using the $timeframe query parameter works when supplying 'current' as a timeframe value, but does not work when using 'past' or 'future' as per the documentation.

To Reproduce
Make a get request using the following URL (fill in appropriate values):
https://{CompanyName}.visualstudio.com/{ProjectName}/_apis/work/teamsettings/iterations?$timeframe=past&api-version=4.1

This returns:

{
    "$id": "1",
    "innerException": null,
    "message": "Specified argument was out of the range of valid values.\r\nParameter name: timeframe",
    "typeName": "System.ArgumentOutOfRangeException, mscorlib",
    "typeKey": "ArgumentOutOfRangeException",
    "errorCode": 0,
    "eventId": 0
}

Using either $timeframe=past or $timeframe=future reproduces the fault.
Using $timeframe=current works fine.

Expected behaviour
Using 'past' and 'future' as defined in the documentation here https://docs.microsoft.com/en-us/rest/api/vsts/work/iterations/list?view=vsts-rest-4.1 and https://docs.microsoft.com/en-us/rest/api/vsts/work/iterations/list?view=vsts-rest-5.0 should return a list of past and future iterations.

Desktop (please complete the following information):
n/a.

Smartphone (please complete the following information):
n/a

Additional context
Reproduced in Postman and C#, .Net framework 4.7.2 console application using NuGet package RestSharp v106.2.2.

@Powerhelmsman Powerhelmsman added triaged assigned-to-pm A docs.microsoft.com PM is on the case! labels Jun 20, 2018
@hellosnow
Copy link

@tedchamb could you please help to take a look?

@hellosnow
Copy link

Transfer to an issue of MicrosoftDocs/vsts-rest-api-specs#52, so that @wnjenkin can triage.

@Powerhelmsman
Copy link
Collaborator

@hellosnow Is MicrosoftDocs/vsts-rest-api-specs public? So user can be informed when the issue is resolved? If not, I prefer @wnjenkin assign the issue here.

@wnjenkin
Copy link

@Powerhelmsman yes it is public

@Powerhelmsman
Copy link
Collaborator

@stuntbeaver Your issue is transferred to MicrosoftDocs/vsts-rest-api-specs#52. @wnjenkin will help you there. I will close this issue in this repo now. Let me know if have other question so we can reopen it and continue the discussion.

@hellosnow
Copy link

@stuntbeaver refer to MicrosoftDocs/vsts-rest-api-specs#52, this issue has been resolved. The descriptions has been updated to show only current is supported. Hope it works for you.

@Powerhelmsman Powerhelmsman added the resolved Work is done! label Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned-to-pm A docs.microsoft.com PM is on the case! resolved Work is done!
Projects
None yet
Development

No branches or pull requests

4 participants