How to set the iteration field automatically to latest iteration? - azure-devops

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.

Related

Defining an Azure Board query that tracks work I have performed during current sprint - at any given time within that sprint

I am trying to come up with n Azure Board query to return the work I have performed during current sprint - which I am vaguely defining as:
Work In Current Sprint = [A] + [B]
where
A = work items where I completed development stage (or was decided at some point work is irrelevant) and
B = work items I created in current sprint, not necessarily assign to me nor my team (I spent time investigating an issue, and ended up, for instance, finding a bug, so I want this included in this "report").
The closest I could get is the query blow. Problem is it is still not quite accurate, since with regards to items I created during this sprint - I could not find a way to filter created items in this sprint only - results are showing up work items that CURRENTLY BELONG to current sprint, but not necessarily created in current sprint. The only way I see I can achieve what I want is using CreatedBy - but this only provides a "hardcoded" date range offset, at any given time. If I use an offset of 14 days backwards, running query at the last day of the sprint (considering a 2 week sprint duration) should work, but running the query at any day before that, during the sprint, will return stuff created in previous sprints.
I want this query to help me track "work I have performed during current sprint" (as defined above) at any given day within the sprint.
Any better ideas ?
You could use custom date in 'create date' to limit the work item.
And I notice you use 'work items and direct links', then you need set filters for 'Filters for linked work items' part(as you needed, like iteration path etc.). Otherwise it may return linked work item that belong to other iterations, according to the filled filter, like something belows:
I hope it could help.

The order column in Azure boards

I am using Azure DevOps boards and when I navigate to Backlogs in Azure Boards, I see a column named Order.
When I check/open the work items, they don't have a field named "order". There is no value seen for that column for us. We are not sure whats the purpose of such field/column and where we can enter the values for it.
Kindly share your information on this.
This column represents a sequence of your work. The mapped work item field depends on your team project process template: Backlog priority or stack rank order
As you drag and drop items within the backlog list, a background
process updates the Stack Rank (Agile and CMMI processes) or Backlog
Priority (Scrum process) fields
Additionally, the backlogs do not show the order if you enable parents in the view.
Helpful link: Fix display, reordering, and nesting issues

Increment Planning Query

Our teams are using Azure DevOps. We're using the Agile framework and an enterprise release management approach (essentially, SAFe). Our increments are based on the quarters of the year -- for us, this equals 6 sprints.
My goal is to be able to view work scheduled within the current increment as the sprints move along.
I currently have a query that displays current sprint plus the future 5, to give me 3 month's worth of work (see below).
The trouble with this is it has to be edited after each sprint so it only displays the current increment's work. (I have to change it to include the previous sprint and reduce the number of future sprints otherwise it doesn't display completed work in this increment, as well as showing upcoming work from the next increment.)
Increment Planning Query
Sorry for any inconvenience.
I am afraid there is no such increment planning query, that because the value of CurrentIteration will be different due to the change of the current date.
If you want use the #CurrentIteration macros, you have to modify this query after each sprint.
As workaround, you could specify the each Iteration value in the query, like:
With this workaround, we do not need modify the query after each sprint, just need update it after each quarter.
If above workaround not work for you, you could add your request for this feature on our UserVoice site (https://developercommunity.visualstudio.com/content/idea/post.html?space=21 ), which is our main forum for product suggestions. Thank you for helping us build a better Azure DevOps:
Hope this helps.

Can I recover Items from a deleted sprint?

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:

How to add an existing work item to a board?

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.