Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,462,801
Community Members
 
Community Events
176
Community Groups

Jira Board Swimlanes with JQL and Dates

I am trying to create a swimlane on a board based on the times in the status.  For instance:  status = new AND createdDate > -7d OR status = "In Progress" AND updated > -7d OR status = "Needs Assessment" AND createdDate > -7d

 

What I am trying to do is capture all new issues created more than 7 days ago OR issues in progress or in needs assessment for longer than 7 days.

When I do this, this returns too many results, not all of which are greater than 7 days.  If I fip the operator to < or the -7 to 7, it returns nothing.  There are definitely more than 0 tickets that meet this category.

 

1) Maybe I'm assuming too much to think you can capture a rolling time period.  If not, do I have other options?

2) Even if 1 is true, shouldn't it update every time "I run the query"--is there a way I can force this manually.

3) Sigh.

 

1 answer

0 votes
Mark Segall Community Leader Jan 16, 2023

Hi @Seretha Curry - Try this for your query:

(created >= -7d) OR (status IN ("In Progress", "Needs Assessment") AND status Changed AFTER -7d)

Hey Mark, I appreciate your help.  Unfortunately, I'm still getting issues created today in the new column.  Also, I'm not getting any results in the other two statuses even though there are lots of tickets that should quality.

Mark Segall Community Leader Jan 18, 2023

My bad I had the query reversed to show everything from the last 7 days instead of older than 7 days 🤦‍♂️... Change the query to this:

(created < -7d) OR (status IN ("In Progress", "Needs Assessment") AND status Changed BEFORE -7d)
Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events