malko / rocketchat-jira-hook Goto Github PK
View Code? Open in Web Editor NEWAdd jira notifications via a new WebHook in Rocket.Chat
License: Other
Add jira notifications via a new WebHook in Rocket.Chat
License: Other
I have no more installation of Jira or RocketChat on my side so I can't test it anymore. My time is limited and time I can spent on this project is really sparse. For these reasons this project is in look for new maintainers.
In the mean time I'll still accept and review PR but it will be done when I have free time for this, which means it can take a long time to be done.
If your are interested contact me directly or by commenting on the issue.
Hi, I have incorporated some changes on your script. They are available here: https://github.com/rjmfernandes/rocketchat-jira-hook In case you want to merge that with yours.
Hi
I am trying to make this webhook method to work with my chat and unfortunately I wasn't able to.
I have followed all the steps right and still nothing works. Can someone please tell me how to debug ?
I am trying to locate the problem source first, is it from jira or rocketchat, can someone give me an example outgoing header from jira to inject it using curl?
When installing Rocket.Chat via Snap it creating a read-only snap dir.
If I now try to add this Webhook the following messages appear:
EROFS: read-only file system, mkdir '/snap/rocketchat-server/74/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/.babel-cache'
The problem depends most on a not separate dir for Cache & Temp files which is write-able.
Any way to set a different .babel-cache URL in the Script?
I would like to request adding a licence to this repository to make it legally safe to use it and clarify what is allowed and what isn't.
Without a licence, the copyright laws apply which means no one is allowed to copy or modify the script without explicit permission. Not being allowed to copy this particular script defies its purpose since it's meant to be copied into the Rocket Chat settings.
The incoming hook is not working for us.
We installed everything as described but get an error in Jira:
2017-06-26 15:50:36,055 httpclient-callbacks:thread-4 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 404 when posting to web hook at 'https://mychat.com/hooks/nSYEKpDb4sqhWKcqN/PbHgwoXEnuCwL7TtZiy7upAZLcnDCuWCxbbpwjWH2SCqgDST'
Posting with curl via the Rocket.Chat Example does also not work as long as the the JS script is enabled.
Unfortunately the Rocket.Chat log does not log anything related when "debug" log is enabled.
We are running Rocket.Chat version 0.57.0-rc.1 and Jira Version v7.1.8.
Any ideas?
Thanks!
This script hasn't changed since 2018 and had been working reliably for us until we upgraded to rocket.chat 4.x Now it just produces a basic error and I'm really struggling to diagnose the error.
I can confirm that curl to the webhook has a similar error (but isn't passing in variables which Jira would) and that Jira's webhook configuration is correct.
Can anyone please confirm this works in rocket.chat 4.0.1 or newer from Jira 8.20.1 or newer?
Thank you!
We have configured several Jira Cloud - Rocket.Chat Webhooks using this guide: https://docs.rocket.chat/use-rocket.chat/workspace-administration/integrations/jira
and your script: https://github.com/malko/rocketchat-jira-hook/blob/master/jira-rocketchat-hook.js
The majority of the webhooks are working successfully except the ones that should "notify" regarding the addition/removal of attachments or addition/removal of links.
As you can see from the Rocket.Chat logs, all the mentioned events are ignored by Rocket.Chat and no notification is displayed in the Rocket.Chat channel.
Jira event attachment_deleted. Not enough info on issue. Event ignored.
Jira event attachment_deleted. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Jira event issuelink_deleted. Not enough info on issue. Event ignored.
Jira event issuelink_deleted. Not enough info on issue. Event ignored.
Jira event attachment_created. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Jira event issuelink_deleted. Not enough info on issue. Event ignored.
Jira event issuelink_deleted. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Not enough info on issue. Event ignored.
Jira event attachment_created. Not enough info on issue. Event ignored.
Jira event attachment_created. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Jira event issuelink_created. Not enough info on issue. Event ignored.
Jira event issuelink_deleted. Not enough info on issue. Event ignored.
Jira event issuelink_deleted. Not enough info on issue. Event ignored.
Jira event issuelink_deleted. Not enough info on issue. Event ignored.
Jira event issuelink_deleted. Not enough info on issue. Event ignored.
Could you please help us with this?
Thank you
This seems to be the same problem we see with the gitlab hook js script.
According to https://github.com/RocketChat/Rocket.Chat/issues/15057 the channel specified in the webhook integration in rocket chat is only the "default channel", and can be overwritten by the script.. great.
This means that we could notify users in rocketchat if they are mentioned in jira, in addition to posting the infos into the designated #channel.
A mentioned user looks like this in the body field of the json file: [~username].
How would the script has to be improved to do this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.