How do I embed TFS charts in my page? - tfs

I need to embed charts from TFS (Microsoft Team Foundation Server) in a simple HTML page. The chart editor allows me to copy the query URL, but i don't see any elegant way to embed the chart itself. Any advise on how to get individual charts from a TFS instance on my own web page?

At present, you don't. There's no supported way to do that.

Allow you to copy the query URL cause it's Query-based charts which generate data from the work item tracking data store and therefore displays the most recent data. You could add it to dashboard, but it's not able to embed them in a normal HTML page outside of TFS.
There has been a related uservoice, which you could use the Chart for work items widget:
Embed Dashboard Widgets outside of VSTS / TFS
https://visualstudio.uservoice.com/forums/330519-visual-studio-team-services/suggestions/13784832-embed-dashboard-widgets-outside-of-vsts-tfs
You could vote up for it and TFS admin/PM will kindly review your suggestion.

Related

Embedding new work item web form in a custom page

Is there a way to host the new work item web form for Visual Studio Team Services and TFS 2017 (Link) within a custom page that my application has? Basically I'd like the users to use my custom web page to create new work items in TFS or Visual Studio Team Services as I do certain pre and post processing on work item that is created using my application. For this I would need to
Somehow host the web form on my own page
Hook into pre and post save events (if any) of the web form to do the pre and post processing.
I don't think you can embed the new work item form directly within a custom page as the work item form is based on the TFS process and wit definitions.
I can think of is that you can try to write your own extension and call the REST API to create the work item in the custom web page. See Create your first extension - Call a REST API

TFS Hide and show extension generated web work item work page

I am newbie in TFS extension.
My TFS extension contributed a custom work page on work item, on that page we show the data generated by our integrated app. All the data are stored in TFS.
I want to show or hide the tab if that work item has contains data.
Need help how to achieve this task if possible.
No, show/hide a page base on condition is not supported in extension for now.

Customize the TFS web dashboard

Like the title says, how can I customize the web dashboard in TFS 2012? I have created my own Work Item Type and would like a shortcut on the home page of Team Web Access. I am using the default Team Web Access page and I would just like to have a shortcut button immediately on the front page instead of in a dropdown, which is where it's contained now.
Thanks!
There is no supported way to do this. In TFS 2015 they have the concept of Web Extensions, but that is only for specific extension points which doesn't include changing the home page.
You can do it in an unsupported manner, but I wouldn't recommend it. You can find the ASPX/CSS/JS files on the server that TFS uses for the web site and hack away at them. I've known people that have done this before. But there are probably repercussions when it comes time to upgrade.
For posterity, I've found a dirty solution to do this without cloning the website and gutting it (as described here: http://awaitwisdom.com/how-to-extend-tfs-team-web-access/). Note that this solution is really dirty and may not fit your project needs.
The solution works by swapping the default work item options (based on the process template you are using).
Use WITADMIN to export your Categories into an XML. Find a work item currently on the front page that you're okay with swapping out for the work item you want to be on the front page. Change "DEFAULTWORKITEMTYPE" to "WORKITEMTYPE" in the tags. Add a new entry: and it should show up as one of the shortcut buttons on your home page.
I highly recommend doing your modifications with Microsoft TFS Power Tools 2012.

Can I add Links as favorites to TFS 2012 Team Site?

I have a TFS 2012 Team site specifically for TFS Management. I would like to place template links for creating work items on the site so that team leads may create work items for me to add users or otherwise modify permissions.
I created the templates by the "Copy template URL" (a great feature btw), and then sent this as an email to my stakeholders.
I think it is better to have this link easily available from my team site. Are there any suggestions?
Not sure what you mean by team site. There is the TFS Web Access page, and then there is the optional Team Project Portal (in SharePoint).
If you are using the Portal in SharePoint then you can add a links webpart to any page within the site.
If you are talking about the TFS Web Access page, then I don't think there is currently any supported method to customize the home page to add arbitrary links.

MVC 3 create Microsoft Word report Document

I have a project where I need to create a Word document report based on some items which custumer can choose on MVC 3 (Razor) website.
Is it possible in any way? The only solutions I can find is report in Excel.
Do I need to create Word Templates?
I would probably use the: Open XML SDK 2.0 for Microsoft Office
there are many advantages in doing this like no need to instantiate Word on the web server, probably not even need to have it installed...

Resources