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

I am trying to use SQL to extract data from Jira and can't find my Custom field data?

We recently moved to the Server version of Jira and am trying to extract data to load into our Data warehouse and cannot find the values associated with the custom fields we have setup and populated. I am betting it is stored in XML somewhere but nothing obvious has been found yet.

1 answer

0 votes
miikhy Community Leader Jan 16, 2018

Hi Robert,

In fact it's in the database but I would advise you to prioritize using the REST API as much as possible.

If you need to keep using SQL, the table where information is stored is customfieldvalue (in the corresponding type column, you can join jiraissue table on issue ID and customfield on customfield_id).

Please note that if you're referreing to plugin data, they might use a proprietary format for storage or an Active Object table which is slightly different.

Hope this helps!

Cheers

nic Community Leader Jan 16, 2018

Also, for some custom fields, you will probably need to join on the "options" tables - specifically, select type fields.

I can't recommend Micky's first line more - please, do not use the Jira database for anything, it's a nightmare for reporting.  Use the REST API.

I was able to find the data in the Labels table, but now I am trying to find the Epic that the issue is associated to.

miikhy Community Leader Jan 16, 2018

Have a look at the customfield value table and check which ID is the "Epic Link" associated to. AFAIK that field is stored as others in that table.

Cheers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Early Access: If you use Jenkins and Jira Software Cloud, you need to read this!

The Jira Software Cloud Team has been busy working on a simple, secure, and reliable way to integrate your build and deployment information from Jenkins with Jira Software Cloud. This means you don’t...

704 views 0 11
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