JQL to return tickets raised on the weekend ( saturday / Sunday)

Masroor karamat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2019

I'm trying to formulate a query that can search a date range and return only the tickets created on weekends.

2 answers

1 vote
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2019

Here's a clunky solution that you may find viable. Once initially created, it'll be pretty quick to maintain and run when needed.

Use Excel to create several OR'd conditions covering several weekends.

See my example screenshot.

I placed the first Saturday of 2019 in A1 and the first Monday of 2019 in B1.

C1 contains the formula:

=CONCATENATE("(created >= ",TEXT(A1,"yyyy-mm-dd")," and created < ",TEXT(B1,"yyyy-mm-dd"),") OR ")

A2 contains the formula =A1+7 and B2 contains the formula =B1+7 and C2 contains a copy of C1.

I then highlighted the 3 cells on Row 2 and clicked the square at the bottom right and dragged downward to copy, making several weekends.

Finally, I copied and pasted column C into a JQL field, removing the final "OR"

jira.jpg

0 votes
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 28, 2019

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events