【发布时间】:2020-10-21 22:51:24
【问题描述】:
每当 jira 票证的状态发生变化时,我都会尝试在 Google 聊天中创建通知。我已经设法对自动化进行排序,以便每次状态更改时都会向谷歌聊天发送一条消息,但每次都会创建一个新线程。我想用新状态更新原始消息或向同一线程添加新消息。
我已将自动化配置为如下发送 Web 请求有没有人设法做到这一点?
Webhook 网址:https://chat.googleapis.com/v1/spaces/xxxx/messages?key=xxxx&token=xxxx 标头:内容类型 - 应用程序/json; charset=UTF-8
HTTP 方法:POST Webhook 正文:自定义数据
自定义数据
"cards": [
{
"header": {
"title": "{{issue.key}}",
"subtitle": "{{issue.summary}}"
},
"sections": [
{
"widgets": [
{
"keyValue": {
"topLabel": "Reported by",
"content": "{{issue.reporter.displayName}}"
}
},
{
"keyValue": {
"topLabel": "Status",
"content": "{{issue.status.name}}"
}
}
]
},
{
"widgets": [
{
"buttons": [
{
"textButton": {
"text": "View Ticket",
"onClick": {
"openLink": {
"url": "{{issue.url.customer}}"
}
}
}
}
]
}
]
}
]
}
]
}
【问题讨论】:
标签: jira hangouts-chat