Forums

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

Jira REST API - How to pull details of a custom queue

Deleted user August 5, 2018

I am pulling Jira tickets details using REST api and have been successful so far in fetching and parsing all the fields. 

However, I have a custom queue configured where we track the user satisfaction score using a 1-5 star rating structure. This rating is only visible in this custom queue and does not feature in the Jira details.

How can I pull the satisfaction score for the Jira?

I am using jira-python library (doc here : https://jira.readthedocs.io/en/master/) to pull the details.

1 answer

0 votes
Mauricio Karas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 7, 2018

Hello, Shivank!

The customer satisfaction rating is a special feature of Service Desk, and as you've mentioned, it doesn't appear in the issue details from the "standard" REST call.

Looking through the REST API reference on Service Desk, I was not able to find anything related to the customer satisfaction feature. I found this improvement request created in order to introduce this calls in the API reference.

----

I was able to find a REST API call, used internally by Jira, to get information from reports(which contain the ratings from the customer satisfaction survey):

GET <base_url>/rest/servicedesk/<servicedesk-id>/projects/<project-key>/report/<report-name>?start=1&limit=100

In this case, "report-name" should be "feedback". You'll also need the project key, which is easily found, and the Service Desk ID, which can be found with the following REST call:

GET <base_url>/rest/servicedeskapi/servicedesk

It will return a list of your Service Desk projects, the "id" field is what you need.

Now, after running the report REST call, the rating of the issue will be in the "rating" field alongside with the "issueKey" field that contains the issue key.

Here's an example I've tested on my side:

http://localhost:8081/rest/servicedesk/1/projects/GG/report/feedback?start=1&limit=100

----

As for the jira-python library, since this call is not in the official REST API reference, it is not present in this Python library. I recommend you to use the Requests library to make the call yourself and then process the returned JSON data.

Kind regards,
Maurício Karas

Rutuja Mandlik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 18, 2018

hi.. i am trying to generate a ticket using jira REST API. I am stuck at a point where log is loaded but server connection is paused. Can you please help me

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events