It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Copy attachment from issue to confluence page

Peter Gruber Nov 22, 2017

Hello,

I wanted to know if it's possible to copy an attachment from an issue to a confluence page. Somebody got an idea for that?

Thanks in advance.

 

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev [cPrime] Community Leader Nov 22, 2017

Hello,

It is possible. You could write a post function or service in Jira which would take an attachement from Jira and uploaded it to confluence using REST API.

Peter Gruber Nov 22, 2017

Hello,

Ok thank you.

Would you be so kind to tell me how?

Do I only need to define the right params, or is it more complicated?

def params = [
type: "page",
title: pageTitle,
space: [
key: "TEST" // set the space key - or calculate it from the project or something
],
// if you want to specify create the page under another, do it like this:
// ancestors: [
// [
// type: "page",
// id: "14123220",
// ]
// ],
body: [
storage: [
value: pageBody,
representation: "storage"
]
]
]
Vamshee Rangu I'm New Here Monday

Do you have any code snippet I can use? to copy attachments from JIRA to Confluence?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Marketplace Apps & Integrations

Demo Den Ep. 4: Continuous Integration with CircleCI & Jira Software

Get ready! Demo Den Episode 4 is coming your way on Tuesday, May 28, 2018 with a Continuous Integration and Delivery special demo. CircleCI Director of Solutions Engineering, Eddie Webb will show us ...

506 views 0 4
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you