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
Micky CARITTE Community Champion 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!


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.

Micky CARITTE Community Champion 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.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 26, 2019 in Jira Software

How to prevent the propagation of unused project schemes, workflows & screens in Jira software

Atlassian ranks project attributes as the third most important factor impacting performance in the category of data. It’s not surprising, since project attributes are precisely the rules used to ma...

628 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