Thinking about doing an Integration with Slack
Has anyone else considered this?
All I really want is updates to tickets and boards to show up in the chat channel we are all hanging out in.
My main question is, why isn't there a simple way to have YouTrack programmatically notify me of changes?
Looks like my choices are either do something with CORS hooked into the page that would post to Slack or either use Jabber or email to get the notifications then write some code that pulls them out and sends them on to Slack?
Hope I am missing something. Looked at the API documentation pretty extensively.
Thanks.
All I really want is updates to tickets and boards to show up in the chat channel we are all hanging out in.
My main question is, why isn't there a simple way to have YouTrack programmatically notify me of changes?
Looks like my choices are either do something with CORS hooked into the page that would post to Slack or either use Jabber or email to get the notifications then write some code that pulls them out and sends them on to Slack?
Hope I am missing something. Looked at the API documentation pretty extensively.
Thanks.
Please sign in to leave a comment.
Sorry for not responding earlier!
As far as I can see, this can be configured under Groups> Add service integrations. Then you may add RSS feed on target saved search from YouTrack.
Thank you.
This sounds promising. But searching around in circles for information about how to turn a query into an RSS feed in YouTrack.. ugh. Some simple documentation and a link to it would be nice.
Thanks,
Rob
Really, we don't need a philosopher to conclude that undocumented features are pretty much useless, unless someone wants to sink the time into finding them. But hell, I could have written an integration in the amount of time wasted today.
Did you search for this in Slack's documentation?
As far as you can see, there is nothing to configure on YouTrack's side. To tell the truth, I'm new to Slack and configured it just to check your case.
Another way I've found to achieve this is to add Google Hangouts integration and receive notifications on issue changes from our Jabber-bot to your Hangouts account. This works.
But you're right, nice case to be added in our documentation.
Thank you.
Ugh... another day probably now... :(
Nope. I'm not a killer, you know, I'm an engineer.
To have a look at the RSS url, just click on 'Issues feed' at the bottom of Issues list page.
In your case, you may turn to RSS query like:
to get updates on issues from the sprint with several more parameters.
Thank you.
Why don't you use Google Hangouts integration for this task? You need to create special Hangouts account, add your YouTrack jabber-bot to contacts; configure YouTrack jabber-bot notifications on target saved search. After that, you'll be able to add this special Hangouts account in Slack.
Even though, according to your use-case, invoking Hangouts inside Slack shouldn't confuse you. In other words, the option is acceptable by your scenario. Am I missing something?
Still, what was the RSS url?
Thank you.
Read the provided documentation. The integration is so that I can use slash commands to start hangouts from within the slack window. Exactly how is that going to bring updates into the window on a realtime basis??
It works is same way as notifications by email do. Have a look at instructions. To configure both- Jabber and Email notifications, navigate to Profile> Filters and Notifications. Notifications will be received on target saved search, on target triggers.
Thank you.
I know that YouTrack can do it's part of the Hangouts integration. What I am saying is if you read the Slack documentation about Hangouts, you will see that it's merely a way to invoke it using slash commands.
What I don't understand is why the Slack guys didn't implement XMPP and just let you send messages then have some simple rules that determine which ones go to which channel.
I am thinking the BEST solution is to write a little bit of code that polls the YouTrack RSS feed for ALL issues, then has a simple map of project codes to channels. Thinking about doing that with Akka and Play. Maybe a day of work.
Just going to put my two cents in. It is a shame that Slack don't have YouTrack or TeamCity integrations available but it is also a shame that TeamCity and YouTrack don't have Webhooks straight out of the box. TeamCity has an open source plugin for WebHooks that we use to integrate to slack but there doesn't seem to be this option with YouTrack.
I just wanted to pick you up on the point you made about XMPP not being in slack. Go to your https://<yourteam>.slack.com/account/gateways you should be able to enable XMPP and IRC support there. I think we might use that for slack and youtrack integration.
Matt
That said, after a few weeks with a working plugin, I would quit before going back to none.
If you are interested, it's here.
But even though an API call is a good option, but webhooks work in a different way, they send out info as soon, as something gets updated/inserted/deleted and we do not have to poll youtrack API every time.
http://youtrackuser:youtrackpassword@yourcompany.myjetbrains.com/youtrack/_rss/comments?q=project%3A+YourProject
Regards