Static issue list from normal jira filter

I was wondering; I have a set of issue results from a filter. 2 days from now the filter will return different results. Is there a way to take the current results and autocreate a filter link that will bring up those same issues no matter when the filter is clicked on? So essentially turning issuecreated >= -4h into something like "issuekey is in (XX-5, xx-6, xx-7, xx-8)"?

2 answers

1 accepted

1 vote
Accepted answer

I don't know of a way to achieve this. Because JIRA filters could be max. 2000 characters long (since 6.x) it could be problematic, even if one have a method or script for such a feature.

One way I could think of is to create a custom field "static filter", filter the issues and fill the static filter custom field with a unique value through a bulk edit operation. The static filter field could be used later to reproduce the filter result.

I guess I'm not describing this well. Here's what I did as a workaround:

  1. I made my query, then I exported the results as an excel file.
  2. I took the issuekey column only, and transposed it to a row.
  3. I then combined the cells while adding a comma.
  4. Now I can use that text in a query that will stay "static."

I know there's probably a much more efficient way of even hacking this, but is there a way in JIRA to really do this conveniently?

Yes, I think it's pretty clear for me what you want. I see no changes to my answer above.

If your keys are at an average of 7 characters long and you use "key in ()" you could get at maximum (2000 - 9 (static text))/(7+1 (Komma)) = 248 issues in this static filter. And I don't know a way to get to this query in a conventional way.

But you could try my suggestion to achieve this without any issue limit.

If your query uses only Assignee, Fix Version, Priority,  Reporter, Resolution and Status, then you can use the WAS operator to create a query that will always report the same issues, e.g.

  status was "In Progress" ON '2015-10-12 11:00'

Sometimes I'll also risk adding in typically static fields, like type or project

  project = INT AND type = story AND status was "In Progress" ON '2015-10-12 11:00'

...and that gets a query that can come back with different issues but is unlikely to.

Otherwise, I have found no way more efficient than your spreadsheet-based hack.   Occasionally I turn off all the columns except Key and then copy-paste that list into a text editor and replace newlines with ', ' instead of using excel, but that's pretty much just as convoluted.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

839 views 3 9
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