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

Trello API Create card + Custom Field

Andrei Behel March 16, 2021

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
Andrei Behel March 18, 2021

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

J Perez September 9, 2022

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

Like a_alsaedi likes this
Andrei Behel September 13, 2022

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')
Andrei Behel September 13, 2022

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

J Perez September 13, 2022

Thank you very much, i will try.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events