Scripted Field JQL

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

Accepted Answer
2 votes

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

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.

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

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.

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

20,679 views 2 7
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