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

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

       

      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.

            [JIRAAUTOSERVER-355] Send Web Request with POST Issue Data not providing attachment information

            Marko Radivojevic made changes -
            Remote Link Original: This issue links to "A4J-2850 (Bulldog)" [ 593765 ] New: This issue links to "A4J-2850 (JIRA Server (Bulldog))" [ 593765 ]
            Marc Dacanay made changes -
            Labels Original: iq-a4j New: iq-a4j ril
            Marc Dacanay made changes -
            Remote Link New: This issue links to "Internal ticket (Web Link)" [ 956521 ]
            Michelle Chin made changes -
            UIS New: 0
            Julien Rey made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 738699 ]
            Rudy Slaiby made changes -
            Labels New: iq-a4j
            Filipi Lima made changes -
            Description Original:  
            h3. 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).
            h3. Steps to Reproduce
             # Create or update an issue to have an attachment.
             # Create a new rule with any trigger.
             # Create a new action of *Send web request.*
             # **Add any value to the *Webhook URL* (such as "test")
             # Select HTTP method *POST* and webhook body of *Issue Data*.
             # Expand the *Validate your webhook configuration* and enter your issue key.
             # Click *Validate* and expand the Request > Payload area.

            h3. Expected Results

            For an issue with an attachment the following is expected:
            {noformat}
                "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"
                  } {noformat}
            h3. Actual Results

            The element "Attachment" is not present in the payload body.
            h3. 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.
            New:  
            h3. 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).
            h3. Steps to Reproduce
             # Create or update an issue to have an attachment.
             # Create a new rule with any trigger.
             # Create a new action of *Send web request.*
             # Add any value to the *Webhook URL* (such as "test")
             # Select HTTP method *POST* and webhook body of *Issue Data*.
             # Expand the *Validate your webhook configuration* and enter your issue key.
             # Click *Validate* and expand the Request > Payload area.

            h3. Expected Results

            For an issue with an attachment the following is expected:
            {noformat}
                "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"
                  } {noformat}
            h3. Actual Results

            The element "Attachment" is not present in the payload body.
            h3. 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.
            Daniel Ramotowski made changes -
            Status Original: Needs Triage [ 10030 ] New: Long Term Backlog [ 12073 ]
            Daniel Ramotowski made changes -
            Remote Link New: This issue links to "A4J-2850 (Bulldog)" [ 593765 ]
            Filipi Lima made changes -
            Attachment New: payload on 7.3.3 good.txt [ 411973 ]

              Unassigned Unassigned
              a3c7c2a06f95 Filipi Lima
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated: