Skip to content

Align simulator presets with Confluence Notification API and document mismatches#1

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/compare-notification-api-implementation
Draft

Align simulator presets with Confluence Notification API and document mismatches#1
Copilot wants to merge 3 commits intomainfrom
copilot/compare-notification-api-implementation

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 29, 2026

The existing default commands diverged from the Confluence Notification REST API spec: wrong WebSocket channel, wrong HTTP path/payload, and missing Authorization header. This PR fixes the covered mismatches and documents all remaining gaps.

Fixes applied

  • utilities.py / default_commands.json
    • Subscribe: "channel": "events""channel": "notifications"
    • HTTP POST sampleCreate Notification: correct endpoint (/rest/notifications/latest/notification), required body fields (userKey, title, description, iconUrl, itemUrl, itemId), and Authorization: Basic … header
{
  "method": "POST",
  "path": "/rest/notifications/latest/notification",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Basic REPLACE_WITH_YOUR_CREDENTIALS"
  },
  "body": {
    "userKey": "demo-user-key",
    "title": "New IoT Event",
    "description": "IoT device triggered a notification",
    "iconUrl": "http://localhost:8000/icon.png",
    "itemUrl": "http://localhost:8000/events/123",
    "itemId": "iot-event-123"
  }
}

Documented mismatches (not yet covered by presets)

The five-slot UI panel cannot accommodate all endpoints without a layout change. README.md now includes a full comparison table and copy-paste JSON for:

Gap Endpoint
List notifications GET /rest/notifications/latest/notification
Unread count GET /rest/mywork/latest/status/notification/count
Delete DELETE /rest/notifications/latest/notification/{id}
Mark as read PUT /rest/notifications/latest/notification/{id}/read

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • developer.atlassian.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • docs.atlassian.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

Copilot AI changed the title [WIP] Compare Confluence notification API with current implementation Align simulator presets with Confluence Notification API and document mismatches Mar 29, 2026
Copilot AI requested a review from soloxio March 29, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants