From 223dc9db2258e0797ad2e72f5b752c7f80ed4823 Mon Sep 17 00:00:00 2001 From: Besmir Zanaj Date: Wed, 5 Apr 2023 11:45:31 -0400 Subject: [PATCH] update potentialAction type to ActionCard as Teams will not recognise anymore ViewAction previous run will get you a 400 HTTP/2 400 Bad payload received by generic incoming --- src/MicrosoftTeamsNotification.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MicrosoftTeamsNotification.groovy b/src/MicrosoftTeamsNotification.groovy index 260860b..3ef2544 100644 --- a/src/MicrosoftTeamsNotification.groovy +++ b/src/MicrosoftTeamsNotification.groovy @@ -21,7 +21,7 @@ rundeckPlugin(NotificationPlugin){ potentialAction: [ [ "@context": "http://schema.org", - "@type": "ViewAction", + "@type": "ActionCard", name: "Seed job execution", target: ["${execution.href}"] ] @@ -44,7 +44,7 @@ rundeckPlugin(NotificationPlugin){ potentialAction: [ [ "@context": "http://schema.org", - "@type": "ViewAction", + "@type": "ActionCard", name: "Seed job execution", target: ["${execution.href}"] ] @@ -67,7 +67,7 @@ rundeckPlugin(NotificationPlugin){ potentialAction: [ [ "@context": "http://schema.org", - "@type": "ViewAction", + "@type": "ActionCard", name: "Seed job execution", target: ["${execution.href}"] ]