Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilesUploadV2Request: markdown format for initialComment does not work unlike v1 #1121

Closed
plshapkin opened this issue Feb 17, 2023 · 2 comments
Labels
Milestone

Comments

@plshapkin
Copy link

The Slack SDK version

1.27.3

Java Runtime version

OpenJDK Runtime Environment Temurin-17.0.4.1+1 (build 17.0.4.1+1)

OS info

ProductName: macOS
ProductVersion: 13.1
BuildVersion: 22C65
Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000

Steps to reproduce:

  1. Add link like <https://example.com|example.com> in FilesUploadV2RequestBuilder.initialComment()
  2. Build FilesUploadV2Request
  3. Send request via MethodsClient.filesUploadV2()

Expected result:

Link parsed like example.com

Actual result:

Link not parsed, displayed plain text <https://example.com|example.com>

@seratch seratch added project:slack-api-client project:slack-api-client server-side-issue and removed untriaged labels Feb 17, 2023
@seratch seratch added this to the 1.x milestone Feb 17, 2023
@seratch
Copy link
Member

seratch commented Feb 17, 2023

Hi @plshapkin, thanks for writing in!

Unfortunately, the lack of markdown format support is a known issue and we don't have any updates since the issue was initially reported. We cannot tell when and whether this can be improved in the future. See the similar ones:

The only workaround that I can suggest is to use chat.postMessage with files' permalink URLs: slackapi/python-slack-sdk#1194 (comment)

I know this is not a great answer but I hope this was helpful to you.

@seratch seratch changed the title FilesUploadV2Request: links in initalComment() is broken FilesUploadV2Request: markdown format for initalComment does not work unlike v1 Feb 17, 2023
@seratch seratch changed the title FilesUploadV2Request: markdown format for initalComment does not work unlike v1 FilesUploadV2Request: markdown format for initialComment does not work unlike v1 Feb 17, 2023
@seratch
Copy link
Member

seratch commented Oct 5, 2023

Hi! Thank you very much for your patience regarding this issue. The server-side has recently been enhanced, so now the API accepts mrkdwn format for the initial_comment parameter! Let me close this issue now 🙇

@seratch seratch closed this as completed Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants