Skip to content

Comments

Manage Confluence page comments - footer comments, inline comments, replies, and resolution.

  • Authenticated profile (atlcli auth login)
  • Space permission: View to list comments, Edit to add/modify comments

Confluence supports two types of comments:

  • Footer comments - Appear at the bottom of the page
  • Inline comments - Attached to specific text selections

atlcli fully supports both types with CRUD operations.

Terminal window
atlcli wiki page comments list --id 12345

Options:

FlagDescription
--idPage ID (required)
--jsonJSON output
Terminal window
# Using positional argument
atlcli wiki page comments add --id 12345 "Great documentation!"
# From a file
atlcli wiki page comments add --id 12345 --file ./comment.txt

Options:

FlagDescription
--idPage ID (required)
--fileRead comment text from file
Terminal window
atlcli wiki page comments reply --id 12345 --parent 67890 "Thanks for the feedback!"

Options:

FlagDescription
--idPage ID
--parentParent comment ID to reply to
--fileRead reply text from file

Inline comments are attached to specific text in the page content.

Terminal window
atlcli wiki page comments list --id 12345 --inline
Terminal window
# Match text in page and attach comment
atlcli wiki page comments add-inline --id 12345 --selection "text to match" "Consider rewording this"
# If text appears multiple times, use --match-index
atlcli wiki page comments add-inline --id 12345 --selection "common phrase" --match-index 2 "Comment on third occurrence"

Options:

FlagDescription
--idPage ID
--selectionText string to match in page content
--match-indexWhich occurrence to match (0-indexed, default: 0)
--fileRead comment text from file

Mark comments as resolved (for review workflows):

Terminal window
# Resolve a footer comment
atlcli wiki page comments resolve --comment 67890
# Resolve an inline comment (specify type)
atlcli wiki page comments resolve --comment 67890 --type inline
# Reopen a resolved comment
atlcli wiki page comments reopen --comment 67890

Options:

FlagDescription
--commentComment ID
--typeComment type: footer (default), inline
Terminal window
# Delete footer comment
atlcli wiki page comments delete --comment 67890 --confirm
# Delete inline comment
atlcli wiki page comments delete --comment 67890 --type inline --confirm

Options:

FlagDescription
--commentComment ID
--typeComment type: footer (default), inline
--confirmSkip confirmation prompt

During docs pull and docs push:

  • Comments are not synced by default (they’re metadata, not content)
  • Use --include-comments to export comments alongside pages
  • atlcli preserves comment IDs in a .comments.json sidecar file when exported
Terminal window
atlcli wiki docs pull ./docs --include-comments

Creates files like:

docs/
├── my-page.md
└── my-page.comments.json
{
"pageId": "12345",
"comments": [
{
"id": "67890",
"type": "footer",
"body": "Great documentation!",
"author": "alice@company.com",
"created": "2025-01-14T10:00:00Z",
"resolved": false,
"replies": []
}
]
}

All comment commands support --json for scripting:

Terminal window
atlcli wiki page comments list --id 12345 --json
{
"schemaVersion": "1",
"comments": [
{
"id": "67890",
"type": "footer",
"body": "Great documentation!",
"author": {
"displayName": "Alice",
"email": "alice@company.com"
},
"created": "2025-01-14T10:00:00Z",
"resolved": false,
"replies": []
}
],
"total": 1
}
Terminal window
# List unresolved comments
atlcli wiki page comments list --id 12345 --json | jq '.comments[] | select(.resolved == false)'
# Resolve after addressing
atlcli wiki page comments resolve --comment 67890
Terminal window
# Export all comments from a space
for page in $(atlcli wiki page list --space TEAM --json | jq -r '.pages[].id'); do
atlcli wiki page comments list --id $page --json > "comments-$page.json"
done
Terminal window
# Check each page for unresolved comments
for page in $(atlcli wiki page list --space TEAM --json | jq -r '.pages[].id'); do
COUNT=$(atlcli wiki page comments list --id $page --json | jq '[.comments[] | select(.resolved == false)] | length')
if [ "$COUNT" -gt 0 ]; then
echo "Page $page has $COUNT unresolved comments"
fi
done
  • Pages - Page operations
  • Sync - Export comments with --include-comments
Jira and Confluence are trademarks of Atlassian Corporation Plc. atlcli is not affiliated with, endorsed by, or sponsored by Atlassian.