Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,161
Community Members
 
Community Events
165
Community Groups

JQL search for recent comments containing string

We need to get all tickets when user is mentioned recently (e.g. last X days). So basically restrict "comment ~ currentUser()" to some period of time comments were made.

Our instance is Jira Server with Script Runner installed.

I checked "issueFunction in commented" function in Script Runner, but it seems it doesn't allow search by comments text.

Thanks in advance for suggestions!

1 answer

1 accepted

0 votes
Answer accepted

@Pavel Antonenko 
project = XXX and comment ~ currentUser() and issueFunction in commented("after -1d")
That jql is searching for comments with the username and after -1 days.

I believe that's what you are searching.
You can modify the "-1d" for other parameters.

Just realized the jql will find issues commented today but not necessarily with a comment (From today) including the username.

Gotcha, thanks for sharing, Custom JQL functions can be the thing I'm looking for!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

159 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you