Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Where customer satisfaction rating is stored in database

Juha Lastuniemi April 10, 2017

Hello! I'd like to query satisfaction rating for issues using sql. Where do I find the "stars"?

BR,

-Juha

2 answers

2 votes
Anita Dzik
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!
September 16, 2018

In CUSTOMFIELD table I have two fields which are relatable with satisfaction rating.

First it is SATISFACTION field (in my version of database: id = 11102), second it is SATISFACTION DATE field (id = 11103).

In CUSTOMFIELDVALUE table, value of SATISFACTION field is in STRINGVALUE column, value of SATISFACTION DATE field is in DATEVALUE column.

Example:

select
    p.pkey,
    ji.issuenum,
    ji.assignee,
    cfv.stringvalue  as "star",
    cfv2.datevalue
from
    customfieldvalue cfv
    join jiraissue ji on cfv.issue = ji.id
    join project p on ji.project = p.id
    join customfieldvalue cfv2 on ji.id = cfv2.issue and cfv2.customfield = 11103  
where
    cfv.customfield = 11102

Mary Joycelyn Bunag February 23, 2021

Hi, @Anita Dzik - this actually works for me! Thank you!

I replaced your customfield ID using the following and I was able to get the STAR rating.

Capture.PNG

I then got the Customer feedback/comment part using the below SQL:

select
    p.pkey, i.issuenum,
    i.reporter,
    ep.json_value
from
    entity_property ep
    join jiraissue i
    on (i.id = ep.entity_id)
    join project p
    on (i.project = p.id)
where
   ep.property_key = 'service-request-feedback-comment'

 

Joined the tables together and was able to re-create the data displayed in the Satisfaction report.

OMAR MOHAMED AHMED MOHAMED FATHY
Contributor
October 10, 2023

did you reach anything 

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2017

It looks like you are using Ovyka Satisfaction for JIRA.

The satisfaction ratings seem to be in the "AO_A36E36_FIELD_ANSWER" table in the INT_ANSWER column.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events