Ok, in the mean time, how about this?
1. I add a new field to the work item.
2. I subscribe to the workitemchanged event with a web service.
3. In the web service, I check if the state changed, and if so, I append text about the change to my added field from above.
4. I add my tab to the bug template, and display my custom field in the new tab.
Will this work? This is what I am trying to do right now, but I am getting an error trying to get the WorkItemStore.
...
WorkItemStore wiStore = null;
Microsoft.TeamFoundation.Client. TeamFoundationServer server = null;
WorkItemChangedEvent workItemChangedEvent = this.CreateInstance<WorkItemChangedEvent>(eventXml);
TFSIdentity tfsIdentity = this.CreateInstance<TFSIdentity>(tfsIdentityXml);
foreach (StringField sField in workItemChangedEvent.ChangedFields.StringFields)
{
if (sField.ReferenceName == "System.State")
{
server = TeamFoundationServerFactory.GetServer(tfsIdentity.Url);
wiStore = new WorkItemStore(server);
}
}
...
When I try to create the WorkItemStore, I get the error "Cannot complete the operation. An unexpected error occurred" which is less than helpful.
|