Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,944
Community Members
 
Community Events
165
Community Groups

issueFieldExactMatch with special characters

Hi *,
I'm using `issueFieldExactMatch` function to really get an issue with exact name.
This works quite well until I have some special characters in searched name.



issueFunction in issueFieldExactMatch('project=RDXRAYEV and type=test','summary','test_basic_feature[check_temperature-WithSimulators]')

This throws an error: 

Reg ex compilation failure in issueFieldExactMatch function: Illegal character range near index 37 test_basic_feature[check_temperature-WithSimulators] ^

what points to the "W" string. But after more attempts it looks like the dash is the problem. I tried to escape it with double backslash, what helped me to get rid of the exception, but there were no results, even I know the issue with such name is present in the project.

Similar issues I have e.g with names like test_my_script[] . As soon as there is some text between the square brackets everything works properly.

 

Is there any way how to look also for text names with special characters?

2 answers

Thanks for confirmation!

yes, I tried also lowercase `w`, but doesn't work always. E.g.

issueFunction in issueFieldExactMatch('project=RDXRAYEV and type=test','summary','test_basic_feature[change_randomly-withSimulators]')

gives an error:

Reg ex compilation failure in issueFieldExactMatch function: Illegal character range near index 35 test_basic_feature[change_randomly-withSimulators] ^

Seems like a bug perhaps.

 

With regex match this works

issueFunction in issueFieldMatch('key = RUFF-10','summary','test_basic_feature\\[check_temperature-WithSimulators\\]')

 

But I can't seem to get any escapes in the issueFieldExactMatch either, it seems like a bug imo.

 

Lower case -w works, but no uppercase letters do.

issueFunction in issueFieldExactMatch('key = RUFF-10','summary','test_basic_feature[check_temperature-withSimulators]')

 

Perhaps someone from Adaptavist can check this.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

310 views 0 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you