Hey folks I have an instance of crucible installed on my AWS instance.. and I would like to integrate it with slack. Ie everytime someone creates a Code Review (CR).. I want a slack channel made specifically for our CRs to report who made the comment, regarding which JIRA and to who (the git commit hash would be a good idea as well).
I'm looking at the Slack api (https://api.slack.com/) but I'm not sure where to start with Crucible..
I was told there are no Web hooks for Crucible commits, only for Fisheye (which aren't used in the CR creation process) and that I could develop a plugin to integrate Fisheye with Crucible?
Community moderators have prevented the ability to post new answers.
I think writing own plugin would be the easiest way to go. Just take a look at Review Event event hierarchy, there are events that you may want to listen to, e.g ReviewCreatedEvent or ReviewStateChangedEvent. Once you have your listener fired on this event you may want to impersonate as a super user using ImpersonationService service, use ReviewService to retrieve review details and send appropriate message to external system, e.g. Slack. There are some tutorials available to help with this exercise.
Hope that helps,
Piotr
Thanks Piotr Swiecicki [Atlassian].. I have a question though.. right now my client pays for JIRA and crucible plus a host of other atlassian services.. will we have to subscribe to fisheye and pay an extra monthly fee just to have access to these events/webhooks? Isn't there a way to avoid that? That seems like a lot of money just for a single service (we don't have much use for fisheye's other services right now) CommentAccept answerEditDeleteConvert to comment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I'm not sure if I understand your question correctly, if you wonder if you need a FishEye licence to write such plugin I believe you don't. Having crucible licence should be fine to run such plugin. Plugin would need to register to Crucible events, would consume ReviewService and ImpersonationService. All those components are available with Crucible licence only. Let me know if you have any further questions. Kind regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.