upload the file and attach it to confluence - Javascript

I have test result which exported to the shared folder when running through automation tool .

I want to upload this  test result and attach to confluence and I am using java script 

Please update how can we can do this ?

Thanks

NG

 

 

 

1 answer

0 vote
Maarten Cautreels Community Champion Sep 28, 2017

Hi Nishchal,

You should be able to use the Confluence API (Confluence Cloud or Confluence Server) for this. 

Specifically the Attachment API's (Confluence Cloud or Confluence Server).

Hope this helps.

Best,

Maarten

Thanks for the updates. The only example I am seeing for the attachment is commandline .

Can we use the command line directly in the java script code ?

 

Thanks

NG

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 14 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

99 views 2 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you