Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

REST APIを利用して課題の説明が変更できない

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


1 answer

0 votes
R. Fujimura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Nov 20, 2023

コミュニティをご利用いただきありがとうございます。

課題のステータス変更(トランジション)時にdescription(説明)の内容を変更するには、以下の設定が必要でございます。

  1. description(説明)フィールドを追加した画面を作成する (課題画面を設定する)  
  2. 作成した画面を該当のワークフロートランジションに割り当てる
    • [プロジェクト設定] > [ワークフロー] > 対象のワークフローの編集画面を開き、トランジションを選択し[編集]
    • 1. で作成した画面を設定 
    • AtlassianSupport 1.png

 

ご提示いただいたドキュメントに記載の通り、上記の様にトランジション画面が設定されており、その画面にて設定されているフィールドについて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はワークフロー設定にて以下の様にご確認いただけます。

AtlassianSupport 2.png

 

また、自動化を利用して課題のトランジション時に説明フィールドを更新することも可能ですので、ご検討いただけますと幸いです。

例:

  • トリガー: 課題のトランジション時
  • アクション: 課題の編集
    • 設定するフィールド: 説明

以上、よろしくお願いいたします。

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events