HTTP requests with payloads with card shortlink

jvcostavale
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!
August 12, 2024

Hi! I configured a cardbutton in my board. This button do a POST to a url endpoint with a payload.

Follow the configuration:

 

post to url "https://myurl.com/cardbutton" with payload "{\"recipient\": \"{{%email (sep=';')}}\",\"cardname\": \"{cardname}\",\"shortlink\": \"{shortlink}\"}"

 

But when it gets to the server and a print the received data I get someting like this:

Received data: {'recipient': 'myemail@domain.com', 'cardname': 'cardname', 'shortlink': ''}

As you can see, the shortlink of the card is not comming and the custom field 'email (sep=;)' and the cardname are getting ok to the server.

I have already tryed {{%shortlink}}, {{%shortLink}}, {shortLink} all unsuccessfuly.

 

Any ideas?

1 answer

0 votes
Renato Fagaraz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 16, 2024

Hi! Welcome to the community!

When you're passing {shortlink}, are you trying to get the card URL? If so, could you try passing {cardlink} instead? 

Trello has a list of variables you can use for automation and API purposes, I think these might be handy to you: https://support.atlassian.com/trello/docs/automation-variables/

Let me know if that works!

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events