Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Error: Failed to apply actions: An item with the same key has already been added. #22

Open
lwalker-kforce opened this issue Jan 29, 2014 · 2 comments

Comments

@lwalker-kforce
Copy link

When migrating Scrum 2.1 to Agile 6.1, after creating the Process Map file and generating the Actions file then Applying the Actions, the process fails with the following error:
Failed to apply actions: An item with the same key has already been added.

I have debugged it to the ImportWorkItemTypeDefinitionMorphAction.Execute(...) line 46 (the import).

1-29-2014 4-07-46 pm

Process Template Map:

<?xml version="1.0" encoding="utf-8" ?>
<processtemplatemap>
  <workitemtype from="Product Backlog Item" to="User Story" />
  <workitemtype from="Impediment" to="Issue" />
  <workitemfield from="Microsoft.VSTS.Common.BacklogPriority" to="Microsoft.VSTS.Common.StackRank" />  
  <workitemfield from="Microsoft.VSTS.Scheduling.Effort" to="Microsoft.VSTS.Scheduling.StoryPoints" />  
  <workitemstate type="Product Backlog Item" from="Approved" to="New" />
  <workitemstate type="Product Backlog Item" from="Committed" to="Active" />  
  <workitemstate type="Product Backlog Item" from="Done" to="Resolved" />  
  <workitemstate type="Task" from="To Do" to="New" />
  <workitemstate type="Task" from="In Progress" to="Active" />
  <workitemstate type="Task" from="Done" to="Closed" />  
  <workitemstatte type="Bug" from="New" to="Active" />
  <workitemstatte type="Bug" from="Approved" to="Active" />
  <workitemstatte type="Bug" from="Committed" to="Active" />
  <workitemstatte type="Bug" from="Done" to="Resolved" />
  <workitemstatte type="Bug" from="Removed" to="Closed" />  
  <workitemstate type="Issue" from="Open" to ="Active" />
</processtemplatemap>
@jessehouwing
Copy link
Collaborator

Fixed in: #25

@jessehouwing
Copy link
Collaborator

Note that there is a bug in this configuration as well:

<?xml version="1.0" encoding="utf-8" ?>
<processtemplatemap>
  <workitemtype from="Product Backlog Item" to="User Story" />
  <workitemtype from="Impediment" to="Issue" />
  <workitemfield from="Microsoft.VSTS.Common.BacklogPriority" to="Microsoft.VSTS.Common.StackRank" />  
  <workitemfield from="Microsoft.VSTS.Scheduling.Effort" to="Microsoft.VSTS.Scheduling.StoryPoints" />  
  <workitemstate type="Product Backlog Item" from="Approved" to="New" />
  <workitemstate type="Product Backlog Item" from="Committed" to="Active" />  
  <workitemstate type="Product Backlog Item" from="Done" to="Resolved" />  
  <workitemstate type="Task" from="To Do" to="New" />
  <workitemstate type="Task" from="In Progress" to="Active" />
  <workitemstate type="Task" from="Done" to="Closed" />  
  <workitemstatte type="Bug" from="New" to="Active" />
  <workitemstatte type="Bug" from="Approved" to="Active" />
  <workitemstatte type="Bug" from="Committed" to="Active" />
  <workitemstatte type="Bug" from="Done" to="Resolved" />
  <workitemstatte type="Bug" from="Removed" to="Closed" />  
  <!--<workitemstate type="Issue" from="Open" to ="Active" />-->
  <!-- TYPE follows the source work item type, not the goal. -->
  <workitemstate type="Impediment" from="Open" to ="Active" />
</processtemplatemap>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants