Forums

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

Where can I find the IDs/Keys in the database for Scriptrunner objects?

Corey Leighton
Contributor
May 27, 2021

I am trying to build a way to give some advanced metrics for the scriptrunner objects we use (scripted fields, listeners, etc) based on the information scriptrunner stores in the database.  I see some data in the database tables, including the runtime stats, but I can't find some critical details.  In the run result table, the key is obviously for each of the objects, but I can't find where that key maps to an object.  In particular, I can't find where the behaviors, listeners and scripted field keys are stored.  I only see fragments, jobs and resources in one of the other AO tables.

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 2, 2019

From the documentation

import com.onresolve.scriptrunner.db.DatabaseUtil 
DatabaseUtil.withSql(
'local') { sql ->
sql.rows(
'select * from project')
}
TAGS
AUG Leaders

Atlassian Community Events