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

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

72 views 1 0
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