Missing Comments in Jira Software

Lukas Payer November 6, 2017

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 

3 answers

0 votes
Kaja Bryl June 23, 2020

@Josh Carolan I actually had similar problem (no restrictions to the comment). I found it in "Activity" Tab in the history of the issue. The comment was quite long so when I clicked on Read more>>, the issue was reloaded, the URL has changed and comment appeared in the Comments section.

Normal url: xxx/browse/DGN-22623

Changed url: xxx/browse/DGN-22623?focusedCommentId=270878&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-270878

Is there a possibility that a comment might be too long to appear?

0 votes
Bradley Duck
Contributor
January 29, 2019

I have only recently started using Jira, but I have noticed that if a comment is made on an issue from the Android app then it would not show in the web client, it is only visible on the Android app, whereas comments, or "updates" as it is labeled on the Web client, made on the web client do show on both the app and the web.

Josh Carolan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2019

Hi Bradley - I am from the Jira Android team.

I just stumbled across this comment by chance, this should not be happening - do you still see this happening/ are you able to reproduce it consistently? 

Bradley Duck
Contributor
May 22, 2019

Yes I have just tried and I am able to replicate. specifically the issue is on Jira Bugs where if I make a "Comment" from the app then neither I, nor anyone else, is able to see the "Comment" from the web client, however it is visible from the App. I have noticed that on Jira Bugs the heading of the "Comments" section is actually "Updates" so I'm thinking that may be the issue - that "Comments" made on the app are not marked as an "Update" and therefor don't show under "updates" in the web client. problem is that as far as I can tell there is no way to select to view "Comments" on the web client. Again this is specifically happening on Jira Bugs, The normal tickets on the sprint management side do show the heading "Comments" and all comments made from the App are visible on the web client and the app.

Josh Carolan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 22, 2019

Interesting - I am not sure what the "Updates" section that you're referring to is, could you share a screenshot? 

Bradley Duck
Contributor
May 22, 2019

Jira comments issue.pngThat is the issue that I made a comment on from the Android App

Josh Carolan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 27, 2019

Ah right, I see you're on the Jira Ops early access program which has ended. Comments from the Jira Android app will not show up in a Jira Ops issue,  however since the early access program has ended, we are migrating the functionality of Jira Ops over to OpsGenie and you will soon not be able to use Jira Ops. You can read more here: https://community.atlassian.com/t5/Jira-Ops-discussions/Concluding-the-Jira-Ops-early-access-program/td-p/1048857

In the meantime if you want to make comments from mobile on Jira Ops issues, you will have to use the mobile web version. Comments for Jira Software, Jira Core or Jira Service Desk issues all work from our apps. Thanks for reporting this I hope that helps.

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 2017

Hello,

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

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 2017

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")

Lukas Payer November 6, 2017

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 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

Lukas Payer November 7, 2017

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 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.

Lukas Payer November 7, 2017

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

louisdj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 5, 2017

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

Lukas Payer December 5, 2017

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