How to perform an advanced search to find exact results related to a short text field value
Asked by naveen arroju:

How to perform an advanced search to find exact results related to a short text field value  

example : project = Devops and vessel name (short text) \~ willie   

<br />

only willie related exact results are needed, not other related willie b willie joe

"How can I perform an advanced search in Jira to find exact matches for a short text field value? For example, I want to search within the 'Devops' project for issues where the 'Vessel Name' field (a short text field) is exactly 'Willie', without returning results that include variations like 'Willie B' or 'Willie Joe'."


Answers:
author: Duc Thang TRAN
body: Hello [@naveen arroju](/t5/user/viewprofilepage/user-id/1124729)

I don't think it's possible to retrieve only the results for "willie" and exclude "willie c," etc., without using a plugin.

I'm using ScriptRunner Here a link to this plugin <https://docs.adaptavist.com/sr4js/latest/features/jql-functions/included-jql->

Exemple JQL:

issueFunction in issueFieldMatch("project = gtosdmigr", "Text 3", "\^willie$")

![2024-08-26 10_57_28-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/343771i92A5FDB362B62E33/image-size/large?v=v2&px=999 "2024-08-26 10_57_28-Window.png")

comments: author: naveen arroju
body: Hi [Duc Thang TRAN](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5371199),  

Link not working


author: Nikola Perisic
body: Hi [@naveen arroju](/t5/user/viewprofilepage/user-id/1124729)

You are correct that the "=" operator is not working with your custom field. Even if you try to use something different the only options that you will be given are \~ and IS and IS NOT. Even from the JQL Extensions app, the results are the same.![Screenshot 2024-08-26 at 10.00.01.png](https://community.atlassian.com/t5/image/serverpage/image-id/343761i5DA7AF2738070D40/image-size/large?v=v2&px=999 "Screenshot 2024-08-26 at 10.00.01.png")

It simply won't allow the "=" operator in any way.

comments: author: naveen arroju
body: Yes, Nikola, thanks for the quick response.   

Suggest to me how to get exact results and values.


author: Nikola Perisic
body: Got it. You would need to download the app JQL Extensions by Appfire. Once that is done, navigate to their application and use the following query:

issue IN wildcardMatch("Vessel Name","Willie")

Let me know the results.


author: naveen arroju
body: I have tried same jql issue IN wildcardMatch("Vessel Name\[short text\]","Willie") not working.


author: Nikola Perisic
body: By not working, what do you mean exactly? Is it showing all of the results with the "Willie" keyword?


author: naveen arroju
body: *No Results*


author: Nikola Perisic
body: Are there any issues that were created with the value of Willie only?


author: naveen arroju
body: No there is no issues


author: Nikola Perisic
body: What I meant was, are there any tickets that were created having the value of "Willie" only in your custom field?


author: naveen arroju
body: Yes there is value with capital letters


author: Cristian IONESCU
body: Hi Navee,

Please try:

project = "Devops" AND "vessel name" \~ "\\"willie\\""

comments: author: naveen arroju
body: Thanks for quick response.

It's not working, results **willie b and Willie Joe** values appeared**.**

Required only **Willie** value results


author: Cristian IONESCU
body: You can also try: project = "Devops" AND "Vessel Name" = "Willie"


author: naveen arroju
body: "=" not working short text field.


author: naveen arroju
body: If there's a plugin that can help with this, please let me know as soon as possible


Tags: atlassian-marketplace

cloud

jira-cloud