Skip to main content
Example scripts
arrow icon
To homepage
New
Confluence
Cloud icon
Cloud

Add a Comment on a Page

Created 13 day(s) ago, Updated 12 day(s) ago
App in script
ScriptRunner For Confluence
ScriptRunner For Confluence
by Adaptavist
Compatibility
compatibility bullet
Confluence
Language |
groovy
def pageId = 123 // 'replace with your page ID'
def comment = 'This is an automated comment by ScriptRunner!'

Pages.getById(pageId).addComment(comment)
Having an issue with this script?
Report it here