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

Unhandled rejection Error on t.popup Edited

I'm trying to open a popup when a user clicks a button on a card. Before I can create the popup, I need to retrieve some information from shared settings, but it appears that this causes the popup creation to fail.

My code is as follows:

t.get('board', 'shared', 'key')
.then(function(keyVal) {
if (keyVal === "test") {
console.log("do something");
} else {
return t.popup({
type: 'confirm',
title: 'Test Title',
message: 'Test is a test',
confirmText: 'Ok',
onConfirm: function(t, options) {
console.log("do something else");
return t.closePopup();
confirmStyle: 'danger'

For some reason, when I try to open the t.popup, I'm getting the following error (line 31 in my js):


Any ideas as to what I need to change to fix this?

Also worth noting, this was working as-is a few months ago. By any chance did I miss an update to the API that isn't documented yet?

Thanks for taking a look!


1 answer

0 votes
Garrett Atlassian Team Dec 23, 2019

Hey Andrew,

I'd instead recommend posting this over in our developer community:

Our engineers keep an eye out there, and they or any champions would be happy to help you out with this!

Suggest an answer

Log in or Sign up to answer
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