For example we have this power up Card Numbers by Reenhanced
It shows when I call /boards/{id}/boardPlugins and /boards/{id}/plugins
Is there any way to get the prefix that has been set for this power up?
Thanks
Ashley
@Ashley_AbellCan you go into more detail what you mean by prefix?
The card number that they are using is returned as the idShort in the API. For instance, using a public board, you can retrieve the field with the following call: https://api.trello.com/1/boards/ALJlJokP/cards/?limit=1&fields=idShort
idShort is what we're getting but we want the prefix from the powerup in the screenshot attached so we can put them both together like it shows on the card itself.
Ah, yeah - I see!
It looks like they are storing that at the board-level in pluginData. You can get at this data with the following API request:
https://api.trello.com/1/boards/{idBoard}/pluginData/5af9c282a659e51fde5aef26
This works because the Card Numbers Power-Up's ID is: 5af9c282a659e51fde5aef26. When you make this request you will get a response similar to:
{ "id": "5af9c282a659e51fde5aef26", "idPlugin": "59c3d177178a761767b49278", "scope": "board", "idModel": "586e8f681d4fe9b06a928307", "value": "{\"prefix\":\"ohLookThePrefix\"}", "access": "shared"}
And you can see in the value key the prefix is there.
It looks like you're new here. Sign in or register to get started.