Trello API: should the webhook return actions as an array?

Given a board having two 3rd party systems using the api to interact with the cards on the board.

When a card is moved into a specific list, system A sends a request to the API to update the said card doing both of these in a single API call:

- set "dueComplete" to TRUE

- set "closed" to TRUE

System B listens to updates for the board and its objects on a webhook. For the scenario above, the webhook returns JSON having a single action where "" only contains a key-value pair for "dueComplete" (not for "closed") and the "action.display.translationKey" part of the JSON only mentions "action_marked_the_due_date_complete" (no mention of "action_archived_card").

How can system B figure out that the card was archived just from parsing the content of the JSON given by the board level webhook?

Thanks for your input.

1 answer

1 vote
Oscar Triscon Community Champion Sep 29, 2017

You will actually receive two separate webhooks with two separate actions: one for the due date completion and one for the archival.

@Oscar Triscon You are very right! thank you so much! I was monitoring the webhooks via webhookinbox as my setup is not yet complete and did not notice there were 2 answers for my one action. Thanks again!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

470 views 7 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you