Is it possible to update a changeset to include a reference to a work item after the check in has occurred? For instance you can right click on a changeset, and request a review (rather than requesting a review based on a shelveset before check in).
This may not be "best practices", but in that scenario is it possible to add a reference to that code review to the change set? The code review of course has a reference to the changeset, but it is not a two way association.
Open the Work Item, select "All Links", select the "Link To" button, then "Changeset".
You can then either enter the changeset number, or use "..." to browse.
To manually associate a changeset to a code review so that the code review shows up as a related work item in that changeset's details requires you to modify the work item form for the Code Review Request work item type. This requires the use of the TFS Process Template Editor.
Download and install the appropriate version of the Process Template Editor based on the version of Visual Studio that you have:
Once the Process Template Editor is installed, follow these steps to update the Code Review Request work item form.
<LinksControlOptionsType>
<LinkColumns>
<LinkColumn RefName="System.Title" />
<LinkColumn LinkAttribute="System.Links.Comment" />
</LinkColumns>
<WorkItemLinkFilters FilterType="excludeAll" />
<ExternalLinkFilters FilterType="include">
<Filter LinkType="Fixed in Changeset" />
</ExternalLinkFilters>
</LinksControlOptionsType>
.wit
extension and one with a .xml
extension..XML
file, and click Open. Then click OK.After updating the work item type definition, users may first need to click the refresh button in Team Explorer or in the browser the changes will be recognized.
Note that you can also conduct a code review on a checked-in changeset by going to the history right-clicking on the changeset and selecting
Here is a screenshot of a shared query my team uses to find a code review:
I can find a code review work item for a specific work item by entering that work Item number in the filter field on the results tab for the query in the screenshot I attached.
This way, I can find the code review work item for any changeset, as long as that changeset was associated with a TFS work item.
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