Where customer satisfaction rating is stored in database

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

BR,

-Juha

2 answers

0 votes

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.

0 votes

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

311 views 1 4
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you