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

block_suggestion response does not support description in an option #1343

Closed
1 of 6 tasks
ESteanes opened this issue Aug 9, 2024 · 3 comments · Fixed by #1351
Closed
1 of 6 tasks

block_suggestion response does not support description in an option #1343

ESteanes opened this issue Aug 9, 2024 · 3 comments · Fixed by #1351
Assignees
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented project:bolt
Milestone

Comments

@ESteanes
Copy link

ESteanes commented Aug 9, 2024

https://api.slack.com/reference/block-kit/composition-objects#option

We should be able to add a plain text description to an option object - this is possible using the API but is not available in the SDK

Category (place an x in each of the [ ])

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

Please make sure if this topic is specific to this SDK. For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.

@seratch seratch added question M-T: User needs support to use the project project:slack-api-client project:slack-api-client and removed untriaged labels Aug 9, 2024
@seratch
Copy link
Member

seratch commented Aug 9, 2024

Hi @ESteanes, thanks for writing in! This class represents the option data structure and it has the description fileld! Hope this helps.

@seratch seratch closed this as completed Aug 9, 2024
@ESteanes
Copy link
Author

ESteanes commented Aug 9, 2024

In that case, are we able to make BlockSuggestions accept the OptionObject class?

My use case: I've got an External options field https://api.slack.com/reference/block-kit/block-elements#external_multi_select and maybe its not supported by the API officially but in a previous Go bot I was able to push OptionObjects in that BlockSuggestionResponse.

@seratch seratch reopened this Aug 9, 2024
@seratch seratch changed the title Option Objects are missing the description field block_suggestion response does not support description in an option Aug 9, 2024
@seratch seratch added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented project:bolt and removed question M-T: User needs support to use the project project:slack-api-client project:slack-api-client labels Aug 9, 2024
@seratch seratch self-assigned this Aug 9, 2024
@seratch seratch added this to the 1.40.4 milestone Aug 9, 2024
@seratch
Copy link
Member

seratch commented Aug 9, 2024

@ESteanes Oh, I see. The option value didn't support description in the past, but indeed, having a description is now feasible. The class needs to be updated to support the use case. Thanks for reporting this issue! We will resolve it in the next patch version release.

seratch added a commit to seratch/java-slack-sdk that referenced this issue Aug 20, 2024
seratch added a commit to seratch/java-slack-sdk that referenced this issue Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented project:bolt
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants