question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Initial setting of custom field value on a card

See original GitHub issue

How do I set the value of a custom field on a card, before it has a value?

I am creating a new card, and want to set some of the custom field values that are already defined for the board.

None of the ICardCollection.Add() overloads allow passing in a custom field collection, so I thought I would set it after the card has been created. After the card is created, the ICard.CustomFields property does not contain any items, since they have no value (consistent with the API docs), however as this is an IReadOnlyCollection I can’t add a custom field.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
TimSirmovicscommented, May 2, 2018

Cheers for the info Greg, all sorted now.

0reactions
agrosscommented, May 11, 2018

👍🏻

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Setting value of newly-created Custom field on exi...
Hi Jane, I would use the Butler Power-Up to populate custom fields with a default value. If you have at least a Gold...
Read more >
Setting custom Field value when adding a card
Setting custom Field value when adding a card ... 1) written a bit of code that will identify a custom field on a...
Read more >
Initial setting of custom field value on a card #188
I am creating a new card, and want to set some of the custom field values that are already defined for the board....
Read more >
Setting custom field values on a card with the Trello API
I am trying to use the new Custom Fields methods of the Trello API to set the value of a custom field on...
Read more >
How to Create and Manage Custom Fields?
Enforce Value - controls whether this custom field must always have a value for the cards it is applied to. · Allow other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found