The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced query to fetch the defects based on the comments field

Tushar Kulkarni
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!
September 9, 2020

Use case: Fetch the task details(defects) where Assignee have not added the comment in last 48 hours.

There could be a scenario where Assignee added first comment to the defect but then forgot to add the comments for next 3-4 consecutive days then our query should be able to fetch the details of such tasks.

Query should not consider any other fields apart from comments for search criteria.

Any quick help would be appreciated.

version 8.5.6

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Muhammad Ramzan_Atlassian Certified Master_
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 Champions.
September 9, 2020

You can achieve this by using some third party plugins. I am using JQL Search Extensions for Jira & reports and can give you some examples.

 

CommentedAfter can be used to find issues with comments added after particular date. Expected date format is yyyy-MM-dd (year dash month dash day of the month) or dd-MM-YYYY

issue in commentedAfter("2018-05-26")

 

CommentedBetween can be used to find issues with comments added between particular dates. Expected date format is yyyy-MM-dd (year dash month dash day of the month) or dd-MM-YYYY

 issue in commentedBetween("2018-05-26", "2018-07-01")

 

Reference:

https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/30497099/JQL+Reference+Server#JQLReference(Server)-CommentedAfter