Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-71000

Archived flag is incorrect in Webhook for Version Updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Low Engagement
    • Icon: Low Low
    • None
    • 7.13.9, 8.7.1, 8.8.0
    • Webhooks

      Issue Summary

      Archived flag is incorrect in Webhook for Version Updated

      Steps to Reproduce

      1. Setup a webhook on 'Project related events' > 'Version' > 'Updated'.
      2. Go to Project settings > Versions, and archive the version.

      Expected Results

      The webhook shows the information of the version, including the archived flag as "true".

      Actual Results

      The webhook shows the information of the version, including the archived flag as "false",

      When archiving:

      "root":
      "timestamp": 1588575949950
      "webhookEvent": "jira:version_updated"
      "version":
      "self": "http://localhost:8080/rest/api/2/version/10002"
      "id": "10002"
      "name": "Version 3.0"
      "archived": false
      "released": false
      "overdue": false
      "projectId": 10000

      It seems the information is retrieved from before the change was made, as unarchiving a version will trigger the webhook and the flag archived will be "true" this time:

      When unarchiving:

      "root":
      "timestamp": 1588576776765
      "webhookEvent": "jira:version_updated"
      "version":
      "self": "http://localhost:8080/rest/api/2/version/10002"
      "id": "10002"
      "name": "Version 3.0"
      "archived": true
      "released": false
      "overdue": false
      "projectId": 10000

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              rchiquete Rene C. [Atlassian Support] (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: