I am wondering if anyone has come up with a process, when an Alert is created (not creation of an issue) to send a message to a Google Chat Space. Is there anything out there that could work getting notifications to a Google Chat Space?
Hi Tony,
I can confirm if you use ScriptRunner for Jira Cloud, if you are able to get an event triggered when the alert is created, then you could use a Script Listener to send a message into Google Chat, if they have a REST API you can call.
As Jim said, you should use Script Variables to store API keys as a best practice, and we also have an example of sending a message to Slack here that may be useful.
I hope this information helps.
Regards,
Kristian
Google Chat has an API that you can use to create a message, or preferably a card instead, so you can include things like issue links and whatnot. On the Jira side, create an automation rule that triggers when an alert is created, then send a web request with an appropriately formatted "custom data" request body.
I wouldn't do this in Jira Cloud.
Jira data center has a feature called "secret keys" that lets you store things like web tokens securely. This functionality is not supported in the cloud edition, so you would have to put the API token inline in the automation, which is bad on several levels.
Maybe look at ScriptRunner, it has a feature called Script Variables that could solve the API token problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.