It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to export organization name to csv for building excel reports?

We use JIRA service desk for managing 1 application with multiple external customer organizations. We need to regularly create an issue status report per customer organization to share with each organization: how many tickets are open, in progress, waiting on customer, resolved, etc per week. Including graphs, pie charts and so on. So that the external organizations can see spikes in tickets in a regular report.

I have not come across any documentation re sharing reports with external customers? JIRA Reports seem to be for internal team purposes only?

So we are exporting all open customer issues to excel csv and we then create excel reports from that csv. We want to be able to filter the excel report data by customer name to create an individualised excel status report per organization for sharing with individual organizations.

However when - on the JIRA issue search screen - we "Export Excel CSV (all fields)", the only Organization identifying field in the exported csv is "Custom field (Organizations)" which is an ID number. The ID numbers are not helpful because it is difficult to tell which external organization a number is actually referring to. How can we get the Organization name rather than a number? 

At the moment, I cannot see a way to determine the organization name from the exported organization number; I do not even see this number on the JIRA screen listing the customer organizations. 

Ideally, we would like to export a name instead of an ID number but cannot see a way to do that?

Alternatively, is there a way to identify the organization name from the exported ID number? E.g. is there is a way to export an organizations list containing ID and Name?

2 answers

0 votes

Alternatively, is there a way to identify the organization name from the exported ID number? E.g. is there is a way to export an organizations list containing ID and Name?

I don't have an answer for your preferred scenario, but as for this question, you can achieve this by means of the Jira Service Desk REST API (Server | Cloud) - here is the example response for a GET /rest/servicedeskapi/organization/{organizationId} call:

 

{
"id": "1",
"name": "Charlie Cakes Franchises",
"_links": {
"self": "http://host:port/context/rest/servicedeskapi/organization/1"
}
}

A call to GET /rest/servicedeskapi/organizations also includes the organization names right away, which seems preferable for your use case to "export an organizations list containing ID and Name":

{
"_expands": [],
"size": 1,
"start": 1,
"limit": 1,
"isLastPage": false,
"_links": {
"base": "http://host:port/context/rest/servicedeskapi",
"context": "context",
"next": "http://host:port/context/rest/servicedeskapi/organization?start=2&limit=1",
"prev": "http://host:port/context/rest/servicedeskapi/organization?start=0&limit=1"
},
"values": [
{
"id": "1",
"name": "Charlie Cakes Franchises",
"_links": {
"self": "http://host:port/context/rest/servicedeskapi/organization/1"
}
}
]
}

We're having a similar issue. This workaround is working for us though (thanks Tom!) -

Export it as HTML instead of CSV, open the HTML file in a spreadsheet program and then save it from there as a csv.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Desk

Tell us how you've implemented Change Management

Hello Community 👋, I'm a product manager at Atlassian, looking at improving change management capabilities across our products. In particular, we're looking at bridging the gap between Dev & ...

283 views 0 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you