views:

10

answers:

1

I can successfully create an iteration via: However, when I try and assign this path to a work item and save it the field doesn't validate.

If I run the tests again (with the iteration already created) the same code succeeds.

Does anybody know how to make this work?

A: 

You are likely running into a caching issue. Try clearing the cache after you create the iteration. A couple things you could try:

  1. Get a new copy of the WorkItemStore.
  2. Disconnect and reconnect to TFS
  3. Check to see if there's a "refresh" method on either the WIS or on the TFS server objects. I've shut down my dev instance of TFS for the night, and I don't recall if there's anything like it.

If that's not quite it, post your code and I'll see if I can reproduce it.

Robaticus