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

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!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events