TFS OData - get work item types - tfs

Is there a way to get all Work Item types for a project via tfsodata.visualstudio.com?
In documentation: https://tfsodata.visualstudio.com I was not able to find anything about it, and it is hard to imagine that something so important is not implemented.
Any help appreciated!

No such OData API to get the list of work item types. It's suggested to use REST API if you use TFS 2015 or VSTS:
GET https://{instance}/defaultcollection/{project}/_apis/wit/workitemtypes?api-version={version}

Related

Subscribe to Jira search filter using jira Rest API

I have created a Jira search filter, using this request:
POST /rest/api/2/filter
This worked pretty well. Now after I created the filter, I want to get automatically subscribed to it.
Is there a way to do it with the REST API? Or is the only possible way to do this manually?
I already found this in the documentation: https://docs.atlassian.com/software/jira/docs/api/REST/7.4.1/#api/2/filter-createFilter
There, I found the "subscriptions" property, but I can't seem to figure out how exactly I have to write this, to get the correct syntax.
Thanks.
There is a JIRA Feature Request that is still being considered for this to be implemented. Please take a look at this for more details.
For now, all we can do is Fetch or Create Filters using the JIRA ReST APIs but editing the subscriptions should be manual tasks.
Please take a look at the following Atlassian Question which confirms the same.
Details as provided in this Question:
You can do a GET to see the filter subscriptions values you have via:
GET /rest/api/2/filter/favourite?expand=subscriptions
Hope this helps!

How to programmatically get method level history from TFS API?

I am trying to find out method level history from TFS. I am able to get the history (associated work items and changesets) for an item, but unable to do the same at method level. The intent is to find the work items and changesets linked with a method in class. Any pointers to accomplish this would be highly helpful.
This is implemented in the CodeLens API's which are not exposed publicly. Source control in itself doesn't have a semantic concept of the contents of the file. The Code Lens API uses Roslyn to parse the files and uses clever heuristics to link different versions of the same method to each other.
Given that CodeLens API's aren't available for public use, TFS doesn't have anything that will help you accomplish this, without re-building the heuristic+semantic processing that CodeLens provides.

Create custom work items

I need to create a custom work item type from a build task, Is this possible with current VSTS Rest API?
I have reffered the Work items Referance, It doesn't contain info on this.
Based on the REST API document and this blog about timeline, REST API for customization is not supported now.

TFS custom bug entry page for non technical users?

To help my company better adopt using TFS i'd like to see if a custom web page could be made so the end user has no idea they're entering a bug into TFS. They find the TFS2012 web based GUI confusing. They are business users and able to write out a problem in a web app, the reproduction steps and expected result but they always forget to set certain fields which makes their entries not show up in my query.
I figured creating a custom web page that inserts the bug into TFS would help. Anyone know if this is possible?
You need to develop a web page which uses TFS API to create a bug. Please see below link which has sample code to create bugs using API.
http://social.technet.microsoft.com/wiki/contents/articles/3280.tfs-2010-api-create-workitems-bugs.aspx

How do I allow an external user to add bug/work items

We are using TFS 2010 in my company but are only using its VSS feature.
For adding/updating any bug/feature request, we are using Assembla... mainly because of the reason that we also want to allow external users to add/update a work item.
I Googled and found that TFS supports a feature called 'Work Item Only View(WIOV)'.
Can you please guide me what OTHER options are available so that all internal/expernal bug/work item save only in TFS database.
Also, anyone using WIOV can please suggest how well it can help me in above scenerio.
Thank you!
I think that this blog describes what you're trying to do

Resources