I’m building a Ruby script pulling data from Trello and stuck at getting specific action property.
Here is my link:
https://api.trello.com/1/lists/{idList}/cards?fields=desc,name&attachments=true&attachment_fields=name,url&actions=commentCard&key={apiKey}&token={token}
I’ve tried to add action_fields=data, but it won’t work.
bentley
September 18, 2019, 6:47pm
2
You are specifically filtering for actions of type commentCard
. It may be the case that there are no actions of that type in the cards.
The following request with actions=all
will give you all of the cards’ actions:
https://trello.com/1/lists/5b68974ddf6e5c5c117cbfc2/cards?fields=desc,name&attachments=true&attachment_fields=name,url&actions=all
The return results have exactly actions I want but it comes with the other field(type, date, limits, memberCreator) that I don’t need.
I want the return result just have commentCard action with data field only.
bentley
September 19, 2019, 12:18pm
4
I see. Unfortunately, there is no way to specify only that data be returned on the action. You must parse the response and hold onto the the things you need yourself.
1 Like