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

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.

Related

How can I create a custom rule when changing board column in Azure Devops Boards?

I am trying to create a custom rule so that a custom field must be defined when moving a card to a specific board column but can't find how to do it.
Something in the lines of:
When board column changes value to "Deploy" make custom field "Target" required.
A user should not be able to move a card to column "Deploy" whithout field "Target" being defined.
Any suggestions?
There is a similar question but the only answer to that is using state changes isn't applicable for this particular column change.
The Board Column are not fields of work items as Shamrai mentioned. I am afraid it cannot be done by using the column Name.
The workaround is to map the columns to different states. And then add custom rule by using the workitem state changes.
Click the Gear icon on the Boards page, Navigate to Columns. See below:
You can add Custom State for User Story,Feature and Epic, if there are not enough states to map with the columns.
Go to Organization Settings--> Process under Boards-->Select the inherited process the your project using-->Click User Story(or Feature and Epic)-->Navigate to State and Add new State.
Now you can create the custom rule to make the Target field required when the state of the work item is changed (moved to a different column).
That`s a problem because Board Column, Board Lane, and Board Column Done fields are not available in the fields list to assign rules. I think you may try the following:
Add custom state "Deploy" and assign it to your column. Then use rules.
Create a custom application that queries Deploy without Target and returns such work items with comments "where is your target?" How can I find all work items in a given board column via Azure DevOps API? , How to update the work item from Powershell For VSTS?

Limit table in spotfire based on marked rows in another table

I have 2 tables in my visualization. One is a list of tasks to be done, and one is a list of repairs that have been done at each location. I want to be able to filter the repairs table by the locations of the highlighted tasks. Ergo if you marked a task that takes place at location 1, the second table would filter to only show repairs for location 1. Is that something that's doable?
Thanks in advance
This is pretty easy to do. You need to create a relation on the Location column between your two tables (Data table properties, Relations tab). Then create a details visualization (right click on "parent" table and select details visualization). Because you have created the relation already, it will ask you which table you want to be the "child". After selecting which table, you will be able to click on the parent, and it will filter in the child table. Also note, using the right click menu is engaging the data limiting with marking, which you will be able to see in the properties dialog, data menu. You don't have to use the right click menu to setup details visualizations. It's just easy.
I've written a lot about how to use relations and column matches. See links below. Relations integrate filtering, which is what you want. Column matches integrate marking.
https://www.bigmountainanalytics.com/apply-relations-and-column-matches-in-spotfire/
https://www.bigmountainanalytics.com/how-to-use-relations-in-spotfire/
https://www.bigmountainanalytics.com/how-to-use-column-matches-in-spotfire/

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.

Report Of Work Items & Their Parents

Hey Folks my org recently migrated from TFS 2017 to VSTS online. Our IT Finance team has a report that show work items along with their parents and your grandparents. It was built around a SQL query that looked at the backend SQL database. Is there a way to create a report of all work items and their parents in VSTS online?
Yes, it’s possible to show all the work items as parent/child relation in VSTS. Detail steps as below:
Create a new query with Tree of work items type.
Add the filter Work Item Type = [Any] both for top level work items and linked work items. And select Parent/Child Type of tree, then save the query.
Run the query and you will get all the work items with tree view relations.

drupal: how to have select list as a field draw from a content type?

I have a content type buildings and one called rooms. There are multiple rooms per building. I have a form for room and I want to have a list the user can choose from that is a list of the buildings, that is generated from the list of buildings.
How?
The only type of list I see is tags and I want this automated, not manually add to the list or tags.
Thanks in advance.
If you already have two content type, Building and Room.
You can download a module "EntityReference", then add an entity reference field to Building, ex. field_building_rooms, where you can select room as content type for the widget. Since the field allow you to add single or multiple value, you can have as many as rooms for one building.
This way, when you try to add a new Building, it'll allow you to choose single/multiple rooms to it as well.