JQL to get comments posted within a date range (worklogDate but with comments)?

Jools June 17, 2022

Hi all,

I'm having fun with Forge and I can retrieve issues that current user has added a worklog to within a given date range.

/rest/api/3/search?fields=summary,worklog&jql=project IN("MY-PROJECT","PROJECT-TWO") AND worklogDate >= startDate AND worklogDate <= endDate

I'd like to do the same with comment dates but all I can find in advanced search reference - JQL fields  is the ability to search text in comments.

Am I out of luck for now since there's no commentDate field to search on?

Thanks!

1 answer

2 votes
mauricio.groth
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 17, 2022

Hi @Jools

As you're on Jira Cloud, the correct answer is to get an app that provides JQL extensions you're looking for.


With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. If your use case is more dynamic than that, look beyond standard Jira.

Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service JQL Search Extensions

 

You can use this query to filter your issues that were commented between  2022/03/13 and 2022/06/17

 

commentedOnDate >= "2022/03/13" AND commentedOnDate < "2022/06/17" 

 

Check out the documentation for more examples.
I hope this helps!
Maurício

Jools June 21, 2022

I see, thanks Mauricio!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events