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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,502
Community Members
 
Community Events
184
Community Groups

Set custom field when creating card using REST API

Henry Öhman
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!
Apr 17, 2023

Hi! I'm trying to set a custom field when creating a card using the REST API.

I need to set the custom field with the same post as the one I'm creating the card with.

 

I've tried adding "customFieldItems" but it does not work for me. 

1 answer

1 accepted

0 votes
Answer accepted
Beverley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 18, 2023

Hi Henry - welcome to the community!

There is a PUT request available to update a custom field item on a card: https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-idcard-customfield-idcustomfield-item-put

Feel free to search through the rest of the documentation to see what is available.

Henry Öhman
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!
Apr 19, 2023

Hi Beverley!

So if I understand correctly there is no way to assign values to custom fields when creating the card, the card must first be created and then the custom field can be set with a second request.

Beverley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 19, 2023

Hi Henry,


That's right - there isn’t a way to assign values to custom fields when creating a new card. You can only update custom field data in a separate API call after the card has been created. This is similar to how checklists and attachments work, as well. They can only be added to a card after the card has been created.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events