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

This widget could not be displayed.
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
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,467 views 10 12
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