I am building a Clone Card Sync APP using PHP and webhooks. Facing 2 problems.
1) While updating a checkItem position, it seems Trello triggers muliple checkItem webhook actions, seeming an indefinite loop while updating their clones. How to stop it?
2) Also, it looks, while changing the position of whole CheckList, no webhook action is received.
@Outright Systems Pvt. Ltd. -Administrator- the loop is no doubt caused by the fact that when you update the position to match the moved card, this will trigger a second webhook and thus update the position on the original card, which will trigger another webhook and so on.
One option would be to ignore moves made using the token that is calling the API but if that's not possible you could fetch the current state of the checklist and only make the API call to move the item if the order of items doesn't already match.
As for item 2, I can confirm that I'm not receiving any webhook notification for a checklist position move, this sounds like something you should submit as an API feature request.
If you had to thrive a new habit during a lockdown, what would it be? Trello
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event