I don't see any obvious ways to quickly see if a page has inline comments and I wonder if an icon can be shown if it does have inline comments?
When the icon is clicked it will naviagate to the first comment.
Hi Vijay,
My name is Rafael Franco and I'm the Tech Lead for the Product Team here at Adaptavist. Thanks for using ScriptRunner for Confluence.
Definitely ScriptRunner for Confluence can help you with that. I would suggest you use a Script Fragment and in that fragment you can fetch the inline comments by:
final List<Comment> comments = commentManager.getPageComments(pageId, new Date(0)); final List<Comment> inlineComments = new ArrayList<Comment>(); for (final Comment comment : comments) { if (comment.isInlineComment()) { inlineComments.add(comment); } /* More over, you can check the status of an inline comment by doing something like this: comment.getStatus().isDangling() comment.getStatus().isOpen() comment.getStatus().isResolved() comment.getStatus().isReopened() */ }
Let me know if it helps.
Rafael
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.