AzureDevOps Tree-query with 3 filtered levels - azure-devops

I need a tree query to display stuctured view of my backlog. I need to see epics, features und product backlog items in a hierarchical order. I found out how to filter elements of the 1st level (epics) an how to filter elements of the last level (pbi). But what i need is to filter elements of the second level. Is there any way to get it to work?
best
martin
i tried different combinations of filters

Not really, but there is a trick:
Parent
(
Work item type: Epic
and ...
and ...
)
Child
(
work item type: feature
and ...
and ...
)
or
(
work item type: PBI
and ...
and ...
)
Tree based Query, Following Parent/Child.

Parent
(
Work item type: Epic
and tags contains 'epic-filter'
and ...
)
Child
(
work item type: feature
and tags contains 'feature-filter'
and ...
)
or
(
work item type: PBI
and tags contains 'PBI-filter'
and ...
)
The query would find all ...
features filtered by feature-filter underneath the filtered epics
AND
PBIs filtered by PBI-filter underneath the filtered epics
... but unfortunately also their direct parent. That means that the query would only find filtered PBIs filtered by the PBI-filter, but also its parent-features outside the feature-filter ;(

Related

AzureDevops : howto maintain sprint order in query?

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 ”.

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.

Can you add a column to show the Parent of a Work Item in a flat list Azure DevOps query?

In DevOps, I'd like to have a flat list query of work list items, and the parent of that work item in a separate column. While tree view works in retrieving a hierarchy of parent items filtered by the child item, I'd simply like a flat list of tasks with a User Story/Bug column to the right (possibly even the feature of that User Story/Bug in another adjacent column). I can't find anything in the DevOps documentation to accomplish this. Can someone push me in the right direction?
Can you add a column to show the Parent of a Work Item in a flat list DevOps query?
I am afraid you could not add a column to show the Parent of a Work Item in a flat list DevOps query. That because there is no Parent id column in the column options.
You can custom a field (like Parent Id) in the work item when parent was assigned, like:
We can sort via the custom fields and get a list of all the parent work items first.
Besides, there is a similar user voice about it, you can vote and add your comments for this feedback. When there are enough communities vote and add comments for this feedback, the product team member will take this feedback seriously:
~~"Parent ID" as Column Option in Queries~~
The feedback suggestion that has the most votes is this one: Add “Parent” column to Queries as well
Hope this helps.

Including and Excluding Filter values based on a particular criteria

Attached is the mock data on which we are trying to do the following :
We have Configuration Id : which is a part of a car like dashboard of the car or tyres etc.
Then we have part attachments which tells you about the parts that make up an entire configuration. For eg : 'head lights', 'rear lights' and 'fog lamps' make up 'Lights'.
Problem Statement : We need to have 2 filters : Part attachment included and excluded such that, when part attachments included is selected as steering then I get 3 rows(marked in yellow in column E) based on selection. But in the part attachments excluded filter, we don't want the configuration id where the part attachment = 'Headlight'. This means that row no 17 should be eliminated when filtering gout headlamps from the filter.
So basically when part attachment excluded filter excludes 'headlight' then data in row no 17 should not be show in tableau.
I found this a little difficult to implement using normal filters in tableau.
Using normal filter you won't be able to achieve this, Try below method:
Create two parameters:
Include and exclude and take the respective database fields using the list radio button.
Now create 2 calcualted fields:
Include:
Parameter1 = Databasefield
Exclude:
Parameter2= database field
Now when placing the two parameters on to filters for include select True and for Exclude select False

Find most common shared vertices in OrientDB

I'm currently evaluating OrientDB (2.1.16) as a possible solution to building a similarity recommender. To that end, I'd love some help writing an initial query that accomplishes the following:
Vertex:Maker -(Edge:Produced)-> Vertex:Item -(Edge:TaggedBy)-> Vertex:Tag
I'd like to select a particular Item (V1) and get a list back of other Items (Vn) ordered by the number of Tags shared in common with V1;
By extension, I'd like to take a selected Maker (V2) and traverse through Items to get an ordered list of Makers (and the traversed Items, if possible) who share Tags.
There isn't an awful lot of detailed documentation on the application of intersect in this way. No unusual constraints in particular. There would be thousands of Items and Makers and probably 10x that many Tags.
I tried with this little graph example
I used this query
select item.name, count(tag)from (
select from (
MATCH {
CLASS:Item, AS:item, WHERE: (name<>'v1')
}
.out("TaggedBy"){AS:tag}
return item, tag
) where tag in (
select expand(tag) from (
MATCH {
CLASS:Item, AS:item, WHERE: (name='v1')
}.out("TaggedBy"){AS:tag}
return tag
)
)
) group by item order by count desc
and I got this result
Hope it helps.