mohitbagra / vsts-extensions

Repo holding all my VSTS extensions
MIT License
46 stars 30 forks source link

WIT One Click Action For User Story -- Add a linked child task creates an unparented task #87

Open mimurt opened 3 years ago

mimurt commented 3 years ago

I have a OneClick Action configured for a user story to add a linked child task following a task template. I have had to disable this rule for now since it creates unparented tasks erroneously, even though it is configured to create a LINKED CHILD task. Note this seems to change behavior with the 'Auto Create Work Item' setting. If this box is checked the work item is linked properly, but then the task does not respect project default iteration path (@CurrentIteration) and simply adds the task with no iteration path (OneITVSO) image

YggY commented 2 years ago

To copy iteration and area from the originating work item, add this in the Item Template used for the Task: image

Also, technically the work item that was created is not unparented, but it's parent resides somewhere else, so it only shows as unparented in views where the area of the parent is not visible.

HHansen90 commented 2 years ago

If anybody has the same problem: you have to save the parent work item after creating the new child! Without this the connection / link between the two work items isn't saved!

You can use the One Click Action Framework to auto save i.e. image