Skip to content

fix: slack connector user can now use mentions without using an ID#6804

Merged
johnBgood merged 2 commits into
mainfrom
fix-slack-connector-text-links
Mar 26, 2026
Merged

fix: slack connector user can now use mentions without using an ID#6804
johnBgood merged 2 commits into
mainfrom
fix-slack-connector-text-links

Conversation

@johnBgood
Copy link
Copy Markdown
Collaborator

@johnBgood johnBgood commented Mar 26, 2026

Description

This pull request introduces a small but important improvement to the way plain text messages are sent via Slack. Specifically, it ensures that user and channel mentions in plain text messages are automatically linked, enhancing the user experience.

  • When sending plain text messages, the linkNames property is now set to true in the Slack API request, so user and channel mentions will be properly linked.

Checklist

  • Backport labels are added if these code changes should be backported. No backport label is added to the latest
    release, as this branch will be rebased onto main before the next release. Example backport labels:
    • backport stable/8.8: for changes that should be included in the next 8.8.x release.
    • or backport release-8.8.7: for changes that should be included in the specific release 8.8.7, and this
      release has already been created. The release branch will be merged back into stable/8.8 later, so the change
      will be included in future 8.8.x releases as well.
  • Tests/Integration tests for the changes have been added if applicable.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Slack outbound connector’s chat.postMessage request building so that plain-text messages enable Slack’s name-linking behavior, allowing @user / #channel mentions to be automatically linked without requiring explicit IDs.

Changes:

  • Set linkNames=true on ChatPostMessageRequest when messageType is plainText.

@johnBgood
Copy link
Copy Markdown
Collaborator Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 26, 2026

@johnBgood I've opened a new pull request, #6805, to work on those changes. Once the pull request is ready, I'll request review from you.

@johnBgood johnBgood force-pushed the fix-slack-connector-text-links branch from 9d9f8b4 to aa37d1b Compare March 26, 2026 14:00
camunda.endpoints.cors.mappings=/inbound-instances/**
camunda.client.prefer-rest-over-grpc=false
camunda.client.rest-address=http://localhost:8088
camunda.client.rest-address=http://localhost:8080
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was changed by mistake I guess

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks for fixing. Did change this everytime locally

#6805)

Agent-Logs-Url: https://github.com/camunda/connectors/sessions/c0d9223d-df3d-4c96-b6df-b3b580126cf6

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>
@johnBgood johnBgood force-pushed the fix-slack-connector-text-links branch from 71ded6e to 1429dbe Compare March 26, 2026 14:15
Copy link
Copy Markdown
Collaborator

@mathias-vandaele mathias-vandaele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @johnBgood !

@johnBgood johnBgood added this pull request to the merge queue Mar 26, 2026
@johnBgood johnBgood removed this pull request from the merge queue due to a manual request Mar 26, 2026
@johnBgood johnBgood added this pull request to the merge queue Mar 26, 2026
Merged via the queue into main with commit 09fec01 Mar 26, 2026
30 of 32 checks passed
@johnBgood johnBgood deleted the fix-slack-connector-text-links branch March 26, 2026 15:05
@team-connectors-int-automation
Copy link
Copy Markdown
Contributor

Backport failed for stable/8.7, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin stable/8.7
git worktree add -d .worktree/backport-6804-to-stable/8.7 origin/stable/8.7
cd .worktree/backport-6804-to-stable/8.7
git switch --create backport-6804-to-stable/8.7
git cherry-pick -x 09fec0176b7d68c6755ebfa30e54251efe1b8c4f

@team-connectors-int-automation
Copy link
Copy Markdown
Contributor

Backport failed for stable/8.8, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin stable/8.8
git worktree add -d .worktree/backport-6804-to-stable/8.8 origin/stable/8.8
cd .worktree/backport-6804-to-stable/8.8
git switch --create backport-6804-to-stable/8.8
git cherry-pick -x 09fec0176b7d68c6755ebfa30e54251efe1b8c4f

@team-connectors-int-automation
Copy link
Copy Markdown
Contributor

Backport failed for stable/8.6, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin stable/8.6
git worktree add -d .worktree/backport-6804-to-stable/8.6 origin/stable/8.6
cd .worktree/backport-6804-to-stable/8.6
git switch --create backport-6804-to-stable/8.6
git cherry-pick -x 09fec0176b7d68c6755ebfa30e54251efe1b8c4f

team-connectors-int-automation Bot pushed a commit that referenced this pull request Mar 26, 2026
…6804)

* fix: slack connector user can now use mentions without using an ID

* test: add assertions for linkNames behavior in ChatPostMessageDataTest (#6805)

Agent-Logs-Url: https://github.com/camunda/connectors/sessions/c0d9223d-df3d-4c96-b6df-b3b580126cf6

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>
(cherry picked from commit 09fec01)
@team-connectors-int-automation
Copy link
Copy Markdown
Contributor

Successfully created backport PR for stable/8.9:

johnBgood added a commit that referenced this pull request Mar 26, 2026
…6804)

* fix: slack connector user can now use mentions without using an ID

* test: add assertions for linkNames behavior in ChatPostMessageDataTest (#6805)

Agent-Logs-Url: https://github.com/camunda/connectors/sessions/c0d9223d-df3d-4c96-b6df-b3b580126cf6

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>
(cherry picked from commit 09fec01)
johnBgood added a commit that referenced this pull request Mar 26, 2026
…6804)

* fix: slack connector user can now use mentions without using an ID

* test: add assertions for linkNames behavior in ChatPostMessageDataTest (#6805)

Agent-Logs-Url: https://github.com/camunda/connectors/sessions/c0d9223d-df3d-4c96-b6df-b3b580126cf6

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>
(cherry picked from commit 09fec01)
johnBgood added a commit that referenced this pull request Mar 26, 2026
…6804)

* fix: slack connector user can now use mentions without using an ID

* test: add assertions for linkNames behavior in ChatPostMessageDataTest (#6805)

Agent-Logs-Url: https://github.com/camunda/connectors/sessions/c0d9223d-df3d-4c96-b6df-b3b580126cf6

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>
(cherry picked from commit 09fec01)
johnBgood added a commit that referenced this pull request Mar 26, 2026
…6804) (#6809)

* fix: slack connector user can now use mentions without using an ID

* test: add assertions for linkNames behavior in ChatPostMessageDataTest (#6805)

Agent-Logs-Url: https://github.com/camunda/connectors/sessions/c0d9223d-df3d-4c96-b6df-b3b580126cf6




---------



(cherry picked from commit 09fec01)

Co-authored-by: Jonathan Roques <jonathan.roques@camunda.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>
johnBgood added a commit that referenced this pull request Mar 26, 2026
…6804) (#6810)

* fix: slack connector user can now use mentions without using an ID

* test: add assertions for linkNames behavior in ChatPostMessageDataTest (#6805)

Agent-Logs-Url: https://github.com/camunda/connectors/sessions/c0d9223d-df3d-4c96-b6df-b3b580126cf6




---------



(cherry picked from commit 09fec01)

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>
johnBgood added a commit that referenced this pull request Mar 26, 2026
…6804) (#6811)

* fix: slack connector user can now use mentions without using an ID

* test: add assertions for linkNames behavior in ChatPostMessageDataTest (#6805)

Agent-Logs-Url: https://github.com/camunda/connectors/sessions/c0d9223d-df3d-4c96-b6df-b3b580126cf6




---------



(cherry picked from commit 09fec01)

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: johnBgood <1797846+johnBgood@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This pull request has been included in release 8.8.10!

Thank you for your contribution! 🚀

@github-actions github-actions Bot added the version:8.8.10 Released in version 8.8.10 label Mar 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This pull request has been included in release 8.7.19!

Thank you for your contribution! 🚀

@github-actions github-actions Bot added the version:8.7.19 Released in version 8.7.19 label Mar 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

🎉 This pull request has been included in release 8.9.0!

Thank you for your contribution! 🚀

@github-actions
Copy link
Copy Markdown
Contributor

🎉 This pull request has been included in release 8.10.0-alpha1!

Thank you for your contribution! 🚀

@github-actions github-actions Bot added the version:8.10.0-alpha1 Released in version 8.10.0-alpha1 label May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants