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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Where to find values of scripted fields in the database?

I am trying to create a SQL query which involves scripted fields from Jira, but there is no information available for scripted fields in the customfieldvalue table.

Apparently it is not stored in the same table or is not there in the database at all.

Reading few old similar discussions, I found that the scripted fields work over indexes, can anybody suggest a workaround to fetch values of scripted fields via database if possible?

Thanks! 

1 answer

1 accepted

0 votes
Answer accepted

There is no way to get scripted/calculated fields from the database (yet another reason to not use the database - it is the worst possible way to get information from Jira).  The scripted fields simply aren't there.  The best you could do with the database is read the scripts behind the fields and replicate the logic in them from scratch to calculate them for yourself.

You will need to move to using the UI or REST API - they can expose the index and hence scripted fields.

Thanks Nic!

Could you please suggest which table to look for the scripts?

I don't know, it's not something we should ever be worrying about.  I would expect it to be a table named AO_4B00E6_something, but I've not looked.

You do know that to extract this, you're going to need to implement a full Groovy/Java environment to run the scripts in against the data you extract?

This is not an insignificant piece of work, you could be trying to do this for months. 

I still very strongly recommend that you stop using SQL and use REST

Like Divyanshu Dwivedi likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

114 views 0 2
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you