私は、JIRAチケットのコメントをJIRAの自動化のWebリクエストの送信アクションを使ってConflenseのページのコメントに同期しようとしています。
Create footer commentを利用して下記のデータを送信しているのですが、1行のコメントは同期できたのですが、複数行のコメントは400エラーになってしまいます。
{
"pageId": "XXXXXXX",
"body": {
"representation": "storage",
"value": "【{{comment.author.displayName}}】 {{issue.comments.last.body}} "
}
}
解決方法はありませんか?
コミュニティをご利用いただきありがとうございます。
以下のスマート値を使用してコメントをhtmlにエンコードする事で、複数行のJiraコメントをConfluenceに連携可能と存じます。
{{issue.comments.last.body}} の箇所を以下に変更して複数行の場合も動作するかご確認ください。
{{htmlEncode(issue.comments.last.body)}}
以上、よろしくお願いいたします。
ありがとうございます!
解決しました!
もう一点追加でお聞きしたいのですが、下記の個所に改行を入れるにはどうすればいいかわかりますか?
【{{comment.author.displayName}}】//ここに改行を入れたい
{{htmlEncode(issue.comments.last.body)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ご確認ありがとうございます。
該当箇所に以下のHTMLタグを追加いただければ、改行可能と存じます。
例: 【{{comment.author.displayName}}】<br />{{htmlEncode(issue.comments.last.body)}}
以上、よろしくお願いいたします。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.