How can I do a fuzzy search on the built-in custom URL field

Hi there...hoping someone can share some tips or insight.

I'm unable to search with the 'like' ~ operator for a URL type field.  The URL validation works but I'd like to search for all bugs related to specific countries, where each country has set of URLs across various environments like development, test, staging, and production.  

For example: I want to see all bugs reported for France where the URL is like "http*fr*".

Everything I've read indicates this isn't possible.  Only =, !=, in, not in, is, is not, are valid operators.  But I'm hoping there is a creative workaround or way to change the URL custom field type without losing the content already entered.  Note - I'm not a developer and am unfamiliar with writing or using things like Script Runner.

1 answer

Hi Michelle,

Since that's not possible in JQL, the first thing I would do is attempt to query the data using the API and search the results.

Barring any additonal advice, another option would be to perform a SQL search, however, it's not recommended to manipulate the db directly as it can lead to issues if something goes awry.  In light of that, here is the JIRA Database Schema.

You can use the JIRA Database Schema to write a SQL query to find the data you need:

  • The jiraissue table holds the issues
  • The customfield table holds a list of the custom fields
  • The individual instances of a custom field are held in the customfieldvalue table and the value is in the stringvalue column.

You can also find the custom field id using the article How to find id for custom field(s)?

Once you have the custom field you or your dba should be able to construct a query to find the issues based on the custom field.

In addition,

Cheers,

Branden

Thank you...I will give it a try.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,335 views 14 20
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