Good morning erveryone. I am tasked with streamlining the Support-Ticket creation. Part of the requirement is to create attachments on newly opened tickets.
Jira-SDs Rest-API requires the user to first upload a file to a servicedesk as a temporary attachment, and then make it permanent by attaching the file to an issue. In my case, the request to attach the file to an issue intermittendly returns HTTP-Code 500 along with the following message:
{<span>"errorMessage"</span>:<span>"An error occurred while processing the attachment.
Could not save attachment to storage: Source file does not exist /var/atlassian/application-data/jira/caches/tmp_attachments/temp3914246537425063270"</span>,
<span>"i18nErrorMessage"</span>:
{<span>"i18nKey"</span>:<span>"sd.attachment.create.error"</span>,
<span>"parameters"</span>:
[<span>"Could not save attachment to storage: Source file
does not exist /var/atlassian/application-data/jira/caches/tmp_attachments/temp3914246537425063270"</span>]}}In about 90% of all cases, the request returns statuscode 201 and creates the attachment as expected. Since the AttachmentID is returned from the previous request, my reasoning is that Jira-SD has indeed processed the attachment and assigned it an ID. My questions are:
- What is the lifespan of a temporary attachment?
- Does Jira-SD limit the number of created attachments per user, per minute?
- Does anyone know of a npm-library/package that simplifies interactions with Jira-SD(!!!)s Rest-API?
Thank you very much, i am at a loss.