Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-81495

webhook sent for create issue with status other than default contains changelog from issue transition

    XMLWordPrintable

Details

    Description

      Issue Summary

      When webhook is sent for issue create with status other than default then the webhook payload contains changelog containing "old status"->"new status" while the "status" field contains information about "old status".

      Steps to Reproduce

      1. Create webhook for issue create operation
      2. Create issue with destination status other than default one
      3. Inspect webhook payload, it will contain "status: default one" and changelog with status changed from "default one"->"destination status"

      Expected Results

      No changelog in the event (as create issue with different destination status is multi-step operation that consist of: separate create issue + separate transition issue - 2 webhooks should be triggered)

      Actual Results

      inconsistent changelog in the event payload (here the default status is "To Do" and the status for created issue is "In Progress"

        "status": {
              "description": "",
              "name": "To Do",
              "id": "10003",
              "statusCategory": {
                "id": 2,
                "key": "new",
                "colorName": "blue-gray",
                "name": "New"
              }
            },
      ...
      "changelog": {
          "id": "10017",
          "items": [
            {
              "field": "status",
              "fieldtype": "jira",
              "fieldId": "status",
              "from": "10003",
              "fromString": "To Do",
              "to": "3",
              "toString": "In Progress"
            }
          ]
        }

      Workaround

      None - customer should disregard the changelog for status field for issue create webhooks and rely on separate issue_updated webhooks (from transition)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tkanafa Tomasz Kanafa
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: