I´ve DELETED a Sprint by mistake and their related work items I went to the reclycle bin but I can't find those over there or the referred sprint. Has some one a solution or suggestion for me?
<TL;DR>
Work items aren't removed or deleted when deleting a sprint/iteration.
The Iteration field in Azure DevOps holds the Sprint value. When you delete an iteration, the Azure DevOps will ask what new iteration to assign the work items to. I think, by default, it assigns to the Team's Default Iteration:
The work items are still there, recreate the iteration if you want and move the items back into it.
If this isn't what you did, you may have removed the sprint from the Team's list of selected sprints.
If this is what happened, simply choose the + Select Iteration(s) button to add it again:
Related
I'm building a query in ADO and trying to get list of all of the improvement work items with a tag from the last three sprints. Ideally, I want to use this on a dashboard so need it to roll N-3. All the variables I've tried brings back all work items from the last three sprints or nothing. Has anyone else faced a similar issue.
ADO Query
You need to group the clauses. Tick all 3 checkboxes next to Or's for Iteration Path (green in the image below), then click the icon next to And/Or (blue in the image below)
I'm trying to collect the state of work items as it were in a particular iteration. I'm capable of getting the present state of the work items with a query to the REST API like this one:
https://analytics.dev.azure.com/{organisation}/{project}/_odata/v2.0/WorkItems?$expand=Iteration.
It does give me the creation, activation and completion date but I need to know which iteration it was created, activated and completed in
The solution turned out to be very simple. It had simply eluded me when searching
https://analytics.dev.azure.com/{organisation}/{project}/_odata/v2.0/WorkItemRevisions?$expand=Iteration
returns all revisions of the work items, including what iteration they were assigned to when the change happened
I need to know which iteration it was created, activated and completed
in
For this demand,you can try to use this rest api:
GET https://{instance}/{collection}/{project}/_apis/wit/workItems/{id}/revisions?api-version=5.0
With this rest api, you can list all the revisions of the work item,and in each revision,you can see the iteration path of the work item and the state of the work item at that time.
The downside is that it can only be used for one work item. If you want to collect all the work items, it will be a bit cumbersome.
Currently, we manually set the iteration as Current iteration in Azure Devops (VSTS):
Could you please help how this can be automated? So we do not have set for every iteration.
I have tried all possible ways through web UI.
To set a default Iteration path for newly created workitems, go to 'Project Settings > Team Configuration'.
Use #CurrentIteration for the default iteration path. This will automatically map to todays valid iteration (by start and end date).
There is no need to do that manually.
Once you work with iteration dates (Start date, End date) for your sprints, Azure DevOps will automatically determine which sprint is the current one.
All steps to schedule a sprint date are described here.
Tasks are a child of Backlog Items or Bugs and by default inherit the iteration of the Backlog Item or Bug that they are created under.
So you don't have to always set them manually, do the following:
If it is a new backlog item,
Go to the Backlog for your current sprint, create a backlog item or bug and the iteration path will automatically be set to the current sprint because you created it in the context of the sprint. Now when you add tasks they too will have the same iteration.
If backlog item exists but no tasks yet,
If you already have a backlog item that is sitting on the backlog (not in a sprint backlog yet) move the backlog item to your sprint first, then create tasks underneath
If your backlog items and tasks are already created,
You can set the iteration path for all of them at once by using multi select and edit (shift+click) to select then select ... menu and select edit. You can then select Iteration Path for the field and select the sprint you want to set and then click Save.
How do I add an existing work item to a the default board?
I can create work items under the Work Items section and I can also create work items by clicking + New Item in the Boards section.
But how can I add an existing item to that board?
I cannot find a setting, field, option anywhere to do that.
This is an organization Azure DevOps.
Your existing item needs to be "visible" to the board by existing in the appropriate iteration path and area path.
Without breaking out all the organization settings that allow you to detail this stuff, the easy way to know the value you need to use is to create a new item on the board you want, and use the values it gets in iteration path and area path on the existing item.
Illustrations:
Make sure your project has areas and iterations that make sense for you. Typically your project will start out with a root iteration path and three child iteration paths:
Iteration 1
Iteration 2
Iteration 3
Iteration paths are used to handle both backlogs and sprints for teams.
The combination of area path and iteration path allows admins to divide sections of the global backlog among the teams that are doing the work.
Think of the connection like a grid. If the rows are iteration paths, then the areas are the columns that divide that row (or vise versa). Multiple teams can operate on the same row (iteration/backlog), but they will only see the work items that also fall inside their assigned columns (areas).
When you create a team the area can be created for you, or you can assign an area to a team after it is created.
You can also change the backlog iteration for a team.
Now your team has a board and a backlog. Again, for your first team, this is done for you.
You have obviously already created some work items, so you'll need to move them into the right area and iteration to make them show up.
This can also be done in bulk from another team backlog
You can configure the board on what to be displayed.
By default, it's the Backlog items, so you will see the work items from your backlog (according to the sprints).
You can't just add a particular work item to the board.
See more details here.
I am a standlone dev and create my iterations in AzureDevOps. Every 2-3 weeks I create new iteration. Dashboard was updating accordingly - all the elements on it are querying the current iteration. One day when the new iteration needed to start it continued to show the old one. After several days I created a new iteration setting the timeframe from the current day at the time, append some features and tasks to it but this didn't update the dashboard. Till today it stays with the old stuck iteration.
When I check the queries al lof them behave the same way:
- I choose explicitely the name of the iteration - the query returns the results
- I choose the iteration as "#CurrentIteration" and the respective team and no results are shown.
It behaves like the current iteration is not from the selected team. But the iteration is really from the list of iterations for the team.
Any advice and help is greatly appreciated!
I found my mistake.
I was creating only the iteration through Project Settings ->Boards -> Project Configuration but was not assigning it to the team through Project Settings -> Boards-> Team Configuration.
Now everything works fine again.
I faced the same issue. All I did was:
logged out
cleared all cache
logged back in
It worked for me