Where In the Database are Approvals Stored?

We have a workflow process that requires multiple approvals.  It would be helpful to report on the item and include who and when an approval or rejection was recorded.  We are using the server version of Service Desk but do not know how to pull the approvals in a SQL report.  Any ideas?

1 answer

Hi Todd,

from experience I can only discourage you from going direct to the SQL Database, as the Schema is complex & can change with very little notice from version to version. 

We moved away from direct SQL Queries a long time ago and moved to the REST API's provided. They tend to be very, very stable. 

So if REST is an option for you, you should have a look at in the REST Servicedesk API:

servicedeskapi/request/{issueIdOrKey}/approval

Which should get you all approvals to a specific Issue.

There are also Rest Methods to get all Issues in a Queue or matching a JQL statement and then you'd have to iterate through them.

I appreciate not quite the answer you asked for but this may present a more stable/best-practice way.


Cheers,
Christian

I have to agree with that.  The Jira database is in no way built for any form of reporting, it's a data store.  Using SQL to read it is the single worst possible option for reporting.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Dec 06, 2018 in Jira Service Desk

Looking for teams who switched from email to Jira Service Desk

The Jira Service Desk marketing team is working on a guide to help new Atlassian customers switch from email to JSD and we'd love to hear from you! Please share: - What made you realize that i...

252 views 1 6
View question

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