index > Team Foundation Server - Work Item Tracking > Using a Version Label in a WorkItem

Using a Version Label in a WorkItem


Within the original workItem ChangeRequest that ships w/ MSF for CMMI Process Improvement there is a field:

<!-- **************** Build Integration Fields ******************************************* -->

<FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension">

<HELPTEXT>The build in which the change request was completed</HELPTEXT>

<SUGGESTEDVALUES>

<LISTITEM value="None"/>

</SUGGESTEDVALUES>

</FIELD>

This field allows you to select any Build Labels associated with the prjoect the workItem was created under. Any one know of or a similar field that would allow me to display a drop-down list of Labels from SourceControl?

<FIELD name="Test Version Label" refname="Microsoft.VSTS.VersionControl.Label" type="String">

<SUGGESTEDVALUES>

<LISTITEM value="None" />

</SUGGESTEDVALUES>

</FIELD>

I thought the above ref might work, but doesn't appear to be doing the trick. Curious if this is possible, do I have the refName wrong or what.

Thanks,
Kel

Kel Koenig
I am not aware of any such field to display label from Version Control - I don't think it is possible.
Mohammad Iqubal - MSFT

This refname, as far as I know, are just names to refer to this fields internally, from the API, from reports, etc, but doesn't have anything to do with get "automatically" data from the server, this one which gets info of the integration builds, is just getting the list of builds from a Global List, not from the build store (as before if I remember correctly), so there is no way to do it automatically with the labels.

But you can do the same trick, which is every time you label somthing, add this label to a Global List, and create a field which its list of possible values are get from this global list.

I also recommend you to use Process Template Editor from Imaginets, which will make easier editing the templates.




Luis Fraile - MCSD.NET - http://luisfraile.spaces.live.com/
Luis Fraile
reply 3

You can use google to search for other answers

 

More Articles

Can't browse work items
Importing Bug Database to TFS Work Items
missing Microsoft.TeamFoundation.WorkItemTracking.Controls dll
integration between project 2003 and VSTS 2005
Work Items Areas and the WOrk Item OM
Work Item - LISTITEM Value to return the same list as VALIDUSER c...
Work Item Query Question - State Field Value dropdown list
Can I edit scenarios on Project Portal?
Work Item Schema
Clarification Reg. Chaild Workitem
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

<ALLOWEXISTINGVALUE> not valid for…
Should Tasks map to other Work Items or …
TFS and Project Server 2003
Locating Work Item Attributes In TFS Dat…
Remove Work Items from template
Work Item custom field's value update
Restricting who can add Workitems
query results are not correct after addi…
Contains operator for WorkItem HTML fiel…
Error in creating a work item via the we…
Custom Work Item Controls - How can you …
Work Item Web Access
How to export QoS Work Item
Creating Custom Control
How to make a Dropdown list containing b…

Hot Articles

Handling simultaneously WorkItemChanged …
WebService Create New Task/Bug
Creating Custom Control
Should Tasks map to other Work Items or …
Work Item Classification and Project Hie…
Assigning same task to multiple resources
has anybody created a conversion tool th…
Limit query-fields to selected project
Work Item object model - problem with ed…
Making the query find items without a re…
Changes are not shown in the Form
Customizing Team Explorer
Error TF50304 when creating project alert
Possible bug(?): LinksControl as a requi…
Accessing work itens via web (license qu…

Recommend Articles

Work Item rule change works ... most of …
Assigned To getting blanked out when clo…
Can I create new link types?
Plugging into Team Foundation Server?
link requirements and tasks
limit control type links control to spec…
Add multiple files as file attachment to…
Actual End Date and Actual Effort
WorkItemChangedEvent doesn't retrieve &q…
Rules with multi-level picklist.
How to get the attachment file name usin…
WorkItem API problem: Cannot update Fiel…
Changing transition rules, only reason t…
Transition rules
Uninstall TS Plugin