AzureDevops : howto maintain sprint order in query? - azure-devops

When drag-dropping items in Boards | Sprints one can change the order. We use this while discussing with the team and use that order as 'what should be done first'.
In a query selecting items from the current sprint, that order is not preserved and there seems no field to filter on to get the items in the same order as in the sprint.
Any suggestions ?

According to your requirements, you could try to use the “Backlog priority(Scrum) or stack rank(Agile, CMMI, Basic)” field to order the work item in query.
Here are the steps:
Step1 : Select the “Tree of work items” query and set the Filter options :”Parent/Child”
Step2: Add the column “Backlog priority“ or ”stack rank ”. You could set the column as ascending order.
Then the sorting in query will be similar to that in sprint.
Here is a doc about “Backlog priority “or ”stack rank ”.

Related

Azure DevOps reorder work items in query result

Is there a way I can reorder work items from a query results as I would normally do with backlog work items?
I'm using the order of work items in the backlog to set the order of issues to address, I would like to use queries to view work items by certain criteria (cross-project) so the backlog board is not a good choice for me.
thank
The description is little confusing, but if you just want to order your query result(according to the title of this thread) by specific condition, the wiql would be very helpful.
Add the Wiql Editor extension to your organization, then create a query with the other conditions you need, click the "Edit query wiql" and update the query wiql.
For information about wiql syntax, please check Syntax for the Work Item Query Language (WIQL), the order by would be the one you are looking for.

Is it possible to create a rollup column for a query?

I am attempting to create a rollup column for Feature 123 to sum up story points for all User Stories who have Feature 123 as a parent. Furthermore, I would like this rollup column to show up as a query result.
However, I noticed that if I click "Queries", there is no "Add a rollup column". How can I configure Azure DevOps so that the "Add a rollup column" shows up underneath "Add a column"?
Here is some rollup column documentation I've been following.
Add a rollup column feature is not supported for Queries. Please check document here for where Rollup can be used.
Alternatively you can create a flat list query that sums the values of a field you specify as described in above document. Check here for more information about work tracking charts.
You can also submit a feature(Click suggest a feature and choose Azure devops) to Microsoft development team, hope they will consider adding rollup feature to query results.

How to filter new work items from notifications?

I'm working in Azure DevOps and have a notification query set to alert me when an iteration path or area path is changed. Unfortunately anytime a new item is created, it is viewed as changed. I need to refine this query to disclude "New" items.
The Notifications Query fields/operators and values are not as expansive as they are when building a regular query (Boards > Queries).
Here is the query:
Notifications Query in Azure DevOps
Ideally the results of this query would only be changes to existing items, but no new items.
You can add the following filter criteria:
Rev > 1
New work items are created with a Rev of 1 and subsequent modifications will increment that rev/revision/version number.

Can I see the backlog as a treeview when filtering out done items on Azure Boards?

I'm using the basic work item process in Azure DevOps.
If I look at my backlog without any filters, then it shows me a hierarchy, with epics as the top-level items, then issues and then work items.
If I filter this to only show items that are to do or doing, it shows them as a flat list, not a hierarchy.
Is there any way to see the items as a hierarchy, but filter out done items?
Update following Shayki Abramczyk's comment
The options button doesn't include an option to show parents...
Go to the Work Item Query tab and create a work item query. Configure it to Tree view and let it follow the parent/child relation.
You can filter on the top level (top part of the query editor) and the lower levels (bottom part of the query editor). Use the State in filter to select multiple states. You can't multi-select them in the UI, so typing is required:
PS: The , is the list separator in most languages, but sometimes you need to use ;.
If you want to see parents when ANY child leaf is still open, set the Filter: Match top-level items first to Filter: Match child-level items first.
To specify the order, add the Backlog Priority field to the query and use the table header to sort by it:
Or use the Sorting option in the "Choose Columns" fly-out:
Note: The exact field name differs per Process template. Backlog Priority is for the Scrum Template, Stackrank for CMMI and Agile and Basic:
An easy way to get started is to take the board view closest to what you want and save it as a work item query.

Pick list items in VSTS gets auto sorted

I'm trying to add some items (strings) to a pick list in VSTS. The items get auto sorted alphabetically (ascending order).
Below is the scenario:
I entered 'test' then 'abc' and then 'xyz', but it auto sorts and displays 'abc' then 'test' and then 'xyz'.
Is there any way to avoid this sorting and the items should be inserted in the order they were entered?
And I want to achieve this without writing an extension.
Yes, the values for the picklist (string) Type field can only ordered by alphabet so far.
But there has an user voice Custom Sort Order for TFS Fields (for VSTS, added in comment) about customzing sort order for fields, and you can vote and follow up.
if you are using VSTS, you cannot avoid the sorting or have your own sorting for a list field.