Feature: Make Entity FQNs clickable in Google Chat webhook notifications
Currently, when OpenMetadata sends an alert or Change Event to Google Chat via webhooks, it displays the Entity FQN as plain text. Users have to manually select, copy, and paste the FQN into their OpenMetadata instance to view the changed entity.
In GChatMessageDecorator.java, there are explicitly left // todo create clickable entity link in the message comments that have not been addressed yet.
Proposed Solution We need to generate a clickable link using the existing getEntityUrl method and append it to the Google Chat Card so that users can instantly navigate to the entity in OpenMetadata directly from Google Chat.
Technical Details & Implementation Steps Location: openmetadata-service/src/main/java/org/openmetadata/service/formatter/decorators/GChatMessageDecorator.java
There are two methods that need to be updated:
createGeneralChangeEventMessage() createDQTemplate() Steps to solve:
Both methods currently have a // todo create clickable entity link in the message comment. The class already implements getEntityUrl(String prefix, String fqn, String additionalParams). You can use this method to generate the URL (e.g., <http://your-om-url.com/entity/name|Click Here>). You can extract the FQN and EntityType from the eventDetails mapping. Replace the todo comments by instantiating a new Widget (using a TextParagraph or ButtonList with an OnClick action) and adding it to the Card sections before returning the GChatMessage.
Hi, I'd like to take this up. I will update GChatMessageDecorator.java to wrap the entity FQN using the <URL|Text> format expected by the Google Chat API, utilizing the existing getEntityUrl() method in the createGeneralChangeEventMessage and createDQTemplate methods. Could you assign this to me?