Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-16217

API endpoint /rest/servicedeskapi/request/ can't show attachment if the attachment is uploaded during issue creation via the Agent View (Jira UI)

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 10.3.0
    • API and Integrations

      Issue Summary

      If an attachment is uploaded in the Attachment section during issue creation via the Agent view (Jira UI), the API endpoint /rest/servicedeskapi/request/ will not return any attachment.

      Steps to Reproduce

      1. Create an issue and upload an attachment in the Attachment section
        • Note that Request Type needs to be set to a non-empty value, otherwise the REST API call will return the error The request could not be found, or you do not have permission to see it."
      2. Run /rest/servicedeskapi/request/<ISSUE_ID> against the issue

      Expected Results

      The response should show the uploaded attachment.

      Actual Results

      The attachment section of the response is empty:

              {
                  "fieldId": "attachment",
                  "label": "Attachment",
                  "value": [],
                  "renderedValue": []
      

      Workarounds

      In the Agent view (Jira UI):

      • If the attachment is uploaded in the Description section during the issue section, then this issue does not occur
      • If another attachment is uploaded after the first attachment, then the API can return all attachments

      In the Customer Portal:

      • If the request is created via the customer portal and the attachment is added in the request creation form, the issue does not occur

      Versions Tested

      Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below: 

      Testing Requirements Version Affected Version
      Customers Reported Version 10.3.0 Yes
      Most Recent Bug-Fix Release    
      Previous Major Release    
      Most Recent LTS    
      Previous Supported LTS 9.12.22  Yes 
      Other Versions..    
      (Add rows as needed)    

            [JSDSERVER-16217] API endpoint /rest/servicedeskapi/request/ can't show attachment if the attachment is uploaded during issue creation via the Agent View (Jira UI)

            There are no comments yet on this issue.

              Unassigned Unassigned
              13e61c67b0d4 Kaili Gu
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated: