jenkinsci / office-365-connector-plugin

Office 365 Connector plugin sends jobs status notifications to Microsoft Teams or Outlook
https://plugins.jenkins.io/Office-365-Connector/
Apache License 2.0
85 stars 82 forks source link

Add adaptive cards support #297

Open FrankReisenhofer opened 1 year ago

FrankReisenhofer commented 1 year ago

What feature do you want to see added?

From time to time we would like to create messages in MSTeams where we would like to mention someone with '@

This is supported by adaptive cards: [1]

So it would be great if the created messages in teams by this plugin could also contain a notification information.

e.g. "\<at>Somebody\</at>"

Thanks for adding such a feature in the near future.

[1]

https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cdesktop%2Cconnector-html#user-mention-in-incoming-webhook-with-adaptive-cards

Upstream changes

No response

vladi14 commented 1 year ago

any updates regarding this feature ?

YiannisDermitzakis commented 6 months ago

Implementing this feature could also solve #323 as adaptive cards do still support color. However the documentation says that Connectors are not supported for Adaptive Cards so this is probably a non-starter

bluejack2000 commented 5 months ago

I tried sending an adaptive card over the webhook, it worked.

This issue gets more important as the newest teams update does not support theme color anymore. So currently all messages from jenkins have no color encoding. Messages sent should be migrated to adaptive card format.