简体   繁体   English

Trello Api:考虑给定日期范围内Trello卡片的上次激活日期,列出所有卡片吗?

[英]Trello Api: list all cards for a given date range considering last activity date of the card in Trello?

I need to list all the cards for a given date range in Trello. 我需要在Trello中列出给定日期范围内的所有卡片。 I know that I can use "since" and "before" as arguments. 我知道我可以使用“ since”和“ before”作为参数。 BUT I don't know which date would consider this filter. 但是我不知道哪个日期会考虑使用此过滤器。 I need it to be the "dateLastActivity" of the card. 我需要它作为卡的“ dateLastActivity”。 So, the question is, "Which date is using Since and Before arguments to do the search? Is there a way to list the cards that I need for a given date range considering dateLastActivity?" 因此,问题是:“哪个日期使用自和之前和之后参数进行搜索?考虑到dateLastActivity,有没有办法列出给定日期范围内我需要的卡片?” ... Thanks in advance. ... 提前致谢。

The since and before arguments to the api call shown below look at the date a card was created. 下面显示的api调用的sincebefore参数查看创建卡的日期。 I tested this and found that only cards that were created since '2015-07-30' were returned, even though there was activity on other cards on the same board. 我对此进行了测试,发现即使同一块板上的其他卡上都有活动,也只返回了自“ 2015-07-30”以来创建的卡。

https://api.trello.com/1/board/[board id]/cards?fields=name,labels,url,idShort,idList,dateLastActivity&since=2015-07-30&key=[key]&token=[token]

I have the same requirement to only gather cards using dateLastActivity in a certain date range but found it wasn't supported. 我有一个相同的要求,即只能在特定日期范围内使用dateLastActivity收集卡片,但发现它不受支持。 I also tried the actions_since argument, but this only affects what actions appear in the result set linked to the card. 我还尝试了actions_since参数,但这只会影响链接到卡上的结果集中出现的动作。 It won't filter out cards. 它不会过滤掉卡片。 My workaround has been to get all cards and then in my program filter out the ones I don't need by comparing a date range to dateLastActivity . 我的解决方法是获取所有卡,然后在程序中通过将日期范围与dateLastActivity进行比较来过滤掉不需要的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM