Regex support in JIRA-CLI

What I really want is either regex support in JQL or the ability to filter the results from a query with a regex. However, I am fairly sure that doesn't exist and is unlikely to appear any time soon.

I am starting with a question to verify there isn't an acceptable solution before raising an enhancement request (I couldn't find one).

It seems more plausible at least in the short term that a partial solution could be made available through the JIRA CLI. As far as I can see, it is possible to use a query or a saved search (filter) but nothing more. I would find it useful if there were a way to filter the query results by comparing information in each issue against a regex. Ideally, I could specify searching the summary, description and/or comments (some might want fields but that's not a current requirement for me). This could be applied whenever a search is used.

As well as using this directly in the CLI, it would be possible to add a command to generate a new search that would give the same results by looking for the issue ids. That could be pasted into the JIRA web interface. That might be considered to be too hacky.

I realise this would perform poorly on large query result sets.


  • Does anything like this exist (as an external program or in OnDemand, not as a plugin).
  • Are there any existing requests in this area.

1 answer

1 accepted

This widget could not be displayed.
  1. It not difficult to write a little groovy (or other) script that filters the CSV returned from JCLI getIssueList that could do a regex match on one or more fields or any other custom logic you have. If groovy, then the helper library shipping with GINT - Groovy Integration Test Framework has a lot of csv related capabilities.
  2. Certainly fair enough to create an improvement request on the JCLI to do additional filtering automatically without doing a script. You are right that this would be after the fact filtering and would not be as good a performance as native JQL support. It would be relatively easy to do regex matches on data, but what part of the data - just the summary, all the data? How would you like that specified? Create an issue with the details.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 7 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

13 views 0 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you