Forums

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

How to create link to uploaded attachment?

Jim Segrave
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!
April 30, 2020

I use the cloud rest api to upload a text file to a page I've created on our server. If I click on the '...' and then on Attachments, I see the freshly uploaded file listed, although there's no hint of its existence on the page I uploaded to. I want to create a labelled link on my page which points at the uploaded file, again using the rest api (so I can script this)

When I use the api to ask for attachments, there's no reference that I can see to the uploaded file, 

I expect to be generating regular uploads from scripts (tracking hard disk failure statistics), so it all has to happen without manual intervention

 

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 4, 2020

Hello @Jim Segrave !

As I understand, you need to add attachments to pages automatically via REST API and currently you are able to insert them in the attachments list only.

This happens because when we upload something via REST API it is simply listed as an attachment and no change is applied to the actual body of the page.

For the attachment to show up we need to touch the page body and make the necessary changes.

I believe that this thread here in the community takes care of the situation at hand:

 

I hope this helps! Looking forward to your reply.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events