Custom field created as Version Picker - SQL Query in database


I have created a custom field (for eg. Release) of type single version picker.

I have created many issues and set this field. Now, I want to search for all JIRA issues for a particular release. Since, I am writing reports in BIRT, I need an SQL query.

I am able to fetch the values for all other custom values, but not for this field. (I have created 3 more fields of type version picker.)

Could you please provide me help on this? May be a sample SQL query or the table which will hold the link to the jiraissue and the value of the release custom field.

Any help on this would be appreciated.



1 answer

1 accepted

I think this should get you started:

  customfieldvalue.issue = AND
  customfieldvalue.customfield = AND
  customfieldvalue.numbervalue =

As for turning the issue reference (pkey) into an HTML link, you could probably use a string operator such as:

SELECT '<a href="' || jiraissue.pkey || '">' || jiraissue.pkey || '</a>' AS "Issue No.",

Hope that helps.

Awesome... the "numbervalue" did all the trick. I was using "stringvalue". Thanks a much.

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted 8 hours ago in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

25 views 1 2
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot