Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I find the Id of a Custom Field?

BrightZebrafish
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 28, 2023

How do I find the Id of a Custom Field in a fairly easy way.

2 answers

1 vote
Dreamsuite Mike
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 30, 2023

Hi @BrightZebrafish 

API developer ID Helper power-up can help you a lot here...

0 votes
Sushant Verma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 29, 2023

Hi @BrightZebrafish 

Welcome to the community!

You can get at it through the Trello REST API. You can get it in formulas in the Amazing Fields powerup .  (use "card.idShort" in the formula)

Or  If you want to also retrieve the name of the fields themselves (for example get that "ZIn76ljn-4yeYvz" is actually "priority" in Trello, without needing to hard code it, call the following end point:

boards/{trello board id}/pluginData

This will return an array with the plugins information and in one of the array items, it will include a line along the lines of:

[value] => {"fields":[{"n":"~custom field name~:","t":0,"b":1,"id":"~custom field id that is the weird stuff at the card level~","friendlyType":"Text"}]}

So you just need to figure out the plugin for custom fields in your case, and you can retrieve the key -> value pair for the custom field name and the id associated with it.

It means that if you add / remove fields, or rename them, you can handle it at run time vs changing your code.

This will also give you the options for the custom field (when it is a dropdown like in bdwakefield's example above).


Regards,
Sushant Verma

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events