TFS 2017 Work item query for specific release - tfs

Is there any way to query work items that are part of a specific Release?
Thanks

There isn't the way to achieve that with query. You can try to build a extension to get work items of specific release.
Check this thread: TFS 2017 Release Management: How to display parent PBI for Tasks under Release

It can't be achieved by creating a basic query, we can see all the associated work items in release Work Items tab.
You can also check this question may be inspired

Related

TFS 2017 Query Related Items In Build upon release

I've received a request to create a custom report email for our executives. When we do a major release they want a list of Features of that release. What i need to do is read the related Tasks to the release then traverse up parent nodes until i get to the features that are marked with a tag "Executive". My Issue is that I can't find any document on how get the "Work items linked to associated changes".
I've been able to just through to get the specific build
GET http://XXX.MYTFSSERVER.COM/tfs/Collection/Project/e5e632e2-ae70-41c9-9d72-6686d2375f14/_apis/build/Builds/69330
But I don't see any link to get the workitems associated to the build.
Releases already do this out-of-the-box. On the Work Items tab of a release, you can have it generate an email that contains all of the work items associated with that release relative to an earlier release.
There isn't any build-in way to achieve this such as through TFS work item query. You need to build a extension to get all work items of specific release and filter them later.
The steps to achieve that with extension:
Get specify release to get build id
Get work items of that build per build id
Get related work items
Filter the work items which you actually need
A detail simple code of extension to get work items of specific release that you can refer to this link: TFS 2017 Release Management: How to display parent PBI for Tasks under Release

Modify Default Sprint Backlog Query

We've recently added a new workflow state "Released" to both our product backlog item (PBI) and bug templates. Unfortunately, when a PBI or bug is marked "Released" it no longer appears in our default sprint queries. Is there a way to change the default sprint queries so that this new workflow is included? We're using TFS 2015.
Any help would be greatly appreciated!
You cant modify the Query, but you don't need to.
You do need to add that new State to the Process Configuration so that TFS knows what to do with it. You need to mapp the new state to one of the meta-states; "Proposed", "InProgress", or "Completed".
https://www.visualstudio.com/en-gb/docs/work/reference/process-configuration-xml-element#map
Once you have added the map work items should appear on the relevant board.

Does TFS support multiple pending changelists like Perforce?

I am used to working with Perforce and I really like the ability to be able to group checked out files under different pending changelists. For example, if I am working on two bugs at the same time and the changes made for them can be grouped separately.
I am unable to find this functionality in TFS. Is this supported? If no, what is the best practice around it?
I am using VS 2015 Professional with TFS Server 2015.
No, it's not supported with pending changelists in TFS for now.
To be a workaround, this is possible using the Suspend/Resume feature in Visual Studio 2012 and above. It will allow you to keep multiple shelvesets, associated to multiple workitems. Only problem is that you can't have all two bugs open at the same time, so you'll have to check them in one by one.
More detail info please refer this link: Suspend your work and manage your shelvesets

Get list of bugs linked to workItems in TFS

What would be the query to get list of all bugs linked to particular workitem in TFS 2012?
or any other way to get list?
The process template is MSF for Agile Software Development v6.0.
Thanks!
Here is an example for looking for work items that have a bug linked to them:
Make sure you change the query type to work Items and Direct Links. You can filter down either the main query, or for the linked work items.

TFS Customise Check-In Action on Work Items beyond Resolve or Associate

Can I add an additional option to the linking of work items to a checkin in TFS? TFS has Associate and Resolve, but I would like to have another option to move the work item to a custom state.
I don't think you can customize the option on the work items associated with the changeset because it is an enum:
http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.checkinworkitemaction.aspx
If it's an important scenario for your work you might want to make the suggestion to the TFS team for the next release.
Hope this helps.

Resources