It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to send a link with '&'? Edited

Dear community,

I setup the integration via API with enterprise ERP system. We need a link to initial document in our ERP-system in the Trello card. The link has a template like this: https://server.com/prod-web/?page=90375&company=company&dc=0

As you see, the link contains '&'. When I send the link via REST-API, only the part https://server.com/prod-web/?page=90375 is saved in the card. The rest is handled as method parameter. 

Is there a way to send the parameters as a JSON?
Or is there any syntaxis to show that the full link is just one parameter?

Kind regards,
Vladimir

2 answers

2 accepted

I think you need to use PUT method , are you using POST?

I use post and this works fine for me. The problem is only with '&' symbol

Ok,

all data needs to send URL-Encoded format. 

in PHP we use urlencode function, what language you are at?

I'm programming from the inside of the ERP-system, which has specific language and specific stackes on board. I could use something from dotnet for example. 

0 votes
Answer accepted
Iain Dooley Community Leader Nov 20, 2019

@Владимир_Бобров you just need to use encodeURIComponent on the values when you send them

Nice try. The problem here is that encodeURIComponent is a JavaScript method. I'm programming from the inside of the ERP-system, which has specific language and specific stackes on board. I could use something from dotnet for example. But the JavaScript I don't know how to apply.🤷

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,499 views 12 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you