Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8222703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:22:09+00:00 2026-06-07T14:22:09+00:00

Updated question with additional info as solution was not applicable. Sorry, I will have

  • 0

Updated question with additional info as solution was not applicable.

Sorry, I will have to ask this question once again. My objective is to implement some TFS automation for the Assigned To field. This field is to be populated certain values in the module and category field are selected.

Is there a way to create an “And” operator within the TFS WI XML that can handle this? I asked this question a couple of months ago and received an answer. Unfortunately, I haven’t had time to implement it due to several items that came down the pipe. When I tried implementing the solution and when importing the WIT, TFS would throw a “WHEN” has an invalid child element “WHEN” error.

Example:

If "Module" field = value X and "Platform" field = value Y, then "Assigned to" field is set to specific user

Given solution does not work:

<FIELD name="QA Owner" refname="<QAOwnerFieldReference>" type="String">
<VALIDUSER />
<WHEN field="<ModuleReferenceName>" value="Compliance">
<WHEN field="<AnotherFieldName>" value="SomeValue">
<DEFAULT from="value" value="<QATester>" />
</WHEN>
</WHEN>
</FIELD>

I do have an idea, is it possible to merge the second “WHEN” condition with the first, such that:

<WHEN field="<ModuleReferenceName>" value="Compliance" && WHEN field="<AnotherFieldName>" value="SomeValue">

Link to previous post: Assigning users in TFS if two fields have specific values

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:22:11+00:00Added an answer on June 7, 2026 at 2:22 pm

    The only viable solution I could find for this is to create a custom control that will process a set of rules before saving the work item.

    Check out Gregg Boer’s blog for a short guide to creating WI custom controls. Note that this will need to be installed on each desktop client’s machine.

    Note that you will want to write a handler for the BeforeUpdateDatasource event.

    Also, if you need this to run on the web, you’ll need to create a web-access custom control (see Ewald Hoffman’s post on WA controls).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit (updated question) I have a simple C program: // it is not important
Helo Experts again. I have asked a question similar to this in the past.
UPDATED QUESTION Since the ctor is not supported by .NETCF (public FileStream(IntPtr handle, FileAccess
Updated Question: $(this).attr(EmployeeId, 'A42345'); $.ajax({ type: POST, url: url, data: {EmployeeId: ' + id
This is pretty straight forward. EDIT: Updated question and added fourth echo. Here is
Context I have a tree view with folders and files: Additional info All files
This question concerns memory in Android. My method: I have two activites, A and
Sorry, if this is a noobish question, but I'm just getting started with Rails
I have a question regarding the two additional columns (timeCreated, timeLastUpdated) for each record
Updated question, see below I'm starting a new project and I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.