Skip to content

Include type in Message Card messages#428

Merged
damianszczepanik merged 1 commit intojenkinsci:masterfrom
helloviktor:messagecard-missing-type
Mar 2, 2026
Merged

Include type in Message Card messages#428
damianszczepanik merged 1 commit intojenkinsci:masterfrom
helloviktor:messagecard-missing-type

Conversation

@helloviktor
Copy link
Contributor

Fixes #427 by including the @type and @context fields in the MessageCard payload. According to the documentation, these fields are required.

Testing done

I rebuilt the plugin with my changes, installed it on a local Jenkins and posted a MessageCard message using the following snippet (note the adaptiveCards option was unset):

office365ConnectorSend message: 'hello there', webhookUrl: 'REDACTED'

image image

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@helloviktor helloviktor force-pushed the messagecard-missing-type branch from ac4004f to a6a197e Compare February 16, 2026 14:21
Copy link
Member

@damianszczepanik damianszczepanik left a comment

Choose a reason for hiding this comment

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

link mentioned in the description is about legacy card with clear information that this should be replaced by adaptive card - can you comment on that?

@helloviktor helloviktor force-pushed the messagecard-missing-type branch from a6a197e to 09d5087 Compare February 20, 2026 08:27
@helloviktor
Copy link
Contributor Author

Hi @damianszczepanik

As per the latest update from Microsoft on February 5, Message Card is now supported in Workflows.

Message Card support is now available in Workflows. You can continue to use the Message Card format when migrating your existing Office 365 Connectors.

Please see Retirement of Office 365 connectors within Microsoft Teams

Despite it being legacy, we intend to use it beyond the Workflows migration deadline.

@Monishguru
Copy link

When can we expect this to be merged !!

@damianszczepanik damianszczepanik merged commit a439a8b into jenkinsci:master Mar 2, 2026
22 checks passed
@damianszczepanik
Copy link
Member

Merged & published

@ViliusS
Copy link

ViliusS commented Mar 3, 2026

Microsoft stated that MessageCard format support for Workflows was introduced just to make it easier for customers to migrate from Connectors to Workflows. I would expect MessageCard support dropped when enough users migrate.
Since this plugin already has support for ActiveCards the better approach is to encourage users switching to ActiveCards by changing the default to ActiveCard (without the need to specify ActiveCard flag).

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.

Missing type field in Message Card requests

4 participants