Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Search for common keyword

Pia Donato
January 14, 2019

Need to be able to search for the keyword "urgent" but note that this keyword is being used in a default response in comments (i.e. "If this is an urgent request").

To illustrate in the example below, the results should show this one since it has the "urgent" keyword which is not on the default response used in Comment 1.

Comment 1: "If this is an urgent request, please let us know"
Comment 2: "This is urgent."

However, if the keyword is only found on the default response, then it should not show in the results.

Is this even possible?

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 15, 2019

Hello Pia,

Welcome to Atlassian Community!

The best way to achieve your need is by adding a specific character/word in the default response to remove it from the search.

Of course, this character/word should not be used in other comments that are not with the default response.

Explaining better, let's suppose your default response would be: "ç: default Urgent jira issue". You could create the following query to return all the other issues:

comment !~ "ç" and comment ~ "urgent"

Please, let me know if it makes sense to you.

Pia Donato
January 16, 2019

Hi Petterson! Yup, that makes sense. But keeping the default response as is (since we cannot have this changed under any circumstance), is there another way to do this?

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 16, 2019

Hello Pia,

Another option I was able to find was by using the \" to return issues that literally have that specific sentence. the query would be:

comment !~ "\"If this is an urgent request, please let us know\"" and comment ~ "Urgent"

Please, let me know if it works for you.

Pia Donato
January 16, 2019

I tried that before but the problem with that is it still returns results with the default phrase (i.e. "If this is an urgent request, please let us know"). 

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 16, 2019

Hello Pia,

That's strange. For me, the query above has not returned the issues with the default phrase. Can you give us some practical examples of the issues it has returned?

If possible, send us a screenshot of an issue that was wrongly returned when using the query I sent. P.S: ensure that you have configured the \ before the internal to avoid it as a special character, just like below:

comment !~ "\"If this is an urgent request, please let us know\"" and comment ~ "Urgent"

We will be waiting for your answer.

Pia Donato
January 16, 2019

Hi Petterson,

Here's the  JQL used (note that I just filtered it further to a specific project and priority):

JQL.JPG

 

When I check that ticket, it only shows the default response with the word "urgent". There are no other comments where the same keyword repeats.

Comment.JPG

Hope this clarifies it and I really appreciate the response here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events