Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,645
Community Members
 
Community Events
165
Community Groups

Interacting with Confluence from JIRA - wiki vs storage

I have been testing JIRAs abilities to add pages on Confluence using this guide:
https://scriptrunner.adaptavist.com/latest/jira/interacting-with-confluence-from-jira.html

My content for the body of the page is taken from a custom field which is rendered in wiki style. 

The first part the guide uses wiki as representation:

body : [
storage: [
value : pageBody,
representation: "wiki"
],
],

But when the guide makes the XML to add the link back to the JIRA ticket then the representation is changed to storage:

body : [
storage: [
value : writer.toString(),
representation: "storage"
]
]

When the Confluence page is created the link back is created as it should, but my text from the custom field is just placed as a single line, not even line breakers are added. 

How do I make the link back to the issue and make the body text format correct as it is in the wiki-style custom field?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

1,041 views 18 28
Read article

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