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

  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 Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

130 views 3 5
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot