HTML formatted custom field values not showing up in searches

I have created a cusotm field with the values in a a drop list consisting of;

  • In Progress
  • Approved
  • Declined
  • Restricted

I've added HTML colour formatting to the values e.g. - <font color ="Green">Approved</font color> this shows up as intended in the issue pages with the colour formatting intact.

However when searching, and adding filters to the search to narrow down the results to just those containing one of the the predefined values, the results cannot be found.....

project = "Methods & Tools" AND component = "New Tool Request" AND issuetype in (Task, Sub-task) AND "Tool Request Status" = Approved

The option 'Approved' for field 'Tool Request Status' does not exist.

If i remove the HTML fromt he values the filtered search shows the desired resutls - but obviously the colours associated with the values are lost.

I'm looking to see if there's a way to keep the formatting and still be able to bring up the search results? ideally without the need of a plug in.


2 answers

1 accepted

1 vote
Accepted answer

Hi Chris,

We have some custom fields with HTML as well, you will need to add the HTML code in the JQL search as well to get the results. Here's an exemple:

project = TEST and "Sub Issue Type" = "<span 04 style='background-color: rgb(255, 156, 0); color: rgb(255, 255, 255);'><b>New Request</b></span>"

Thanks - that's perfect!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,098 views 4 9
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