Workspace CheckIn after migrating to new REST WorkItems

HaydenY 21 Reputation points
2021-10-18T17:35:06.027+00:00

Hi, I have a solution that was using the old WIT OM that are marked as obsolete and I have migrated to using the new REST based .NET libraries. This was simple to do following the migration guide, but since our solution was using the old WorkItems in order to create a WorkItemCheckinInfo array for calling Microsoft.TeamFoundation.VersionControl.Client.Workspace's CheckIn function I am running into issues with finding how to use these new WorkItems in this way and cannot find documentation regarding this.

The WorkItemCheckinInfo object is not marked as obsolete even though the obsolete ...WorkItemTracking.Client.WorkItem is required for instantiating it so I am not sure if there is some other way to create this with the new ...WorkItemTracking.WebApi.Models.WorkItem objects or if I need to use different REST objects instead of the current Workspace object to checkin changes with these new WorkItems tied to it.

Any help would be appreciated, thanks!

Community Center | Not monitored
0 comments No comments
{count} votes

Answer accepted by question author
  1. Michael Taylor 61,176 Reputation points
    2021-10-18T18:00:43.777+00:00

    Support for Azure DevOps Services and Server are provided over on Stack Overflow currently. Please post your question there.

    In terms of work items related to check ins, refer to the Tfvc/Changesets object if you're using TFVC. When creating a changeset you associate the work items with it. It has been a long time since I worked with TFVC but I believe that is what you're looking for. A workspace is simply a local, cached copy of the server project code. TBH TFVC is not really the focus of Azure DevOps/REST APIs so you're going to probably have a harder time doing the same kinds of things over just switching to Git which is where everything is going.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.