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
REST APIを利用してJira Service Management(Cloud)で課題のステータス変更時に合わせてdescription(説明)の記載内容変更をしたいと考えています。
以下2点の質問があります。
1. 課題のステータス変更時に合わせてdescription(説明)の記載内容変更はできますでしょうか。
descriptionの内容変更をfieldsまたはupdateで設定すると、field descriptionを設定できないとエラーが表示され、設定できない状況です。
2. 上記1が変更不可の場合、課題のステータス変更時に合わせてコメントの記載内容変更はできますでしょうか。
以下の公開ドキュメントを確認した限りではコメントの記載内容変更はできそうに見受けられます。
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post
コミュニティをご利用いただきありがとうございます。
課題のステータス変更(トランジション)時にdescription(説明)の内容を変更するには、以下の設定が必要でございます。
ご提示いただいたドキュメントに記載の通り、上記の様にトランジション画面が設定されており、その画面にて設定されているフィールドについてREST APIで更新いただくことが可能です。
以下、REST APIでdescriptionを"REST API TEST"と更新する際のRequest bodyサンプルでございます。
{
"fields": {
"description": {
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "REST API TEST"
}
]
}
]
}
},
"transition": {
"id": "11"
}
}
transition idはワークフロー設定にて以下の様にご確認いただけます。
また、自動化を利用して課題のトランジション時に説明フィールドを更新することも可能ですので、ご検討いただけますと幸いです。
例:
以上、よろしくお願いいたします。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.