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

Add support for Adaptive Cards in webhook integration #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

larhip
Copy link
Collaborator

@larhip larhip commented Dec 6, 2024

Base information

Question Answer
Related to a SourceForge thead / Another PR / Combodo ticket? N°7664
Type of change? Enhancement

Symptom (bug) / Objective (enhancement)

Introduced a new field "json_format" to handle different message formats, extending the functionality to support Adaptive Cards alongside existing Message Cards. Modified methods to prepare and format payloads and actions based on selected JSON format for Microsoft Teams.

See also: https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using?tabs=cURL%2Ctext1#send-adaptive-cards-using-an-incoming-webhook

Proposed solution (bug and enhancement)

Introduced a new field "json_format" to handle different message formats, extending the functionality to support Adaptive Cards alongside existing Message Cards. Modified methods to prepare and format payloads and actions based on selected JSON format for Microsoft Teams.

See also: https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using?tabs=cURL%2Ctext1#send-adaptive-cards-using-an-incoming-webhook

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested all changes I made on an iTop instance
  • Would a unit test be relevant and have I added it?
  • Is the PR clear and detailed enough so anyone can understand digging in the code?

Introduced a new field "json_format" to handle different message formats, extending the functionality to support Adaptive Cards alongside existing Message Cards. Modified methods to prepare and format payloads and actions based on selected JSON format for Microsoft Teams.

format message to markdown
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