Description from Jira issue to Confluence page single copy
Asked by Ruud Ravensbergen:

Hi  
I use the option "Create Page in Confluence" from Jira Automation.  
How in now get the description from the Jira Issue into a Confluence Template/Page  
It only have to do this ones. No active connection


Answers:
author: Thibaut Subra _Elements_
body: Hello [@Ruud Ravensbergen](/t5/user/viewprofilepage/user-id/4586761)

Can you tell us more about how your workflow is set up and your need exactly?

If you want to publish Jira issues to Confluence easily (with [post-functions integrated in Jira Automation](https://doc.elements-apps.com/publish-to-confluence/how-to/create-confluence-pages-with-automation?utm_source=community&utm_medium=forum&utm_campaign=question-2358177) if needed), our app [Publish](https://marketplace.atlassian.com/apps/1225519/elements-publish-create-confluence-pages-from-jira?tab=overview&hosting=cloud&utm_source=community&utm_medium=forum&utm_campaign=question-2358177) can help you with that, with synchronization or not. You can try it for free!

Glad to help with your automation anyway. Let me know.

Regards

comments: author: Ruud Ravensbergen
body: I start with a "manual trigger" then I check if it is an epic with "issue type".  
The next step is "Create Page in Confluence" in which the title is  
"{{triggerissue.summary}} ({{triggerissue.key}})"  
Complete the right "space" and the right "parent" page.  
At "Template" I refer to an existing confluence template.  
The last step is to log the script

This action is performed by the PO if a new epic is put on our board. We work Agile Safe and the epics are created by others. We as a team want our information that is needed for working on the Epic in Confluence. To make it simple, a script seemed to be great to create a confluence page and then copy the "description" to that page.  
Everything works but I don't get the "description" on the Colluence page


author: Thibaut Subra _Elements_
body: Ok I understand.

I'm afraid you can't do that but through REST API by sending web request, it definitely won't be easy.

If you want to do that just by configuring a recipe and adding it to your Jira Automation, I suggest to try our app, it will save you great time an effort. For example you can:

* insert any Jira issue data in the Confluence page (and keep the value synchronized between the issue and the page if needed)
* use any Confluence template you need or design the page yourself
* automatically link the page to the issue

Let me know if you have any question.


author: Ruud Ravensbergen
body: I also tried that. But not a success.  
I used this code. No page is made.  

![code.png](https://community.atlassian.com/t5/image/serverpage/image-id/256935i515D81C3F41F77EC/image-size/large?v=v2&px=999 "code.png")

The error {"statusCode":500,"message":"com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\\n at \[Source: (com.atlassian.plugins.rest.common.limitrequest.jersey.LimitingRequestFilter$1); line: 8, column: 32\]"} is returned  
But I can not find the problem there.


author: Cosmin Soare
body: Hi Ruud,

I am in the same situation as you, have you managed to find a way to automate the process?


author: Ruud Ravensbergen
body: Not yet. Bussy with other things right now.


author: Cosmin Soare
body: Hi, [@Ruud Ravensbergen](/t5/user/viewprofilepage/user-id/4586761)

I managed to make it work like this, it will create a page on the top level of your space, no parent added in this code:

```
{
"type": "page",
"title": "{{issue.key}}: {{issue.summary}}",
"space": {
"key": "XX"
},
"body": {
"storage": {
"value": "{{issue.description.htmlEncode}}",
"representation": "storage"
}
}
}
```

You have to add .htmlEncode at the description to be able to have spaces between description rows.

<https://yoursite.atlassian.net/wiki/rest/api/content/>

Headers section needs:

```
Key: Authorization
```

```
Value: Basic YourConvertedUser+APIKeyto64BaseString
Ex: youremail+api to 64Base
```


author: Ruud Ravensbergen
body: great [@Cosmin Soare](/t5/user/viewprofilepage/user-id/5438343)   
I going to try that.


Tags: automation

cloud

confluence-cloud

jira