locked
How to condition transition between two User Story states with child WI (tasks) opening?

    Frage

  • Hi all

    One of the PMOs' most time consuming tasks is to make sure work items (User Stories) are going to dev only when they are broken to tasks, and proper time estimations on the tasks.

    I am searching for a solution that will not allow changing a US state from "Design" to "active" unless it has:

    1. child tasks under it

    2. work hours assigned to those tasks (estimated)

    Can anyone help with a simple solution?

    (Using TFS 2010 and 2011 power tool)

     

    thanks

     

    Roi


    Roi Isak
    Dienstag, 27. Dezember 2011 15:41

Antworten

  • Hello Roi,

    Thanks for your post.

    However, I don’t think there is one simple approach to deal with your issue. As currently in the TFS or VS, there is no available feature or option for you to restrict one from changing one work item’s status from one value to another value based on the linked work item.

    And one way I can think out is that you can create web service to listen to the WorkItemChangedEvent, and once that event is triggered, you use TFS API to find if the type of that work item is “User Story”. If so, you will check if its current state is “Active”, and if so, please check if it has linked task work items and the tasks already has the estimated value set.

    You can refer to this blog for further information about subscribe WorkItemChangedEvent event:
    http://blogs.msdn.com/b/vishalag/archive/2006/11/13/subscribe-to-team-foundation-server-tfs-event-workitemchangedevent.aspx

    Thanks.


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us
    Donnerstag, 29. Dezember 2011 09:01
    Moderator

Alle Antworten

  • Hello Roi,

    Thanks for your post.

    However, I don’t think there is one simple approach to deal with your issue. As currently in the TFS or VS, there is no available feature or option for you to restrict one from changing one work item’s status from one value to another value based on the linked work item.

    And one way I can think out is that you can create web service to listen to the WorkItemChangedEvent, and once that event is triggered, you use TFS API to find if the type of that work item is “User Story”. If so, you will check if its current state is “Active”, and if so, please check if it has linked task work items and the tasks already has the estimated value set.

    You can refer to this blog for further information about subscribe WorkItemChangedEvent event:
    http://blogs.msdn.com/b/vishalag/archive/2006/11/13/subscribe-to-team-foundation-server-tfs-event-workitemchangedevent.aspx

    Thanks.


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us
    Donnerstag, 29. Dezember 2011 09:01
    Moderator
  • Hi Vicky, 

    Thanks for responding, I will try and update..

    thanks again

     

    Roi


    Roi Isak
    Donnerstag, 5. Januar 2012 07:54
  • Hi Roi,

    Were you able to get the resolution for this issue.

    If yes, could you please share the same. It would be really helpful.

    Thanks,

    Alankar

    Freitag, 10. Februar 2012 10:29