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
Related
I am very new to Blazor and i am wondering if there is a way to generate a View from a Model and his Controller like with Razor to develop faster. In Visual Studio it is possible by right clicking on View Folder and choosing the Controller that we want.
Imagine having a User Model with data like Name, Adress etc. In Razor it is possible to generate a View (HTML, JS) containing those attributes related to User by choosing the model that we want (Edit, Create, Delete, etc).Then a complete form will show up with a generated HTML and JS in Pages Folder.
After a whole night of searching I found that this option given by Visual Studio is related with Scafolding and it is only avalaible for Blazor Server Side and Blazor Hosted applications. More information in the Syncfusion documentation
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.
All the examples I've seen, even the "official examples" (spa) all use an MVC project always having a view (index.cshtml) to run a project using angular (2/4).
Angular is a front-end framework that does not need a view (index.cshtml) to fulfill its function, the concept of front-end is to develop everything next to the client without depending on the backend.
Then, because you have to use a server-side view to work the client side.
What would be the best way to work with an application using angular (2/4)? Of course it would be better to use a single solution for all projects, but i see that can't separate the front end with back end.
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.
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.