Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-355

Send Web Request with POST Issue Data not providing attachment information

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.3.4, 7.3.5
    • Actions
    • Severity 3 - Minor
    • 0

    Description

       

      Issue Summary

      Using Send Web Request action with POST Issue Data not providing attachment information after 7.3.4 upgrade.

      Tested with multiple Jira versions (8.13.5, 8.13.8, 8.15.0).

      Steps to Reproduce

      1. Create or update an issue to have an attachment.
      2. Create a new rule with any trigger.
      3. Create a new action of Send web request.
      4. Add any value to the Webhook URL (such as "test")
      5. Select HTTP method POST and webhook body of Issue Data.
      6. Expand the Validate your webhook configuration and enter your issue key.
      7. Click Validate and expand the Request > Payload area.

      Expected Results

      For an issue with an attachment the following is expected:

          "attachment": [
            {
              "self": "http://localhost:48135/j8135/rest/api/2/attachment/10000",
              "id": 10000,
              "filename": "appreciation.pdf",
              "author": {
                "self": "http://localhost:48135/j8135/rest/api/2/user?username=admin",
                "name": "admin",
                "key": "JIRAUSER10000",
                "accountId": null,
                "emailAddress": "admin@atlassian.com",
                "avatarUrls": {
                  "48x48": "https://www.gravatar.com/avatar/5c1526ade5aea60fda64479097670188?d=mm&s=48",
                  "24x24": "https://www.gravatar.com/avatar/5c1526ade5aea60fda64479097670188?d=mm&s=24",
                  "16x16": "https://www.gravatar.com/avatar/5c1526ade5aea60fda64479097670188?d=mm&s=16",
                  "32x32": "https://www.gravatar.com/avatar/5c1526ade5aea60fda64479097670188?d=mm&s=32"
                },
                "displayName": "My Name",
                "active": true,
                "timeZone": "America/Sao_Paulo",
                "groups": null,
                "locale": null
              },
              "created": 1634933575491,
              "size": 800567,
              "mimeType": "application/pdf",
              "content": "http://localhost:48135/j8135/secure/attachment/10000/appreciation.pdf"
            } 

      Actual Results

      The element "Attachment" is not present in the payload body.

      Workaround

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

      Note that while the issue is not present on 7.3.3 we do not recommend rolling back Automation for Jira at this point.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              a3c7c2a06f95 Filipi Lima
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: