3

I am wondering if there is a way to access TFS using web services in order to pull user stories. In the end state what I want to happen is that, user comes into my website, type in a user story id click a button, which then pulls the user story title, description, and who its assigned to into my website. I don't want them to know where the story is from just want them to be able to pull it. Any ideas on how I can do this would be great.

Update: Let me expand on my question as I have done a little more research. Has anyone tried to use OData with TFS in order to query or pull stories. Arethere any good examples that exist.

Thanks..

user990951
  • 1,469
  • 5
  • 26
  • 36
  • possible duplicate of [Does TFS 2010 have web services one can use to query check-ins, work items, etc?](http://stackoverflow.com/questions/9122427/does-tfs-2010-have-web-services-one-can-use-to-query-check-ins-work-items-etc) – Edward Thomson Jun 20 '12 at 17:50
  • also http://stackoverflow.com/questions/5227376/is-there-any-documentation-on-tfs-web-services – Edward Thomson Jun 20 '12 at 17:50
  • also http://stackoverflow.com/questions/3682140/are-tfs-2010-a-k-a-microsoft-alm-2010-web-services-exposed-documented – Edward Thomson Jun 20 '12 at 17:51
  • Ultimately, you want to use either the .NET or the Java SDK for TFS. – Edward Thomson Jun 20 '12 at 17:51

3 Answers3

1

Assuming your web site is .net, you want to use the TFS SDK.

http://msdn.microsoft.com/en-us/library/bb130146(v=vs.80).aspx

http://social.msdn.microsoft.com/Forums/en-US/tfsworkitemtracking/thread/73f79348-0b37-406b-aa3b-a63d3837951b

BNL
  • 7,085
  • 4
  • 27
  • 32
  • SDK? Really? The question was about web services, not old-school, compiled binary applications. – Jeach Jan 20 '17 at 17:59
0

I would suggest standing up the TFS ODATA services. These services are currently available to all CodePlex projects, and the source is available for download. The services can be hosted internally with minimal work, or you could consider a cloud hosting option like Azure.

Here is a post from Brian Keller with more info and guidance. http://blogs.msdn.com/b/briankel/archive/2011/10/26/odata-service-for-team-foundation-server-2010-v1.aspx

Derek Hubbard
  • 384
  • 1
  • 5
  • 11
0

The TFS REST API is documented at MSDN. Among other things you can

  • access TFS user profiles
  • get completed builds and kick them off
  • manipulate work items
Alex
  • 5,240
  • 1
  • 31
  • 38