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

Cannot "Save" in AWX Notifications Template when adding new Adaptive Card JSON Payload #15650

Open
5 of 11 tasks
shrutebattlestargalactica opened this issue Nov 20, 2024 · 1 comment

Comments

@shrutebattlestargalactica
Copy link

shrutebattlestargalactica commented Nov 20, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

I am trying to move our notifications from Connectors to Flow in MS Teams, in order for this to be properly accepted with an acceptable format, the Flow is looking for an Adaptive Card from the AWX JSON payload when making a PUT request.

I have used the adaptive cards designer here: https://adaptivecards.io/designer/ and ChatGPT helped me some of the way for the JSON payload

This is what I came up with so far and it does work in the designer URL above:

{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.3", "body": [ { "type": "TextBlock", "text": "Ansible Playbook Status", "weight": "bolder", "size": "large" }, { "type": "TextBlock", "text": "The playbook has completed execution.", "isSubtle": true }, { "type": "TextBlock", "text": "Playbook Status: {{ job_status }}", "wrap": true }, { "type": "TextBlock", "text": "Playbook Name: {{ playbook_name }}", "wrap": true }, { "type": "ActionSet", "actions": [ { "type": "Action.OpenUrl", "title": "View Details", "url": "{{ job_url }}" } ] } ] }
When I use this same format and put into the AWX Notifications Template - the "Save" button doesnt do anything, my guess it doesnt like something in this formatting:
image

AWX version

24.6.1

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

Copy and Paste code into the GUI and hit save - doesnt save
image

Expected results

For the Notification template to save with updated Adaptive Card JSON payload

Actual results

Nothing happens when you hit Save button

Additional information

image
workflow from MS Teams

@shrutebattlestargalactica
Copy link
Author

@fosterseth taking a chance here and asking if you happened to know about this problem or have any thoughts to share? thanks again for all you do for the community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant