Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic URL in description field of Trello Card when using api

Dean Covey
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!
June 16, 2019

I am using the API to create and maintain Trello cards from our help desk system.  I the description, I am trying create a hyperlink in description field. 

 

The hyper link should be something like:

https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket?ticket=HDTN-210938

 

But what I am getting in Trello is:

[Click Here|https://helpdesk.irely.com/iRelyi21live/

 

 

I think the issue comes from when I post to the API:  

https://api.trello.com/1/cards/5cfa709e4adaf41eaba2a724/?idList=5cc44b53fb6f198759710199&dueComplete=false&pos=417792&due=2019-06-19&desc=HDTN-229914

[Click Here|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket?ticket=HDTN-229914]

 

1 answer

0 votes
marc -Collabello--Phase Locked-
Community Champion
June 17, 2019

@Dean CoveyWhen trying to put a link into the description, you must take care of URL escapes.

In your case, it's a bit more involved, as the URL also contains a hash (#).  My recommendation would be to first to create the url as a string only in the description.  Once that works, I'd try different escapes in order to get it working as a hyperlink.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events