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,028
Community Members
 
Community Events
184
Community Groups

Trello API Create card + Custom Field

Hello!

I want to create a card automatically by Jenkins with the help of https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-post in a DONE column. But also I want to update a "DONE date" field created by Custom Filed. I don't know the Id of the card which is creating.

Is there a way to update the "DONE date" in one creation command? Or other solutions?

Thanks,

1 answer

1 accepted

0 votes
Answer accepted

I've found a solution by parsing creation result and receiving id with the help of "jq".

Hello. I'm having a similar problem. Could you add code or more data here? Thank you very much.

Like a_alsaedi likes this

Hi,

CardName1 contains the name of the card.

CardName2 contains the name with adding one more space at the end.

 

CARD_ID=\$(curl -X GET \$URL1 | jq -r --arg NAME1 "\${CARD_NAME1}" --arg NAME2 "\${CARD_NAME2}" '.[] | select((.name==\$NAME1) or (.name==\$NAME2)) | .id')

URL variable contains request to the trello api to the the specific List ID

Thank you very much, i will try.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events