Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get all jira comment Since a specific date using groovy Edited


I need to collect all comment's on the Issue since a date(for example, a week ago) on the script field thanks to Adaptivist Script Runner. I find this method(getCommentsForUserSince) on CommentManager Interface, but I can't find any tutorial on how to use it, and I don't know is it suitable for this case or not. Could you help me by editing my code to find the solution?


import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.comments.Comment
import com.atlassian.jira.issue.comments.CommentManager
import com.atlassian.jira.component.ComponentAccessor

def commentManager = ComponentAccessor.getCommentManager()

def comment = commentManager.getComments(issue)
def results = "</br>"
if(comment != null){
for (item in comment) {
results = results + "</br>" + item.authorFullName + "</br>" + item.body + "</br>"
return results


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

5 mobile apps for Jira Cloud to boost productivity

  It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...

216 views 2 5
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