Default Submit to Project Server to Yes
-
Thursday, August 11, 2011 6:35 PMWhenever I try to create Task or User Story or Issue through TFS, I always have to goto Project Server tab and set Submit To Project Server as Yes. Is there anyway to set it as default to Yes?
All Replies
-
Thursday, August 11, 2011 6:59 PMOwner
Yes it is possible, But you will have to also set the "Enterprise Project" field.
It will be very similar to customizing the work item type.
You will be using witadmin to export the work item type definition(exportwitd). Edit the rule on the field to have Default rule to copy values.
Sample XML for the rule in Transition scope for new WI's only will look like below
<TRANSITION from="" to="New">
<REASONS>
<DEFAULTREASON value="New" />
</REASONS><FIELD refname="Microsoft.Sync.ProjSrv.Submit">
<DEFAULT from="value" value="Yes" />
</FIELD><FIELD refname="Microsoft.Sync.ProjSrv.ProjectName">
<DEFAULT from="value" value="<%ENTERPRISEPROJECT%>" />
</FIELD>
</TRANSITION>And import the modified WITD.
Smitha Saligrama MSFT- Marked As Answer by Dhaval Faria1 Friday, August 12, 2011 1:08 AM
-
Friday, August 12, 2011 1:09 AMThank you :) and you have any idea about existing work items? how do we push it to project server? also how we similarly make Submit to Team Project default to Yes in Project? and also Existing Tasks or Issues in Project to push to TFS?
-
Thursday, September 08, 2011 12:10 AMOwner
Hello Dhaval,
Sorry for the trouble. I will check this first thing tomorrow and see if there is any bug at our end and will reply
Smitha Saligrama MSFT- Proposed As Answer by Igor Yastrebov Monday, November 28, 2011 9:12 AM
- Unproposed As Answer by Igor Yastrebov Monday, November 28, 2011 9:12 AM
-
Monday, November 28, 2011 9:20 AM
Hey,
spent several days until fix "Default value for Project Server Submit" field finally.
Important: "DEFAULT" keyword does NOT work!
You cannot use default values in the field definition as well (in this case, you can see Yes value visually, but no Sync engine submit really happen).
The only way it work fine (at least I found this way only) is similar to Smitha suggested with one important correction:
change his "<DEFAULT" tag to "<COPY".
I suggest to use visual tool doing such kind of things: Process Explorer.
But you can get same results with WITADMIN as well:
XML path to be corrected: witd:WITD/WORKITEMTYPE/WORKFLOW/TRANSITIONS
find following tag: <TRANSITION from="" to="Proposed">
put xml:
<FIELDS>
<FIELD here is other your fields definitions />
</FIELD>
<FIELD refname="Microsoft.Sync.ProjSrv.Submit">
<DEFAULT from="value" value="Yes" />
</FIELD>
</FIELDS>
Regards,
- Igor
Regards, - Igor- Proposed As Answer by Igor Yastrebov Monday, November 28, 2011 9:21 AM
-
Thursday, March 15, 2012 1:31 PMhi... I want to do the same as dhaval has said, I followed above solution, but every time as new project is created, i need to set this values...!!
Can we make this process only once for one collection..!!??

