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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Invalid value for custom field type

Hi,

I am working wtih Python and when I tried to update a custom field I have this eror

Invalid value for custom field type

Update Custom Field item on Card

PUT /1/cards/{idCard}/customField/{idCustomField}/item

Documentation example

{
 "value": {
 "text": "<string>",
 "checked": true,
 "date": "2018-03-13T16:00:00.000Z",
 "number": 2154
 }
}

I need to set number field but I do not know how pass this parameter in the querystring variable.

querystring = {'number': '123',"key":KEY,"token":TOKEN}

response = requests.request("PUT", url, params=querystring)

Thanks a lot for you help, I appreciate so much.

 

Patricio.

2 answers

0 votes
Vini Atlassian Team Apr 13, 2020

Hi Patricio! Welcome to Trello Community!

While there are no rules agains posting more technical questions here, developers usually have more luck in the dedicated dev community: https://community.developer.atlassian.com/c/trello

There you will be able to collaborate with other Trello Champions and Engineers.

0 votes
Iain Dooley Community Leader Apr 14, 2020

@Patricio_Christian_Garcia yeah the trello Custom Fields API is an absolute crime against humanity. I copied and pasted my way through it from a bunch of random StackOverflow answers, you can see the finished product here, if you look at the various function calls and so on, in my implementation of a straight forward "setCustomFieldValue" wrapper around it for my Trellinator framework:

https://github.com/iaindooley/trellinator-libs/blob/master/Card.js#L1401

I don't know enough Python to easily translate that but it's all just HTTP calls so should be easy enough to adapt to your purposes.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

📹 What is Trello?

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...

776 views 13 30
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you