Frage

Working with C# and Team Foundation Server

I am working on a webservice that will allow Microsoft CRM to create a workitem in TFS without having to use TFS interface. Everything is working smoothly except for one thing.

Is there a way to know in what TFS project a Contact is working with a Contact object? I can get a contact object from a guid using this line :

Contact contact = context.ContactSet.Where(x => x.Id == guid).FirstOrDefault();

where context is the actual XrmServiceContext and guid a specified contact Guid...

using the retrieved object, how can I get information about the TFS project in which the contact is working on? It can be the project name, a Project object, anything really. I'll figure the rest myself, I just need to find the relationship between Project and Contact.

War es hilfreich?

Lösung

Unfortunately, this doesn't make sense, as a contact may work on more than one team project.

You haven't said what context this is happening in. Perhaps the context could tell you which project to use. For instance, if you were recording a customer call in a work item, then you might be able to choose the project based on which product line the customer is calling about.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top