Missing Comments in Jira Software

Hi all,

 

We are missing some comments and i think i found them in cache\indexes\comments.

 

Do anyone know how to import them into Jira?

I already tried to Re-Index Jira, but this didn't work.

 

Best Regards,

Lukas 

1 answer

0 vote
Alexey Matveev Community Champion Nov 06, 2017

Hello,

Maybe you are not missing them. Maybe they were secured to a group or role to which you do not belong.

Exactly my thought too.

Comments don't "go missing" unless bad things happen.  It's far more likely that you can't see them in the UI and there's nothing to "import".  (And no, "I am an admin" is irrelevant when it comes to it, admin means admin, not "I can arbitrarily see stuff that I might not want to as a user")

Hi,

 

I pretty sure i'm missing them.

I received a notification mail which contains the comment.

When i open the link and i got forwarded to the issue, the  comment is not displayed.

 

Best Regards

Alexey Matveev Community Champion Nov 06, 2017

In scriptrunner console execute

import com.atlassian.jira.component.ComponentAccessor

def issue = ComponentAccessor.getIssueManager().getIssueByCurrentKey("issuekey")

ComponentAccessor.commentManager.getComments(issue).each{ it -> log.error(it.getBody()) }

And see if your comment is there

Hi,

 

Everytime I got this Error 

2017-11-07 10:58:45,911 WARN [common.UserScriptEndpoint]: Script console script failed: 
java.lang.NullPointerException
at com.atlassian.jira.issue.managers.DefaultIssueManager.getEntitiesByIssueObject(DefaultIssueManager.java:410)
at com.atlassian.jira.issue.managers.RequestCachingIssueManager.getEntitiesByIssueObject(RequestCachingIssueManager.java:155)
at com.atlassian.jira.issue.comments.CommentSearchManager.getComments(CommentSearchManager.java:106)
at com.atlassian.jira.issue.comments.DefaultCommentManager.getComments(DefaultCommentManager.java:174)
at com.atlassian.jira.issue.comments.CommentManager$getComments.call(Unknown Source)
at Script1.run(Script1.groovy:3)

 

Best Regards

Alexey Matveev Community Champion Nov 07, 2017

In the script above change issuekey to the key of the issue for which a comment is missing. When you execute the script you will see the comment. If you see it, then you just do not have permissions to view the comment. The script above will show you all comments without paying attentions to permissions.

Hi all,

 

At first, thanks for the fast response.

I've got the same comments as in the ticket, but the missing one is not listed.

Any other suggestions?

 

Best Regards

Could it be possible the comment was posted, you received the mail, and after that the owner edited the comment and changed the visibility?

Hi,

That was my first thougt too, but i checked it and the comment writer changed nothing.

Best Regards

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 21, 2018 in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

1,053 views 8 18
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you