Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA Cloud REST API Fields for Issue ADD attachments

Deleted user September 19, 2019

Hi,

 

I have a hard time find the list of the Fileds in JIRA Cloud REST API Fields for Issue ADD attachments. I did not find the Fileds in below URL.  

https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-rest-api-3-issue-issueIdOrKey-attachments-post

It will be very helpful if anyone shares me the List of the fields.

Thanks.

2 answers

1 accepted

0 votes
Answer accepted
jira guy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 19, 2019

curl -D- -u admin:admin -X POST -H "X-Atlassian-Token: no-check" -F "file=@myfile.txt" https://your-domain.atlassian.net/rest/api/3/issue/TEST-123/attachments

 

with curl myfile.txt will be your file. 

Deleted user September 19, 2019

Hi @jira guy

Thank you so much for your quick reply.

Thanks. 

Vish Anand
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!
January 11, 2023

@jira guy 

 where should be the original attachment (e.g @myfile.txt) needs to be uploaded for the API to work for jira cloud?

 

curl -D- -u admin:admin -X POST -H "X-Atlassian-Token: no-check" -F "file=@myfile.txt" https://your-domain.atlassian.net/rest/api/3/issue/TEST-123/attachments

0 votes
Leslie Hernández G October 3, 2019

Hi, i want to use webhooks to notify teamcity when a issue change of status. It is possible ? 

I have a curl POST command to run a build configuration in teamcity. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events