Welcome to MSDN Blogs Sign in | Join | Help

Work Item Rules Workarounds: Force selection of Reason

In our last post in this series, Sunder blogged about Closing down an iteration. Let’s take a look at another question: “How do I force people to select a reason?

We’ve had people come to us with the request to force their users to select a reason. The way State/Reason is implemented, there is always a default Reason. Therefore, its very easy for a user to just change the state, and accept the default Reason without thinking. Our customers wanted people to have to make a choice.

image

In the above example, the customer wants the Reason field to be blank by default.

Here is the workaround. The steps are:

1. Create a ResolvedReasonValidation field

2. Create a Form tab called “Validation Errors” and place ResolvedReasonValidation on it

3. Add a default Reason: “Select a reason” and a COPY rule on Resolved state

image

4. On each non-default reason, add a COPY rule

image

 

5. Add Rules on ResolvedReasonValidation

image

 

Put it all together, and this is what it looks like:

image

Published Tuesday, March 17, 2009 6:11 PM by Gregg Boer

Comments

# infoblog » Work Item Rules Workarounds: Force selection of Reason

# VSTS Links - 03/23/2009

Monday, March 23, 2009 7:50 AM by Team System News

Visual Studio Magazine   on Inside VSTS: Inside the TFS Databases, Part 2 Jakob Ehn on How To: automatically

# Work Item rules workaround: Deactivating a work item type

Tuesday, March 24, 2009 7:23 PM by Sunder Raman's Blog

My colleague, Gregg, and I have been posting a series of workarounds to achieve scenarios in Work Item

# Work Item rules workaround: Deactivating a work item type

Tuesday, March 31, 2009 2:17 PM by Teams WIT Tools

In our last post in this series, Gregg blogged about forcing selection of reason . Let’s take a look

Anonymous comments are disabled
 
Page view tracker