Update Epic Link via REST API

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

You may use cURL, Postman REST Client or any other REST API client to perform the Update Issue PUT request. For all our Jira  Data Center / Server REST API go to Atlassian Developer REST APIs

最初のステップ

First, you need to identify the ID of the Epic Link custom field, which will be different across different Jira applications. Follow the steps below to get the ID:

  • ⚙ > [課題] > [カスタム フィールド] に移動します。
  • Search for "Epic Link"
  • Click on ... > Configure next to the field
  • Look at the URL and get the ID located at the end of it, as illustrated below:


Method 1 Using cURL

  1. Send cURL command as follows:

    curl -v -u username:password -X PUT -H "Content-Type: application/json" --data @"/Users/admin/work/atlassian-support/workshops/epiclink.json" http://localhost:6310/j6310/rest/api/2/issue/10141
  2. Example of JSON data ((info)  Please make sure to replace XXXXX with the Custom Field ID identified in the preliminary steps):

    {
        "fields": {
           "customfield_XXXXX": "SSP-24"
           }
    }

Method 2 Using Postman REST client

Example ((info)  Please make sure to replace the custom field ID in the payload with the Custom Field ID identified in the preliminary steps):

tip/resting Created with Sketch.

The returned response will show 204 No Content status, which means the Epic Link is successfully updated. 

最終更新日 2023 年 8 月 1 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.