Jira + pushplus:工单变化推到微信
效果:Issue 创建、状态流转或有人 @你 时,微信收到一条摘要。
前置条件
- 一个 pushplus token(官网扫码获取)
- Jira Cloud / Data Center 的 Automation 管理权限
Jira 自带 Webhook 的 issue JSON 不会自动映射。要用 Automation 自己组字段,或走固定文案 GET。
配置步骤
方式一:Automation 发送 Web 请求(推荐)
- Project settings → Automation → Create rule。
- When 选 Issue created / Issue transitioned 等。
- Then 选 Send web request:
- URL:
https://www.pushplus.plus/send - Method:
POST - Headers:
Content-Type=application/json - Body:
- URL:
{
"token": "你的token",
"title": "{{issue.key}} {{issue.summary}}",
"content": "状态:{{issue.status.name}}\n链接:{{issue.url}}",
"template": "markdown"
}
智能值以你的 Jira 版本为准。content 不能为空。
方式二:GET 固定文案
旧版「Outgoing webhook」只能填 URL 时:
https://www.pushplus.plus/send?token=你的token&title=Jira有新工单&content=请打开Jira查看
完整参数见 消息接口文档。
验证
curl -X POST "https://www.pushplus.plus/send" \
-H "Content-Type: application/json" \
-d '{"token":"你的token","title":"Jira 配置测试","content":"token 可用","template":"markdown"}'
返回 code 为 200 后,在规则里点「手动运行」或建一张测试单。
常见问题
每条评论都推? When 不要用「所有 Issue 更新」,改成状态变化或指定项目。见 接口限制。
智能值没替换? 用 Automation 的「Log action」先打印 {{issue.key}},确认规则跑在正确项目上。
收不到消息见 排查说明。