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 7031975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:52:26+00:00 2026-05-28T00:52:26+00:00

I have this state in a work item that can only be set if

  • 0

I have this state in a work item that can only be set if one of four other fields (dates) are filled in. It doesn’t matter which one of the four, if at least one is filled then the state can be set.

Example:

This scenario lets you change the work item state:

DateA   01/05/2012
DateB   '
DateC   '
DateD   '

This one too:

DateA   '
DateB   01/05/2012
DateC   01/05/2012
DateD   '

This one doesnt:

DateA   '
DateB   '
DateC   '
DateD   '

I thought of using WHEN, but it won’t work, as I can’t write “WHEN this AND WHEN that“

Any suggestions?

EDIT: Plus, I can’t use the rule “PROHIBITEDVALUES” for System.State, so any approach will be useless, I believe.

EDIT: The only way one could do that, I believe (but without touching core fields) would be n WHENs and n WHENNOTs where n is the date fields count. Then, with the aid of two globallists (one dummy, and one with the prohibited values) maybe one could lock the field for every date missing, and then unlock for every date not missing (and thus fulfilling this scenario). Anyway, this can’t work in my case because of error TF26062: Rule ‘insert-rule-here’ is not supported for the field ‘System.State’.

RESOLUTION: I’m taking Gregg Boer’s answer because you can’t really can’t "AND" together conditional clauses. But my solution itself was to attach an event to the event subscription tool where I set the state back whenever some user changes it without filling a date. Then he receives an e-mail explaining why his change was denied. Not the ideal solution, but I can’t think of anything else.

  • 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-05-28T00:52:26+00:00Added an answer on May 28, 2026 at 12:52 am

    I am sorry, but there is no way to do what you are asking with TFS work item rules. You can’t “AND” together conditional clauses like you need to in the example above.

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

Sidebar

Related Questions

I have a list of lists that looks like this: x[[state]][[year]] . Each element
I have a JavaScript widget that is hosted on websites. This widget tracks state
I have been trying to get it to work using this thread but can't
I have this error message: Msg 8134, Level 16, State 1, Line 1 Divide
I have a table that looks a bit like this actors(forename, surname, stage_name); I
I have this code in jQuery, that I want to reimplement with the prototype
BACKGROUND I have been working on a tool that is supposed to work in
I have an application that shows a list of items. The user can click
I have a problem similar to this question: Wicket: can Checkgroup be Ajax enabled?
I have this function signature I have to match typedef int (*lua_CFunction) (lua_State *L);//target

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.