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

After enabling dark feature for async webhook and restarting Jira, webhook payloads fail to send Parent Link data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 9.4.15, 9.12.4
    • Webhooks

    Description

      Issue Summary

      After enabling the dark feature for async webhook and restarting Jira, webhook payloads fail to send Parent Link data.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Setup a webhook destination in Jira
        • Admin > System > Webhooks
      2. Enable the webhook debug
        • Admin > System > Logging and Profiling > Set com.atlassian.webhooks with debug verbose log)
      3. In Jira software enable the async webhook dark feature
        • In jiraurl/secure/admin/SiteDarkFeatures!default.jspa add/enable the "com.atlassian.jira.webhookEventsAsyncProcessing.enabled" dark feature
      4. Restart the Jira instance

      Expected Results

      The webhook payload is completely populated.

      Actual Results

      The custom field "Parent Link" is not populated as expected.

      Below we have the payload when:

      • sync webhook is being used (without the async dark feature and Jira restarted):
        (...)
        event {7}
        body {5}
        issue{4}
        fields{81}
        ...
        created: 2024-03-25T20:38:01.294-0300
        creator{8}
        customfield_10000{summaryBean=com.atlassian.jira.plugin.devstatus.rest.SummaryBean@5067ce07[summary={pullrequest=com.atlassian.jira.plugin.devstatus.rest.SummaryItemBean@292e35ab[overall=PullRequestOverallBean{stateCount=0, state='OPEN', details=PullRequestOverallDetails{openCount=0, mergedCount=0, declinedCount=0}},byInstanceType={}], build=com.atlassian.jira.plugin.devstatus.rest.SummaryItemBean@33b96b37[overall=com.atlassian.jira.plugin.devstatus.summary.beans.BuildOverallBean@6be28386[failedBuildCount=0,successfulBuildCount=0,unknownBuildCount=0,count=0,lastUpdated=<null>,lastUpdatedTimestamp=<null>],byInstanceType={}], review=com.atlassian.jira.plugin.devstatus.rest.SummaryItemBean@69287661[overall=com.atlassian.jira.plugin.devstatus.summary.beans.ReviewsOverallBean@37e44df5[stateCount=0,state=<null>,dueDate=<null>,overDue=false,count=0,lastUpdated=<null>,lastUpdatedTimestamp=<null>],byInstanceType={}], deployment-environment=com.atlassian.jira.plugin.devstatus.rest.SummaryItemBean@4ffc68ed[overall=com.atlassian.jira.plugin.devstatus.summary.beans.DeploymentOverallBean@30fd2c27[topEnvironments=[],showProjects=false,successfulCount=0,count=0,lastUpdated=<null>,lastUpdatedTimestamp=<null>],byInstanceType={}], repository=com.atlassian.jira.plugin.devstatus.rest.SummaryItemBean@1accdf27[overall=com.atlassian.jira.plugin.devstatus.summary.beans.CommitOverallBean@fd2b26e[count=0,lastUpdated=<null>,lastUpdatedTimestamp=<null>],byInstanceType={}], branch=com.atlassian.jira.plugin.devstatus.rest.SummaryItemBean@23c51879[overall=com.atlassian.jira.plugin.devstatus.summary.beans.BranchOverallBean@7a009432[count=0,lastUpdated=<null>,lastUpdatedTimestamp=<null>],byInstanceType={}]},errors=[],configErrors=[]], devSummaryJson={"cachedValue":{"errors":[],"configErrors":[],"summary":{"pullrequest":{"overall":{"count":0,"lastUpdated":null,"stateCount":0,"state":"OPEN","details":{"openCount":0,"mergedCount":0,"declinedCount":0,"total":0},"open":true},"byInstanceType":{}},"build":{"overall":{"count":0,"lastUpdated":null,"failedBuildCount":0,"successfulBuildCount":0,"unknownBuildCount":0},"byInstanceType":{}},"review":{"overall":{"count":0,"lastUpdated":null,"stateCount":0,"state":null,"dueDate":null,"overDue":false,"completed":false},"byInstanceType":{}},"deployment-environment":{"overall":{"count":0,"lastUpdated":null,"topEnvironments":[],"showProjects":false,"successfulCount":0},"byInstanceType":{}},"repository":{"overall":{"count":0,"lastUpdated":null},"byInstanceType":{}},"branch":{"overall":{"count":0,"lastUpdated":null},"byInstanceType":{}}}},"isStale":false}}
        ...
        customfield_10108: SBP-1
        (...)
        

        The custom field 10108 relates to Parent Link

      • async webhooks is used and restart your Jira (before restart it will not fail)
        event{7}
        body{5}
        issue{4}
        fields{81}
        ...
        created: 2024-03-25T20:33:53.299-0300
        creator{8}
        customfield_10000:{}
        customfield_10100: null
        ...
        customfield_10108: null
        (...)
        

        The custom field 10108 relates to Parent Link. Note the custom field 10000 ("Development") did not present data as well.

      Workaround

      Disable async webhooks and restart Jira:

      • Go to jiraurl/secure/admin/SiteDarkFeatures!default.jspa and disable the "com.atlassian.jira.webhookEventsAsyncProcessing.enabled" dark feature
      • Restart the instance.

      Attachments

        Activity

          People

            Unassigned Unassigned
            b99328de92bd Douglas Alves
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: