We are using scriptrunner for jira cloud and I am wondering if there is a way to search for internal comments
Standard Jira JQL does not support searching for internal comments. Note that internal comments are identified by the sd.public.comment comment property where internal is set to true, or by the jsdPublic field being false on the comment object in the REST API.
With ScriptRunner you could add a listener to manage a label (or custom field).
From that point forward you can search for those issues using standard JQL. You can even backfill existing issues by running a one-time script via the Script Console.
No there is no such JQL option in scriptrunner enhanced search on Jira Cloud, This option is in the version for Data Center.
You could raise this at Adaptavist, to see of this is function they are working on?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Jeffrey Bistrong
When you say search for comments, what output are you trying to get?
Searches typically return a list of issues that match the criteria. Are you trying to get a list of the issues that have internal comments?
Are you trying to get the content of all internal comments?
And what is your definition of an internal comment? Are you referring to the feature in Service projects where a comment can be public (Reply to customer) vs. private (Add internal note)?
What do you need to do with the results if you were able to get them?
While it appears that there was a feature in Scriptrunner for Jira DC that made this possible, that feature does not appear to be available in Enhanced Search for Jira Cloud, but I'm still searching to see if I missed something.
If you can provide answers to the questions I posed above, we might be able to recommend an alternative.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Trudy, I am having similar problem as Jeffrey. Please see my responses below, any help would be truly appreciated.
Are you trying to get a list of the issues that have internal comments?
SW: Yes
Are you trying to get the content of all internal comments?
SW: No, just list of issues.
And what is your definition of an internal comment? Are you referring to the feature in Service projects where a comment can be public (Reply to customer) vs. private (Add internal note)?
SW: Private (Add internal note)
What do you need to do with the results if you were able to get them?
SW: I currently manage a small team and frequently add feedback to issues as internal comments. However, I am finding it difficult to locate these specific issues at the end of the month when I need to review them for performance scoring.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Satish Washal
Welcome to the Atlassian community.
As noted in the responses already there is no a native method nor a method from Scriptrunner Enhanced Search to get a list of issues based on whether or not they have internal or external comments.
One possible native work around is to create an automation rule triggered by Comment Added. In that rule you can check if the comment is internal or external. Based on the result you can send yourself an email with relevant information about the issue and comment. At the end of the month review the emails for your performance scoring.
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.