Yesterday, May 12th, Visual Studio Online exposed a collection of service hooks which sends information to other services on interesting events that happen inside Visual Studio Online – things like builds completing, work items being updated, or code being pushed. Visual Studio Online supports direct integration with over a dozen services, and one of this services is Trello.
What I like most about Trello is the flexibility and how easy it is to handle everything related to tasks and lists. How cool would it be to create cards on Trello on a dynamic event-based way like for example events on Visual Studio Online? Well, with the new service hooks, magic can happen! Let me visually guide you how you can create a link between VSO and Trello.
First things first, you need to be a Team Project administrator. Once you have this permission, go to the Team Project administration page, and select the “service hooks‘” tab.
Click on plus sign to create a subscription. There you have an overview of the possible target services. There are some interesting ones like for example MyGet (Check it out!). The one that I’m particularly interested in is Trello. Select that one and click next.
You can now select a trigger for this type of event. What I want to do is create a new card in Trello (with a red label) when I add a bug to VSO. So in my case, I select the ‘Work Item is created” event. In the filter, I select the work item type “Bug”.
Next step is to link your VSO account to Trello. This will give you a User Token. Copy and paste it into the form.
You now have the option to select a board, a list and a specific label
The nice thing is that you have the possibility to “test” the service hook. Just click on “Test“, and let the magic happen!
You can even show the history, including the full request details! How cool is that?!
That’s it. The VSO team did a great job on this one! I really like it! Enjoy