WorkItemChangedEvent doesn't retrieve "Description"  
Author Message
polg





PostPosted: Team Foundation Server - Work Item Tracking, WorkItemChangedEvent doesn't retrieve "Description" Top

I've subscribed to the WorkItemChangedEvent and used Howard van Rooijen's web services templates to create a webservice that will receive that subscription.

The problem I have is that the WorkItemChangedEvent object doesn't contain the description field of the workitem, which is what it has been updated.

Is there any way to get this info or I will have to call TFS and retrieve the information from the server using the WorkItem's ID.

Also when I list the "Changed Fields", the count is 0.


Visual Studio Team System43  
 
 
Naren Datha - MSFT





PostPosted: Team Foundation Server - Work Item Tracking, WorkItemChangedEvent doesn't retrieve "Description" Top

Description won't be part of <changedfields> but will be part of <TextFields> node. When I tried this, here is the relevent part of xml:

<CoreFields> ...
</CoreFields>
<TextFields>
<TextField>
<Name>Description</Name>
<ReferenceName>System.Description</ReferenceName>
<Value>Add team members to one of the four secur...</Value>
</TextField>
</TextFields>
<ChangedFields>
<IntegerFields />
<StringFields />
</ChangedFields>

As you see above, the TextFields is after CoreFields. If you still do not get it, pls try enabling tracing as described in http://blogs.msdn.com/narend/archive/2006/07/27/679571.aspx and let me know how the event xml output looks like.

Thanks.