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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.