Does Trello provide a way to identify who created a card?

谁说我不能喝 提交于 2021-02-07 19:35:09

问题


The api docs made it seem like the answer was no, but I couldn't tell. Is there a way to find all the Trello cards I created on a board or set of boards or across all boards?


回答1:


You can find the author of the card using actions, like this:

Trello.get('/cards/CARD_ID_HERE/actions?action_memberCreator_fields')

It is under the arguments for GET /1/cards/[card id or shortlink] here: https://developers.trello.com/advanced-reference/card#get-1-cards-card-id-or-shortlink

You can also get a list of all your cards like this:

Trello.get('/members/me/cards')

and use the field idBoard to filter only cards for specific board.




回答2:


Yes. If you export the card to JSON you can find a trace of the actions on the card. Under share and more -> Export JSON.

Wich has the following url:

<a class="js-export-json" href="/card/<id>/url-friendly-name-of-the-card.json">Export JSON</a>

This makes a call GET https://trello.com/card/<id>/url-friendly-name-of-the-card.json

In the Json you will look for the action with type: "createCard"




回答3:


I wrote a userscript which adds the creation date and the creator name and account link to the Trello card.
You could install it from my GitHub repository or from OpenUserJS.org



来源:https://stackoverflow.com/questions/37467839/does-trello-provide-a-way-to-identify-who-created-a-card

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!