index > Team Foundation Server - Work Item Tracking > Transition rules

Transition rules


I would like to code a rule that allows a particular transition only for certain MyCompany.ChangeRequest.DefectType{s}.

e.g.:

Transition from "Submitted" to "Reviewed" should only be allowed if

MyCompany.ChangeRequest.DefectType = "type1" or MyCompany.ChangeRequest.DefectType = "type2"

Can someone give me syntax for this please? I don't find the MSDN "Scoping Field Rules by State, Transition, or Reason" article very helpful as the rules are listed in C# rather than XML (why?!?!?!?!).

Acanthus
Our rules engine was not designed for that - you cannot make enable or disable transition based on a value of another field. You could try to come out with some workaround though - like making defect type part of your state definition or by defining rules for some field that would make that field invalid during the transition when the field value is invalid.
Aliaksei Baturytski - MSFT
reply 2

You can use google to search for other answers

 

More Articles

Problem in merging & publishing mpps
Work Item Classification and Project Hierarchy
Recent Work Items
Subscribing to events
Use 2 TF-servers at same client.
Where is the Authoring Work Item Types.doc?
Connect to TFS via MS Word...
Problem logging in Team Foundation Server using ASP.NET
Exception using TFS client in Web App
Where to get the hotfix for "This is a known issue, caused b...
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Users added to Contribute group are unab…
Query for Empty String
geting saving error when editing defect?
how to query work items using wild cards
How to get the attachment file name usin…
Actual End Date and Actual Effort
limit control type links control to spec…
I would like to make a fount end browser…
Areas and Interations
Question about the GLOBALLIST
Assignment and delegation: Is teher any …
Deleting Work Items
Searching work items
Print Work Item Per Page
Limit the allowedvalues list by validuse…

Hot Articles

Project to TFS error -- garbled screen d…
How to respond to work item control events
Localized web server instance not launch…
Getting Email body part from an email us…
How do I change a WI type, from Scenario…
Looking for RASK Requirements Authoring.…
query doesn`t work. problem < today
Automatically Log Bugs
MS Project Integration and Assigned To F…
How can i map the Item Description field…
Build Integration clarification
How to delete unwanted Work Items and se…
WSS issue list and TFS Work Items, any i…
Grouping Query Clauses
Work Item Tracking Transistions: Automat…

Recommend Articles

Getting work item description (command l…
How can I add a work item whose type is …
getting associated changesets for work i…
Accessing work itens via web (license qu…
Is there a web interface to VSTS defect …
Query for all items that've had been ass…
TFS Work Item WebPart Authentication Fai…
Making work items forms read-only for a …
MS Project stops leveling after getting …
How to allow to modify a field during sp…
what happens to the old WIs after using …
webservice subscription: URL authorizati…
Making the query find items without a re…
Can a work item type be deleted in VSTS?
Can I Add a Customized Field Type for Wo…