Diego Falciola

I have the following scenario:

- Each month we run a report showing how much time a developer spends in fixing a bug or coding a requirement

- We modified the transition machine, 2 of the states are "Active" and "In Progress"

- When the developer starts working on the bug or the requirement, we don't want him to forget to modify the state from Active to In Progress.

- An approach to this may be, hide the "Description" section until he makes this transition.

The problem is that we don't know if this is possible, we can't find any option. Do you have any ideas

Any help will be lovely Smile

Thanks,

Diego.




Re: Team Foundation Server - Work Item Tracking Hiding Fields in Work Item

Aliaksei Baturytski - MSFT

Hiding form controls is not possible in this version. However, I would recommend making certain field required by using REQUIRED rule; in this case developers won't be able to save the work item unless they have entered some value into that field.

I don't remember though whether this rule works for the description field.

Alex





Re: Team Foundation Server - Work Item Tracking Hiding Fields in Work Item

Diego Falciola

Yeap, required field is a great option but not in this case.

We don't want developers to start working on a work item until they change the transition from active to In Progress and save.

I can't imagine any other possibilities to work out this problem.

do you Smile

thanks,

Diego.






Re: Team Foundation Server - Work Item Tracking Hiding Fields in Work Item

Dan Kershaw

How about using a WHEN condition to check if the state is active, together with a security check for the Developer group.

Something like

<FIELD refname="System.History" name="Description" ...>

<WHEN field="System.State" value="Active">

<READONLY for="[Project]\Developers"\>

</WHEN>

</FIELD>

Not perfect but it should make description read-only for developers, unless it's NOT in the active state.

NOTE: We are considering conditional display of form elements in for future releases.

Hope this helps,