Skip to content

feat(methods): add entity.acknowledgeCommentAction method example - #432

Draft
zimeg wants to merge 1 commit into
zimeg-feat-entity-examples-present-commentsfrom
zimeg-feat-entity-examples-acknowledge-comment-action
Draft

zimeg wants to merge 1 commit into
zimeg-feat-entity-examples-present-commentsfrom
zimeg-feat-entity-examples-acknowledge-comment-action

Conversation

@zimeg

@zimeg zimeg commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds a method example for entity.acknowledgeCommentAction in methods/src/entity/entity-acknowledge-comment-action.js, and lists it in methods/README.md.

  • The payload is the successful post or edit example from bidirectional comments in Work Objects, the guide the reference page links.
  • The comment IDs are shortened to comment-unique-id-003 and comment-unique-id-001. The API caps a comment id at 25 characters and answers invalid_arguments for the guide's comment-unique-identifier-003.
  • The method takes no scopes, so the manifest requests none.

This is part 2 of 2 in the entity examples stack (batch B9 work object comments), in the order a live test runs them: present comments, then acknowledge an action on one. Each pull request builds on the one before it and merges on its own, bottom to top. The stack starts on main.

  1. feat(methods): add entity.presentComments method example #433 entity.presentComments
  2. feat(methods): add entity.acknowledgeCommentAction method example #432 entity.acknowledgeCommentAction 👈 this pull request

Dependency

This depends on slackapi/node-slack-sdk#2868, which adds entity.acknowledgeCommentAction to @slack/web-api. It hasn't been released yet, so npm run check fails until a release ships it and methods/package.json pins that version. The example type-checks and runs against a local build of that branch.

Testing

  1. cd methods/src/entity && slack install --environment local, then export SLACK_TOKEN=... with the app's bot token.
  2. slack run entity-acknowledge-comment-action.js and confirm the response. The example trigger_id returns invalid_trigger_id. Use one from a view_submission payload for a comment posted in a Work Object flexpane to see ok.

🤖 Generated with Claude Code

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg force-pushed the zimeg-feat-apps-managed-permissions-examples-set branch from d8c8115 to a3fe4c4 Compare November 18, 2026 06:22
@zimeg
zimeg changed the base branch from zimeg-feat-apps-managed-permissions-examples-set to zimeg-feat-entity-examples-present-comments November 18, 2026 06:22
@zimeg
zimeg force-pushed the zimeg-feat-entity-examples-acknowledge-comment-action branch from 5018349 to 9ab2f68 Compare November 18, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant