Native JQL supports comment with text as parameter. For your requirement you need to use third app calledJQL Search Extensions for jiraand report which provides additional functions like attachedBefore , attachedAfter etc.
issue in attachedBefore("2018-05-26")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.