TFS defualt value on state change is not displayed in query - tfs

My tfs task work item has a state rule that sets the default value of the 'remaining effort' based on the value of the 'estimated effort' field. Essentially the 'estimated effort' field is for the original estimate and the 'remaining effort' field is for updated esitmates as the user works on the task.
In order to save the user some time, I created a rule that defaults the 'remaining effort' field to the value of the 'estimated effort' field. I used the default as I only want it to get filled in if the user forgets to enter a value themselves. As far as the item edit window, this seems to work fine. The value appears in the 'remainig effort' field and if the task item is re-opened the value is still displayed in that field.
However, even if the item is saved, the value never appears in the query table and is not represented in any report. I can fix this by deleting the value, saving the task, re-entering the value and saving it again but since this negates the value of the state rule, I'd rather not use this method.
Any ideas?
I am using Visual Studio 2010 with a scrum plugin for TFS.

Related

YouTrack - change default timepicker value

In DataTime type Deadline field I want change default value only for time in time input. Not Deadline field value (this I want still have empty by default). How can I do this?
I'm copying my reply from the support ticket you submitted.
Unfortunately, there is no way to configure this field as you requested.

TFS 2013 Work Item Field not being highlighted when set to <required>

I ran into some issues with TFS 2013 when I noticed some work items fields with the
<Required>
tag are highlighted when empty (shows up as yellow) but some are not highlighted. I don't seem to be able to find the reason as to why this is, the only difference I saw between the fields were that the types are different. Some are "string' and some are "HTML".
Is this because TFS can not highlight fields with data type "HTML"?
If someone can help me clarify this it'll be greatly appreciated.
I believe this is by design but the reason for such behavior is not the field type but control type you use to display it on work item form.
I've just checked on my local TFS instance that when I make System.Description field (which is HTML) read-only and then add FieldControl to display it on the form (instead of HtmlFieldControl) I get the same behavior as with System.Title (which is of type String). Now System.Description field control is highlighted when it's empty.
Here's the control I used to check it:
<Control FieldName="System.Description" Type="FieldControl" ControlFontSize="large" />
I believe your assumption to be correct, the type of field will affect TFS's ability to highlight the field when required.
Your users should get an error message if they try to save WI with an empty Required field regardless of field type though.

"[Me]" variable for custom field alerts in TFS 2013

I added a custom field (Test Prime) in TFS. Since I wanted a drop down of valid TFS users, I copied the setup of the Assigned To control (String, Dimension, ALLOWEXISTINGVALUE, VALIDUSER, and SYNCNAMECHANGES). I want to be able to set up an alert triggered when:
Test Prime Changes to [Me] or Test Prime Changes from [Me]
but "[Me]" or "#Me" does not seem to grab the current user. It's under the drop down menu of Assigned To so I don't see why I can't get access to this variable. Is it because this is for a non-core field and [Me] is only available for core fields? If yes, is there a workaround because I haven't been able to find any.
set the syncnamechanges="true" in the custom field definition. If the workitem template cannot be uploaded, use the witadmin tool to update the syncnamechanges attribute.
in the alert rule, use ##MyDisplayName## placeholder instead of [Me] or #Me.

TFS 2013 - Description HTML Field Can't Be Required

Fellow TFS users and/or junkies,
We are using TFS 2013. When I add required for Description HTML (Microsoft.VSTS.Common.DescriptionHTML), the default value still shows up as "As a I want so that ", THUS it doesn't require the user to fill anything in and it doesn't show up yellow. Sure, I could change the field, but we already have many things linked to Description HTML and can't risk changing the fields (reports and such are already setup). How would I change this so either:
A. It is empty and will show up required OR
B. It requires the user to change the value
Things I tried:
Setting the value to empty. Won't allow me to have both empty AND required.
Setting Default Value to empty. Won't allow me to that either.
Setting Prohibited Values to the default text it has. Not allowed for the field.
Applying a WhenNotChanged rule for the field and setting it to required. It already has a value so it doesn't matter if it's required or not.
I've just looked into a similar tfs machine.
It's just a defined "Default" rule but not in the "Fields" tab but in workflow tab.
In my case, it was in the initial transition rule.
To be specific:
Like you can guess, using Power Tools;
open the work item
go to the "Workflow" tab.
In the designer, double click the (most possibly) first transition element to view its settings
In the window opened, go to the "Fields" tab
If you see "Description" field there, double click it
Remove the "Default" rule
Now, you don't have a default text. You can set it "Required" and it'll be ok.
Close all, go to Fields tab of work item and set a required rule in a way as you expected initially.

Rename work item type fails

In TFS2010/TFSPowerTools2010/Process Explorer I am creating a custom process template. I define a new work item type (WIT) called "Enhancement" copied from the CMMI "Change Request" WIT.
Then I want to rename the friendly field name of the work item type "System.Title" (called "Title") to "Summary".
When I upload my custom process template to the TFS server and create a team project, and then create a new Enhancement, the info in the required field text still shows :
"TF20012: Field "Title" cannot be empty.
Why ?
(I want to see "TF20012: Field "Summary" cannot be empty.)
What you can do is create a new field and make it required. Call it Summary, etc. Change the Title label and textbox from the stock values and point it to your new field. Do not remove the System.Title field from the field list.
In the work flow, use the Summary value to populate the System.Title field, which is not on the form. Then if they try to save without a Summary, they will get the correct error and System.Title will have a valid value for reporting.
Be sure you account for the System.Title field everywhere it is referenced in the work flow.
You aren't able to rename a system field like System.Title. It's used by other work item types across the team project collection and the server instance. It also has to be filled in by the default rules. You can rename the "label" that gets shown to the end user by going to the layout tab of the work item type editor (in the TFS Power Tools) and find the control and change it's label attribute but leave the field the same.
In Visual Studio I was looking at a WinForm and saving the form I got this error:
Microsoft Visual Studio Save failed.
TF20012: Field 'Title' cannot be empty.
OK
Since its a TF error I closed all the Work Items (even unsaved ones...) and then saving the Winform worked.
I am not sure how VS thought the Work Item was the active code window I saw looking at.

Resources