Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner for Jira Cloud Enhanced Search: Search for Internal Comments

Jeffrey Bistrong
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 Champions.
April 21, 2026

We are using scriptrunner for jira cloud and I am wondering if there is a way to search for internal comments

3 answers

0 votes
Aron Gombas _Midori_
Community Champion
April 22, 2026

@Jeffrey Bistrong 

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

  1. Create a ScriptRunner listener that triggers on the "comment created" event.
  2. In the script, check whether the new comment is internal by inspecting the `jsdPublic` property.
  3. If it is internal, have the script add a label (or update a custom field) on the issue.

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.

0 votes
Marc -Devoteam-
Community Champion
April 22, 2026

Hi @Jeffrey Bistrong 

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?

0 votes
Trudy Claspill
Community Champion
April 21, 2026

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events