Forums

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

How to make scripted fields work with the "exact text searcher"?

Antoine _Klee Group_
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.
August 16, 2023

Hi,

I have an "HTML" scripted field which outputs a link and a text accordingly.

When I select the "free text searcher" on the linked jira custom field, this works fine.

But when switching to the "Exact text searcher" I am not able to search for values anymore.

Is there a trick to be able to use this feature?

 

Also, the field that I am manipulating is more or less an issue key, so ideally what I need is the "key searcher". Do you have insights on how to use this one?

 

What I am returning in the scripted field is essentially : `<a href= "<link to the issue>">WHATEVER-YY-<incremental_number></a>`

 

Thanks.

1 answer

0 votes
PD Sheehan
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.
August 16, 2023

Did you re-index your site after changing the searcher?

If you want to use the issue key searcher, your script field can probably only return an issue key.

You might want to explore using the custom field template to control the rendering of your field to include the custom html.

Suggest an answer

Log in or Sign up to answer