Forum Discussion

anu6121's avatar
anu6121
Icon for Microsoft rankMicrosoft
Feb 13, 2023

Azure REST API Get iteration error for Past and furture iterations.

Hi Team ,

Need assistance on below bug.

 

I am trying to use below Current iteration URL which is working fine 

GET https://dev.azure.com/{organization}/{project}/{team}/_apis/work/teamsettings/iterations/{id}?api-version=7.0$timeframe=current&api-version=6.0

But trying for past and furture iteration as below and getting an error.

 

past:

 

GET https://dev.azure.com/{organization}/{project}/{team}/_apis/work/teamsettings/iterations/{id}?api-version=7.0$timeframe=past&api-version=6.0

 

furture:

 

GET https://dev.azure.com/{organization}/{project}/{team}/_apis/work/teamsettings/iterations/{id}?api-version=7.0$timeframe=future&api-version=6.0

 

Below is the error:

 

{"$id":"1","innerException":null,"message":"timeframe","typeName":"Microsoft.TeamFoundation.Work.WebApi.Exceptions.InvalidTeamSettingsIterationException, Microsoft.TeamFoundation.Work.WebApi","typeKey":"InvalidTeamSettingsIterationException","errorCode":0,"eventId":0}

Regards,

anu

 

1 Reply

  • BeetleZuma's avatar
    BeetleZuma
    Copper Contributor
    I have the same problem. "past" and "future" iterations are not working as specified in the API reference.