How to export issues from Jira Server plugin to Excel or Pdf?

I want to create a plugin which can export issues from Jira Server to excel or pdf. I am using the Issue interface for fetching the details of issues.(https://docs.atlassian.com/software/jira/docs/api/7.1.4/com/atlassian/jira/issue/Issue.html#getSummary--)

How can I export the results obtained from it in excel or pdf ?

Hi Shubhangi,

Threre is a Jira plugin which provides simple API to export Jira data to excel file: https://www.midori-global.com/products/better-excel-exporter-for-jira/server/documentation/api
I believe it’s one of the simplest way to create excel file.

If you don’t want to use other plugin you can export on your own with apache poi library https://poi.apache.org/
You have to add new dependency into your project

<dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi-ooxml</artifactId>
</dependency>

and follow tutorial https://www.codejava.net/coding/how-to-write-excel-files-in-java-using-apache-poi

Hopefully it will help you.
Josef Pavelec, Morosystems