Forums

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

Jira REST API - Anonymous users cannot post attachments if restricted from viewing issues

Brady Brenot
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!
September 27, 2018

If we follow the instructions on this page to restrict anonymous users' ability to view issues, there doesn't seem to be any way to allow them to post attachments.

Trying to include the attachment field at issue create time results in

{"errorMessages":[],"errors":{"attachment":"Field does not support update 'attachment'"}}

And trying to post the attachment after the issue is created (at https://{site}/rest/api/2/issue/{issue}/attachments) results in

 {"errorMessages":["Issue does not exist or you do not have permission to see it."],"errors":{}}

Removing the issue security allows the user to post the attachment. 

Anonymous users can post attachments with the web form, since they can do it at issue creation time.

Other than actually using authentication and not posting anonymously, is there any simple way around this?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events