The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to save the description that contains wiki in jira to word document.

Deleted user
February 24, 2022

Hi,

The description string we get by using rest api call "{url}/rest/api/2/issue/{key}" as below,

h1. *Here we need to provide the description about the jira*

If we used to save the same in document using c#. Then it come as same.

But we need to convert this wiki representation to HTML. How can I achieve this in C# code?
Is there any built in function / package for conversion. Please guide us. It help us more.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Nir Haimov
Community Champion
February 24, 2022

Hi @[deleted] 

You have a build-in option for this.

To your api add ?expand=renderedFields, like this:

"{url}/rest/api/2/issue/{key}?expand=renderedFields"

and the API will return new section "renderedFields", all fields will there as HTML

Deleted user
February 25, 2022

Hi @Nir Haimov ,

Noted and Thanks! IT works out.

But still am facing some other issues while loading images.

By using the above renderedFields in url, the image is not populating fine in the MS Word document.

I'm saving the HTML as temporary file and trying to append that file to MS Word,

Content is coming fine only images causing issues. 

Thanks!

TAGS
AUG Leaders

Atlassian Community Events