Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Query items user was mentioned in

Tags:

azure-devops

Is there a way to query work items where a user was mentioned? I am able to receive 'hard-coded' results by querying for

"History"-"Contains word"-"\@Username",

but I want a generic version, which works for all users. (Opposed to writing one query for every user)

like image 643
floAr Avatar asked Aug 29 '16 07:08

floAr


People also ask

How do I query History in Azure DevOps?

You can use either the web portal or Team Explorer to view the history of a work item or find work items based on the contents of the History field. When you run a search on the contents of the History field, it returns only work items that have changes recorded in that field.

What is queries in Azure DevOps?

Queries are used to filter work items based on certain criteria. We can create queries from the web portal or from a supported client, such as Visual Studio Team Explorer and Team Explorer, save queries and share queries with others. So, lets see how to create a Query.

How do you tag someone on Azure DevOps?

The @mention control allows you to quickly add a user or group to a work item or pull request discussion. Using the people picker of the @mention control, you can select a project member or group from the search list, and they'll receive an email notifying them of your comment.

Where is in azure boards is used for which of the following?

listing work items to be shared with others, or for bulk updates. finding groups of work items that have something in common. creating status and trend charts htat can be added to dashboards.


1 Answers

Use this predicate:

  • Field: "ID"
  • Operator: "In"
  • Value: "@RecentMentions"

This automatically filters for work items, where current user has been mentioned.

I found it in predefined filter "Mentioned" in "Work Items" section. If you click on "Open in Queries" button, you will get a query with above filter. (This section can even remove the need for that query...)

Note: at present time, works only in VSTS.

like image 58
Jorge Pestano Avatar answered Sep 17 '22 23:09

Jorge Pestano