I've a dashboard that includes a filter that uses a time period to produce results. The filter aims to list issues that have moved to a Done status in the last calendar month. It uses a statusCategoryChangedDate range, for example:
statusCategoryChangedDate > "2023/11/01" AND statusCategoryChangedDate < "2023/11/30"
The issue is that I have to amend the date range each month. Is there a way to dynamically enter the date range, so I don't have to manually change the dates all the time? For example, LastMonth.
Your JQL could use the startOfMonth() and endOfMonth() functions, with the modifiers to subtract one month:
project = myProjectName
AND statusCategory = Done
AND statusCategoryChangedDate >= startOfMonth(-1)
AND statusCategoryChangedDate <= endOfMonth(-1)
Please look here to learn more about those functions:
https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#startOfMonth--
Please note: This will find the issues which are currently Done and moved to that condition last month. It will not find issues which moved to Done and which are no longer Done.
To find those, please try using the CHANGED operator with the DURING modifier:
https://support.atlassian.com/jira-software-cloud/docs/jql-operators/#CHANGED
Kind regards,
Bill
Many thanks @Bill Sheboy That is exactly what I was after.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it would be great if there were also "startOfLastMonth()" and EndOfLastMonth()" options too
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.