You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
It is easy to create a filter when using a fixed date for the duration operator:
project = "Project A" AND (assignee was in (user1, user2, user3) during (2023-09-21, 2023-09-27))
here, the start date belongs to CW38, while the end date is CW39.
This filter works fine but for every new week, we will need to create a new filter with hardcoded dates. How to implement a universal filter that will always give actual information from Thursday to Wednesday?
Example 1: if the filter is executed on Tuesday it shows all issues from Thursday previous week till Wednesday this week.
Example 2: if the filter is executed on Friday it shows all issues from Thursday this week till Wednesday next week.
Can you try this instead and check if it solve your problem
DURING (startOfWeek(),startOfWeek(1))
this should be a dynamic filter to get the data during the current week
Thanks
Mohamed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Andrii Karazhov the query I provided will get data from Monday--> Friday
you can get from Thursday and Wednesday using DURING (startOfWeek(3d),endOfWeek(5d)) and you can play with the number of days to get the right data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mohamed Adel, it is still not clear, functions startOfWeek and endOfWeek makes a calculation based on the current week, so the filter will give different results if executed on Friday or Monday.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Andrii Karazhov
startOfWeek(3d) = Thursday
endOfWeek(5d) = Wednesday
This will give you the desired data please try it and test the result
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mohamed Adelit doesn't work as expected. Filter with hardcoded dates returns 23 items, while usage of these functions return 1 result
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try that one please startOfWeek(-4d), startOfWeek(3d)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mohamed Adelwith this change the filter covers Example 1 but not Example 2. Is there a way to cover both in a single filter ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.