I realized there was a bug that caused it not to work on Cloud (and also it was set by default to filter by username), so I fixed the issue, here is the updated code:
var getUnresolvedInlineComments = function(space, username, start) { start = start || 0; var spacePart = ""; if (space) { spacePart = "space%3D" + space + "%20and%20" } jQuery.ajax({ url: contextPath + "/rest/api/content/search?cql=" + spacePart + "type%3Dcomment&expand=extensions.resolution%2Ccontainer.history&start=" + start, success: function(response) { jQuery(response.results).each(function() { if (this.hasOwnProperty("extensions") && this.extensions.location === "inline" && this.extensions.resolution.status === "open" && (typeof(username)==="undefined" || this.container.history.createdBy.username === username)) { console.log(AJS.params.baseUrl + this._links.webui); } }); if ( !(response.size < response.limit) ) { getUnresolvedInlineComments(space, username, start + 25); } else { console.log("Done!"); } } }); }
This is a bad workaround for the time being, so I think I will take some time and turn this into a real addon, which should make things a lot easier.
Hi Stephen,
This solution is only applicable to self-hosted versions of Confluence, right? I can't use scripting on the Cloud version. Unless I'm misinterpreting your suggestion in https://answers.atlassian.com/questions/30540804
Regards,
Lee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lee, it works just fine on the cloud version too. It is simply a piece of Javascript that you paste into your browser console, so it's your browser doing the scripting, not a Confluence page :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lee,
for one way to get all unresolved inline comments, you can take a look at my answer from another question:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.