Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Send release notes for published version from Jira to a google chat Channel

Alan Chêne February 6, 2023

Hi, 

When a version is published, i'd like to send to my "version" google chat channel the number of the version, the release note with issues delivered and the release date. 

Here is an exemple of the notification i'm searching to build: 

"Version X.X.XX is available
Release date : xx/xx/xxxx 
Release Note : 

Issue xx : balbalblablablblbab

Issue xx : eibdzhgoudhozhzoahd

Issue xx : jzfefhfezjfef" 

Thank you everyone for helping me 
Alan 

PS: i'm admin on Jira and google workspace and have all acces. 

1 answer

0 votes
Hauke Wollentin February 7, 2023

Hi @Alan Chêne 

since Google Chat isn't an automation action at the moment, my first try would be to fire a webhook with the "Send web request" action.

Google Chat seems to provide a REST API so this shouldn't be painful at all :) 

Have a good one,
Hauke

Alan Chêne February 7, 2023

Hi @Hauke Wollentin , i tried but i have an HTML Error : 400 
 

{ "error": { "code": 400, "message": "Invalid JSON payload received. Unexpected token.\nBonjour à toute l' \n^", "status": "INVALID_ARGUMENT" } }

My webhook is created on the google chat channel and i just copie/Past it on the webhook Url on jira. 

I used custom description with no Header/Value and the HTTP method used is:  POST 

Here is my custom description : 

Hello everyone,
The version : {{version.name}}has been delivered on {{version.releaseDate}}. Nice Job ! :tada:

here is the issues resolved in that version :
{{version.note}}

Alan Chêne February 7, 2023

Thank you very much for your answer ! 
Alan 

Hauke Wollentin February 8, 2023

I guess the Google API expects a JSON body, so you need to transform your custom description as proper JSON document.

The API docs should describe how the JSON document need to look like, which fields are required and so on.

Have a good one,
Hauke

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events