It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Only getting actions of type commentCard from the API unlike from the website?

Hello

When I have a card open in the browser and add .json at the end of the URL I get a json file which includes an array of actions of various types (commentCard, createCard, addMemberToCard, updateCard). However with the following API call:

https://api.trello.com/1/cards/{cardID}/actions?key={API_key}&token={API_token}

I only get actions of type commentCard. How can I get all actions of the card?

The problem is not that there are too many comments to show the other types.

Thanks.

1 answer

1 accepted

1 vote
Answer accepted
Iain Dooley Community Leader Mar 14, 2020

@Bjarni Have a look at the documentation do the card/actions end point and you’ll see that the default filter is commentCard, you need to include the filter parameter explicitly to get other types, and the limit parameter will also allow you to see more actions than the default: 

 

8DD03DA7-F32B-4E4B-A29E-6D1FEBBA4BEA.png

It works perfectly now, I should have read the documentation more carefully. Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,638 views 15 7
Read article

Community Events

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

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you