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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

607 views 6 12
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