JIRA Create API with Required Temporary File Attachment

Garrett Wong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2020

One of our JIRA API Types require the Attachment Field to be populated prior to submission.  

In the Network Requests, it looks like an API call for AttachTemporaryFile is made prior to the creation of the JIRA Ticket itself.  

https://docs.atlassian.com/software/jira/docs/api/7.0.8/com/atlassian/jira/web/action/issue/AttachTemporaryFile.html

I have confirmed that I am able to successfully make this API call to upload a "temporary file". 

I'm struggling to find the proper field syntax for executing the Create JIRA API call afterwards to include the Temporary File attachment.  We have a policy set that requires the presence of an attachment at submission time, otherwise the request is rejected.  

Can anyone assist with guidance / code samples?  

Thanks!

1 answer

0 votes
Jared
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2023

I'm having this same issue

Suggest an answer

Log in or Sign up to answer