Forums

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

Finding a substring within one word in an issue summary

Deleted user February 7, 2018

In our project, we have issue with summaries of the following structure:

ABC-DEF-XY001-ZZ01 Issue summary

I'm trying to search for the substring "XY001" but I cannot make it work.

As I cannot use "*" at the beginning of a word, I was trying to go with

summary ~ "ABC*XY001*"

But this is not working. I get no result.

Even

summary ~ "ABC-DEF-XY001*"

is not working

As I don't know the last part of the word, the "ZZ01", upfront, I cannot search for the entire word "ABC-DEF-XY001-ZZ01".

 

When I was trying around a bit with the search functionality, I found out that

summary ~ "ABC-*"

returns an empty result, whereas

summary ~"ABC*"

returns my issue.

Is there an issue with the "-"? Do I have to escape this somehow?

I was reading the search syntax for text fields, but could not find anything.

Can you help me find the "XY001"?

 

2 answers

1 accepted

1 vote
Answer accepted
Joshua Yamdogo @ Adaptavist
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.
February 12, 2018

Kyle is right that there is a bug with this. Though if you are looking for a new add-on, I think ScriptRunner could accomplish this.

issueFunction in issueFieldMatch("project = JRA", "summary", "ABC\\-DEF\\-XY001\\-*")

 Screen Shot 2018-02-12 at 8.12.27 AM.png

Deleted user February 12, 2018

We are in the lucky position, that we have ScriptRunner installed already, so I have just tried it and it is working fine. Thanks for your help.

1 vote
Kyle Moseley
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.
February 8, 2018

Try escaping the dash using "\\-"

Deleted user February 8, 2018

Unfortunately it is not helping.

I tryied

summary ~ "ABC\\-DEF*"

but I still receive an empty result. :-(

Kyle Moseley
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.
February 9, 2018

I have bad news: https://jira.atlassian.com/browse/JRASERVER-33306

Looks like it just won't work. It is a shame.

Deleted user February 11, 2018

This is bad news indeed. Thank you anyways for your support.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events