bradgonesurfing
bradgonesurfing

Reputation: 32172

How to write a query in (Jira Query Languange) to restrict issues by week number?

I have the query written in Jira Query Language

assignee was brad and status was WIP DURING ("2019/1/20", "2019/1/26")

which works but I'd rather write

assignee was brad and status was WIP DURING week("2019", 4)

which is easier to formulate. Is this possible in JQL?

Upvotes: 3

Views: 1162

Answers (1)

gehbiszumeis
gehbiszumeis

Reputation: 3711

Unfortunately JQL doesn't provide a function returning the time period of a given calendar week.

To not always having to look up the begin/end dates of each calendar week one could think of a workaround using the startOfYear() function. Your example would be in that case:

assignee was brad and status was WIP DURING (startOfYear("4w"), startOfYear("5w"))

Upvotes: 1

Related Questions