Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

Filter to get items updated during the week, where week starts on Thursday and end on Wednesday

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.

1 answer

0 votes
Mohamed Adel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 26, 2023

Hi @Andrii Karazhov 

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 

@Mohamed Adel, how does it specify Thursday and Wednesday days of week ?

Mohamed Adel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 26, 2023

@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 

@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.

Mohamed Adel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 26, 2023

@Andrii Karazhov  
startOfWeek(3d) = Thursday
endOfWeek(5d) = Wednesday 

This will give you the desired data please try it and test the result 

Thanks

@Mohamed Adelit doesn't work as expected. Filter with hardcoded dates returns 23 items, while usage of these functions return 1 result

Mohamed Adel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 26, 2023

Try that one please  startOfWeek(-4d), startOfWeek(3d)

@Mohamed Adelwith this change the filter covers Example 1 but not Example 2. Is there a way to cover both in a single filter ?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events