Search in a Script Field

MarcoC March 21, 2013

Hi!

I have create a Scripted Field that take the ID of the issues and view it in the Issue Page.

But I realized that if I go to "Issues" and I try to search it, using "+MoreCriteria", I can't find it...

What can I do? are there any permissions, abilitations, or similar?

1 answer

1 accepted

0 votes
Answer accepted
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.
March 21, 2013

You need to set up a searcher - see https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+Fields

You want the number searcher, but make sure your script returns a Double.

MarcoC March 21, 2013

Perfect, I do this:

issue.id as String

Free Text Field

Configured searcher: Free Text Searcher
com.atlassian.jira.issue.customfields.searchers.TextSearcher

Regards,

Marco

Chana June 3, 2019

Hi @MarcoC1 & @JamieA 

I created a script field returned template : Text Field (multi line)

returned "None" as String

Configured searcher: Free Text Searcher

I added to the script the :

import com.atlassian.jira.issue.customfields.searchers.TextSearcher

but when I search :

"myScriptField"~None / "myScriptField"~"None"

0 results are returned 

Did I missed something ?

Suggest an answer

Log in or Sign up to answer