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

Trello API Create card + Custom Field


I want to create a card automatically by Jenkins with the help of 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?


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.


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

Atlassian Community Events