Updating fields when transitioning issue via REST API V3 is not working as expected

XMLWordPrintable

    • 4
    • Severity 3 - Minor
    • 0

      Summary

      Updating issue values such as description or custom fields is not working as expected:

      1. The history tab is not handling the ADF and displaying the full json content of the response.
      2. Custom field values are not populated correctly.
      3. The jiraissuetokens table is not being updated meaning values populated are not searchable.

      Steps to Reproduce

      1. Add a screen to a transition
      2. Make a call to */rest/api/3/issue/ {issueid}

        /transitions* to transition an issue with field updates like below:

        {
            "transition": {
                "id": 21
            },
            "fields": {
                "description": {
                    "version": 1,
                    "type": "doc",
                    "content": [
                        {
                            "type": "paragraph",
                            "content": [
                                {
                                    "type": "text",
                                    "text": "this is my description now"
                                }
                            ]
                        }
                    ]
                },
                "customfield_10054": "http://www.ramblingvapers.com",        
                "customfield_10051": {
                    "version": 1,
                    "type": "doc",
                    "content": [
                        {
                            "type": "paragraph",
                            "content": [
                                {
                                    "type": "text",
                                    "text": "root cause"
                                }
                            ]
                        }
                    ]
                },
                "customfield_10052": {
                    "version": 1,
                    "type": "doc",
                    "content": [
                        {
                            "type": "paragraph",
                            "content": [
                                {
                                    "type": "text",
                                    "text": "some text"
                                }
                            ]
                        }
                    ]
                },
                "customfield_10053": {
                    "version": 1,
                    "type": "doc",
                    "content": [
                        {
                            "type": "paragraph",
                            "content": [
                                {
                                    "type": "text",
                                    "text": "texty text"
                                }
                            ]
                        }
                    ]
                }        
            }
        }
        

      Expected Results

      The custom field values are populated correctly.
      The values are included in the jiraissuetokens table.
      This history displays the values correctly:

      Actual Results

      The custom field values are not populated correctly or at all.
      The values are not added to the jiraissuetokens table.
      This history displays full ADF json:

      Workaround

      Currently the best workaround is to use the API V2 endpoint: The Jira Cloud platform REST API V2: Transition Issue

        1. screenshot-1.png
          screenshot-1.png
          28 kB
        2. screenshot-2.png
          screenshot-2.png
          23 kB

            Assignee:
            Unassigned
            Reporter:
            Battlebeard (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: