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

Butler button get an external redirect uri

Hi,

I'm trying to create a board button that sends a get request to my Google App Script(GAS). GAS always generates a one-time accessing uri and returns as response 302. Unfortunately, butler doesn't recognize it and treat it as an error. Does anyone know how to recognize a redirection response and proceed the execution with redirect uri?

Thank you in advance!

1 answer

1 accepted

1 vote
Answer accepted
Iain Dooley Community Leader Nov 23, 2019

@Jiajie Liu Google Apps Script doesn't generate a one-time access URL if you deploy it as a web application

Hi Iain Dooley!

Thank you for you reply!

I deployed it as a web application and I have an URL like this
https://script.google.com/macros/s/<somethinghere>/exec
and it returns a redirect response to
https://script.googleusercontent.com/macros/echo?user_content_key=...

The script executes as Me and anyone even anonymous can access to the app since I don't know how to do OAuth in bulter.

I think this Google App Script related question should not be asked here so is there any way to handle the response 302 in butler? Or other power-up that I could do some coding inside.

Iain Dooley Community Leader Nov 24, 2019

@Jiajie Liu looks like this is only the case when you serve the request using the Content Service:

https://developers.google.com/apps-script/guides/content

If you serve the request using the HTML Service instead you won't get the redirect:

https://developers.google.com/apps-script/guides/html/

Like Jiajie Liu likes this

Thank you so much! It works now.

Thank you again for helping me to solve my problem even it's not about trello.

Iain Dooley Community Leader Nov 24, 2019

@Jiajie Liu haha yeah I do a LOT of work with Google Apps Script, in fact I created this framework for automating Trello "butler style" using GAS:

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Introducing-Trellinator-Automate-Trello-with-Google-Apps-Script/ba-p/925271

Wow, That's cool! I should use it I think.😆

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,621 views 15 6
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