JQL Since Last Date

Hi,

I am trying to make a JQL query that will show issues that I have worked on since the last of our status meetings. We have them every Monday and Thursday.

I am not sure how to epxress this in JQL though...the during() clause is where I'm stuck. Is there a way to do this? The functionality I want is below, but ideally, I don't want to hardcode the dates.

"(status CHANGED DURING("2013/1/28 11:00", "2013/1/31 10:00")) AND assignee=currentUser() ORDER BY created DESC, key DESC, summary DESC"

Any help would be appreciated. Thanks!

1 answer

1 vote

You can use something like this instead of hard coded dates.

status CHANGED after startOfWeek("+1d") before startOfWeek("+4d") AND assignee=currentUser() ORDER BY created DESC, key DESC, summary DESC

That would be correct, if we only had weekly meetings. I'm not sure how to get the range to cycle between the two.

Basically, if it's past Monday, I would want CHANGED DURING(startOfWeek(), now()), but if its past Thursday, I would want CHANGED DURING (startOfWeek("+3d"), now()).

Create 2 filters. One after Monday before Thursday. Another after Thursday before end of week. Wouldn't that work?

I wanted to put this on our JIRA Dashboard -- that would mean I would have to change it twice a week, which is not much better than just setting the dates manually.

This basically requires a comparison operator, but it doesn't look like JQL allows for conditionals.

Pretty much. What I meant though is to create 2 gadgets and keep both of them in the dashboard without changing. One on the left and another on the right ;)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

551 views 6 12
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