Push a readme.md to confluence using confluence APIs
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Push a readme.md to confluence using confluence APIs
Hello,
So I'm trying to push readme to confluence, except that Confluence APIs accepts the body as json, but my readme is a multiline text.. In confluence I have a waiting plugin to convert the text into a well-formed readme 🙂
So I'm trying to convert a multiline text into a single line so that I can automate pushing all readme to confluence.
One of my problem now is to locate the carriage return , and convert it into "\\n" but I'm new to groovy and I don't know how to do that.
One of the future struggle is going to be : how to parse through directories to locate readme.
many thanks
pizzaTime
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you put \n string literals and post the contents, does it work? Do you want to do a quick test for confirmation?
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See documentation:
https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/
"value":"<p><ac:structured-macro ac:name=\"space-attachments\"/></p>","content":{"id":"1448805348"}}'
SoapUI generates id when user attaches a file to the test case-> test step.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for help Community!
@pizzaTime it looks like nmrao has a suggestion you could try. Please let us know how it goes. Thank you.
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Sorry, this was left out by more urging projects. I'll try this out next week and keep you posted.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sure, but let us updated that were you able to solve this or still need any kind of help 🙂
Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓
Thanks and Regards,
Himanshu Tayal

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »