Writing a JQL Filter for Board, where each column/status has a different date range

I am hoping to edit the filter for one of our boards that allows me to show everything in the Backlog column/status, but only what has been changed in the last weeks in the In Progress column/status.  When I've tried different queries its just showing those 'after -2w' status across the board - not by individual status.  Is there a way to do this?

I did try to get a new filter that shows where the status changed after -2w and then within my JQL I tried to ask status = "In Progress" and filter = "Status_Changed_Last2Weeks" but that affected the results of the Backlog status too.  Struggling to find a way to separate those two status' within the JQL.

Any help appreciated.

Thanks

 

JIRA v6.3.9

1 answer

1 accepted

1 votes
Sam Hall Community Champion Feb 06, 2017

Hi Madelyn,

It sounds like you want something like this. It will show everything that is in Backlog, as well as the In Progress issues that were updated in the last two weeks:

(status = "Backlog") OR (status = "In Progress" AND updated >= -2w)

Or maybe this, which shows everything in Backlog, as well as the In Progress issues that were changed to In Progress in the last two weeks:

(status = "Backlog") OR (status = "In Progress" AND status changed to "In Progress" AFTER "-2w")

I've only tested briefly, so apologies for any errors. Try them and see if one does what you need. Hopefully they'll give you a starting point and you can tweak to perfect.

Sam

Sam Hall Community Champion Feb 06, 2017

I should have mentioned: it's the OR keyword that lets you build filters with different criteria per status.

If you want to include more statuses with other conditions, you can add more OR statements. For example:

(status = "Backlog") OR (status = "In Progress" AND updated >= -2w) OR (status = "Done" AND issuetype = Bug)

Hi Sam

Many thanks for taking the time, this works perfectly.  I'm learning something new about JQL everyday!

Cheers

Madelyn

Brilliant, thanks so much!  Works perfectly :O)

Sam Hall Community Champion Feb 06, 2017

Great. Which one did you use in the end?

Also, please consider marking this answer as accepted and/or upvoting if it solved your problem.

Sam

This one did the trick:

 

(status = "Backlog") OR (status = "In Progress" AND updated >= -2w)


Thanks again Sam!

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

432 views 1 14
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