Forums

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

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

Robert Morton
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 16, 2018

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
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 Leaders.
January 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 Brough -Adaptavist-
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 Leaders.
January 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.

Robert Morton
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 16, 2018

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
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 Leaders.
January 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
TAGS
AUG Leaders

Atlassian Community Events