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)
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.
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.
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.
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.
Use this predicate:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With