39

I am trying to move/copy my Work Items into a different project. I will need all the Epics, Features, User stories, Tasks, comments, links etc.

The steps given here show how to move a single work item, so my plan is to move my Epics which were only a handful and not have to move each and every user story/task. But unfortunately when the Epic is moved, the children are left behind.

Is there any other way to do this?

I saw this Excel solution, but doesn't look like its copying the comments.

Andy Lester
  • 91,102
  • 13
  • 100
  • 152
Gadam
  • 2,674
  • 8
  • 37
  • 56

1 Answers1

53

You may use a bulk move:

  1. Create new query to select your work items Create and save managed queries with the query editor: enter image description here
  2. Select all work items in the query result and select move: enter image description here
  3. Select your new team project: enter image description here
  4. Save all work items: enter image description here
Shamrai Aleksander
  • 13,096
  • 3
  • 24
  • 31
  • 1
    if you have experience with c# you may try this example: [Azure DevOps Rest Api Move Work items](https://oshamrai.wordpress.com/2019/01/29/azure-devops-services-rest-api-11-move-work-items-to-another-team-project/) – Shamrai Aleksander Jan 29 '19 at 22:40
  • Thank you this was perfect! Jist one thing, I was not able to see the results in 'Tree View' as the docs suggested. – Gadam Jan 30 '19 at 16:24
  • If you about manual moving through a query: it supports tree view. If you about c# example: yes it does not support tree view and if it is still actual I can update that example for tree view. – Shamrai Aleksander Jan 30 '19 at 17:23
  • @Gadam can you please tell us if you had back the tree view or if it is still bug thnaks – Haithem KAROUI May 10 '19 at 13:25
  • You can migrate work items directly from the backlog also. – dst3p Aug 15 '19 at 13:44
  • Thanks, this worked but it didn't move the associated repo files from old to new project. – Kumar Sambhav Pandey Aug 26 '20 at 14:37
  • 3
    Moves to a different project always seem to reset the state of the work item to New. This is clearly not what we want. Any ideas? – Dave Aug 31 '21 at 17:26
  • This is only on VSTS ? I can't find this menu on Devops on premise... – k4st0r42 Apr 26 '23 at 11:55
  • @k4st0r42 I did not check it on-premise, but the documentation says it is supported by `Azure DevOps Server 2022 - Azure DevOps Server 2019 | TFS 2018` https://learn.microsoft.com/en-us/azure/devops/boards/backlogs/bulk-modify-work-items?view=azure-devops – Shamrai Aleksander Apr 26 '23 at 11:59
  • 1
    I finally did it by editing the parent link – k4st0r42 Apr 28 '23 at 09:27