-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Question: Webhook Event on card-click/render #2518
Comments
You can add Outgoing Webhooks to Wekan board at board hamburger menu / Cog settings icon at right side of members / Outgoing Webhooks. It sends most board actions as this kind of JSON format as POST message to HTTP server, for example to Chat, Node-RED or other webserver, for example you could have PowerShell webserver receiving those messages and do some actions when something happens on board, like checkmarking checkbox. Some functionality could also be done with Excel and VBA. Keep backups of your code, because if Windows Defender is enabled, it could have some heuristics that detects your code as malicious and deletes it. When I sometime installed Nim programming language to Win10, Windows Defender deleted it. You could also add Javascript Clippy that would ask "It seems you are trying to exploit this computer, would you like help with that?" |
Thanks for the heads up regarding Windows Defender! I am already using Webhook with my nodejs Webhook-receiver, but Card events are only emitted for creation, deletion, move, archival & restore as per the documentation. I can double check again if there are any Webhook event when I click on any Card (which will display card details & so on) but I believe there is none. I need that event so that my existing Webhook-receiver can populate another list dynamically. |
Hmm, I think there is no such event yet at API for opening card: I'll check how to add it. |
Thanks appreciate it. I will also dig into the source to explore too.
…On Fri, 28 Jun 2019 at 12:52, Lauri Ojansivu ***@***.***> wrote:
Hmm, I think there is no such event yet at API for opening card:
https://wekan.github.io/api/
I'll check how to add it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2518?email_source=notifications&email_token=ACVWGFK5DMZ44AAC4W5QIU3P4WKJXA5CNFSM4H4BRIMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYZBPMA#issuecomment-506599344>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACVWGFLI6OKQQSV4YOWMVRLP4WKJXANCNFSM4H4BRIMA>
.
|
Hmm, I did not figure it out yet. Anyway, some pointers for your search:
|
@xet7 Thanks, appreciate it. Will try those. |
Within the link, there's a MutationObserver thread... in the context of Wekan, when a mini-card is clicked, the full Card details are rendered (ie. dynamically added) into the interface, which can be "observed" & further process for custom use-cases. |
I tried adding html codes via layout, It seems nothing happen. I used browser developer view to try to locate the stuff I included, can't seem to find it. |
Yes, it does not work yet. |
@xet7 if in the event we are keen to pay for this modification (sending out a Webhook when CardDetails is rendered), what amount of fees are we looking at? Rgds, |
@xet7 Thanks. Let me check with my partners. Will get back soon. |
Implemented: jymcheong@843478a |
When I tried your code, and open card, there is Outgoing Webhook message |
Anyway, this feature is now in Wekan, and anyone can add features to it with pull request. |
Not adding more card details. |
Noted the PR. Didn't do a PR because I thought it was a rather 'niche' need. Thanks for adding the feature in. |
Hah, this is now built-in and we have it, too. Trying to figure out how to still get a notification on when new card created, moved, commented etc. But want to get rid of the webhook notification of the CardSelected. Any idea how to do that? |
By default, CARD_OPENED_WEBHOOK_ENABLED is set to false. From issue #2666, it was mentioned that "docker image v3.35 but found same problem in older versions (since v3.18 I think)." I tested v3.49 (without Docker) then, the environment variable CARD_OPENED_WEBHOOK_ENABLED = false ensures CardSelected events are not emitted. |
Background
I manage to use Wekan as a means to triage "cases", which are basically alerts generated from some sensors as part of project that is going to be open-sourced.
I am using card activities (eg. card create, move..) to signal a backend to populate/modify the cards. Demo: https://www.youtube.com/watch?v=5_DsuOGkh2M
Use-Case
I intend to use Wekan in such a manner:
Questions
Thanks for this awesome Kanban!
Cheers,
Jym
The text was updated successfully, but these errors were encountered: