Ask a questionAsk a question
 

AnswerTransition automation based on field values

  • Wednesday, November 04, 2009 7:52 PMShauncho Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Is it possible to automate a state change based on a field value? So when I have my Priority set to 2 when it enters a certain state, have it automatically trigger a transition from that state to another state because the Priority is set to 2?

Answers

  • Friday, November 06, 2009 9:38 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi ,

    As System.State is core filed of WorkItemType, so just custom work item type definition can not meet your requirement.

    You can do it, but you should use custom workitem control. Here is a article about custom wi control. You can do your own code in FieldChanged Event.


     Best Regards,
    Ruiz


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
    • Marked As Answer byShauncho Friday, November 06, 2009 4:54 PM
    •  

All Replies

  • Friday, November 06, 2009 9:38 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi ,

    As System.State is core filed of WorkItemType, so just custom work item type definition can not meet your requirement.

    You can do it, but you should use custom workitem control. Here is a article about custom wi control. You can do your own code in FieldChanged Event.


     Best Regards,
    Ruiz


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
    • Marked As Answer byShauncho Friday, November 06, 2009 4:54 PM
    •  
  • Friday, November 06, 2009 4:55 PMShauncho Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks for your help Ruiz. I figured custom controls was my only way but wanted to ask and make sure.

    Also, This blog proved extremely useful in understanding the construct and usage of custom controls.

    http://blogs.msdn.com/narend/archive/2006/10/02/How-to-use-Custom-Controls-in-Work-Item-Form.aspx