Scripted Field JQL

Junaid Shah
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.
February 27, 2015

Hi,

 

Just wondering with Scripted Fields is it possible to search through JQL, or any specific way of using the values stored in a Scripted Field for JQL functions. As they dont show up when I try to use JQL for those fields.

Thank you.

 

1 answer

1 accepted

2 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
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.
February 27, 2015

You need to edit the field and set up a searcher. Also, don't forget to reindex after the searcher is enabled.

JamieA
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.
February 27, 2015

Yes - but please make sure the searcher is of a type suitable for your return value. Script fields preview will tell you if you've got it wrong.

A June 22, 2015

my script is returning integer value. and i have set up the value as numeric searcher. But by using issue navigator i am not able to search any value

Robert G. Nadon
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 24, 2016

I was getting the same thing Amar, and I went in and deleted the scripted field and recreated it and reindex directly afterwards.   After that it works; however if the field changes you have to reindex which is not practical for us as the reindex takes quite a bit of time and resources.

Cheers.

JamieA
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 30, 2016

you should not have to manually reindex unless you change the field searcher. For a number search you should return a Double.

Suggest an answer

Log in or Sign up to answer