Forums

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

JQL Help: How to find summary that starts with certain characters?

Eva
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.
January 25, 2012

For one of the client filter, we need to find all the summary that start with "URGENT>". There are 2 problems, one is that if I do contains, it find everything that has the word "URGENT" and 2) I cant seem to figure out how to force the > character.

ANyone has any idea/

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
tier-0 grump
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 26, 2012

I'm afraid I haven't got very good news for you here...

We use Lucene indexes to store the values for searching. When Lucene indexes a field it uses an analyzer to inspect the text and then decides how to tokenise the values. There are a wide range of analyzers and each field uses a different analyzer depending on its configuration. Summary is seen as a text field, so when the Lucene analyzer tokenises URGENT> , it will store this in the index as URGENT, as it decides the > is not important - so it's not stored, so you can't search for it.

If it was stored in a custom field that used a different analyzer then to search for it you would escape the > using unicode so \u003E, but as I say for summary you are out of luck.

Eva
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.
January 28, 2012

quick question- what if we change the source code? Is it built in to the core taht we cant fix it in any way?

0 votes
AndreyevM
Contributor
January 27, 2012

Its a huge and ugly work-around but I guess you can automatically store, and keep up to date, a summary's value on custom field with Copy Value From Other Field Post-Function from JIRA Suite Utilities Plugin.

You just have to avoid users directly edit summary field and make they search in this new custom field...

Eva
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.
January 28, 2012

The moment I saw James's response, I thought of that, but as you have point out, it is not only ugly, it just building up the maintenance for our admins, which is a lot already.

I am guessing that Atlassian wont be fixing it any time soon, so I just have to tell my team to deal with it...

AndreyevM
Contributor
January 29, 2012

And what about create a JIRA Database Values Plugin's field wich maps Summary field?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events