Where is the value of a scripted field stored

We would like to create a query on the database involving the customfieldvalue of a scripted field, but apparently it is not stored there.

Where should we find it (if at all persisted)

1 answer

1 accepted

2 votes
Answer accepted

I seem to remember that scripted fields store their results data in the index. (I know that's how derived fields do it, but I could be wrong about scripted fields and they build it on-the-fly whenever it's needed)

I'm afraid that if you're reporting off the database, then the only real answer is to duplicate the work the scripted field does in your reporting.

Yep... if you need a second opinion, Nic is correct. Scripted fields extend Calculated Fields, which have no value in the database.

You can export all to excel and do your aggregate calculation in that, or write a raw lucene query and do some calculation on those results...

It is possible to retrieve sript code from database? Where Script Runner store script code?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


275 views 0 7
Read article

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