You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Jiraでは自動化機能 を利用することで非常に柔軟なルールを作成できます。また[Webhookを送信]アクションを利用することで他のアプリケーションとも連携することができます。
今回はJira Cloudの自動化機能を利用して「Jiraの課題がクローズされた時にConfluenceにページを作成する」というルールの作成方法をご紹介します。
イメージとしては次のような課題がクローズされた時に
次のようなConfluenceのページを作成します。
■ 手順
{ "title": "{{issue.key}} : {{issue.summary}}", "type": "page", "space": { "key": "<スペースキー>" }, "status": "current", "body": { "storage": { "value": "<h2>説明</h2>{{issue.description.htmlEncode}}<br/><h2>コメント</h2>{{#issue.comments}}<p>Comment by: {{author. displayName}} at: {{created}}</p><p>{{body.htmlEncode}}</p><hr />{{/}}", "representation": "storage" } }, "metadata": { "properties":{ "editor": { "value": "v2" } } } }
いかがでしたでしょうか?
今回利用したConfluence CloudのAPIは次のものになります。
自動化機能のスマートバリューを使用して連携する内容をカスタマイズすることもできます。スマートバリューについて宜しければ次のドキュメントをご覧ください。
■ 制約事項
J. Sakurai
Technical Support Engineer
Atlassian
Yokohama, Japan
1 accepted answer
0 comments