either create a custom filter to address it, or override the comment controller to also update the taskmodel modification date when comments are added or modified.
the first would be the simplest. might be as simple as just adding a date filter to comments and then using both filters, i.e.
status:open modified:<"-5 days" comment_modified:<"-5 days"
with your custom filter looking something like:
class CommentModificationDateFilter extends BaseDateFilter implements FilterInterface
* Get search attribute
public function getAttributes()
* Apply filter
public function apply()
if you wanted to combine, something like this in the apply: (although I have a feeling it’s not this simple)