API - Creating a new team; assign area path and a backlog configuration

Eric Agnitsch 11 Reputation points
2021-01-05T19:05:10.807+00:00

Hey there, I'm trying to create a Team in Azure using the API in this page --

https://learn.microsoft.com/en-us/rest/api/azure/devops/core/teams/create?view=azure-devops-rest-6.0

1) Creating the team itself works great, but when go to the Backlog of the new Team, it says i need to set up a backlog configuration for that new team. When i go to the Team configuration for that team, I see this.

53589-image.png

2) Usually when using the "New Team" button in the "Teams" section in the Project Settings, iit has a checkbox for "Create an area path with the name of the team". With the API, i do not see an option for that unless i missed it? :(

53500-image.png

So my question is, is there a way that i could create a Team through the API, have it default the backlog configuration and have the area path created? Basically wanting to simulate how it currently works with the "New Team" button in Project Settings?

Thank you!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,830 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Eric Agnitsch 11 Reputation points
    2021-01-05T21:53:00.897+00:00

    Found Something that works for what I need to do :)

    For 1) in the questions, Resource 1 shows how to modify the Backlog Iteration on the Team i created. Using this, i was able to assign a backlog iteration to my team.

    Resource 1 -- https://learn.microsoft.com/en-us/rest/api/azure/devops/work/teamsettings/update?view=azure-devops-rest-6.0#update-team-settings.-example-1

    For 2) in the questions, I found that the "Areas" and "Iterations" are used in the "Classification Nodes" of the API. So I was able to use Resource 2 to create an Area using the API. Then using part 2 of Resource 3, in Shamrai Aleksander's answer, I was able to add an Area path to the team i created with part 2 of Shamrai's answer.

    Resource 2 -- https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/classification%20nodes/create%20or%20update?view=azure-devops-rest-6.0#create-an-area
    Resource 3 -- https://stackoverflow.com/questions/60950391/how-to-update-area-path-for-a-team-using-the-azure-devops-api

    This gets me where I need to be. :) If there's another/easier way to do this, i would still love to hear about it! Thank you.

    2 people found this answer helpful.

  2. MayankBargali-MSFT 70,871 Reputation points
    2021-01-06T03:48:19.377+00:00

    Hi @Eric Agnitsch

    DevOps is not currently supported here on QnA. They're actively answering questions in dedicated forums here.
    https://developercommunity.visualstudio.com/

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.