Power Up Attempted to run callback that does not exist or was not retained when card left open

Ecosystem
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!
November 20, 2024

A customer of ours has filed a bug where our custom power-up button stops working if they leave a card open for an extended period of time. Clicking on the Power-up button after approximately 10 minutes yields the following console log:

Screenshot 2024-11-12 at 12.55.04 PM.png

export function cardButtons() {
  return [
    {
      icon: logoGrayUrl,
      text: 'Manage Time',
      callback: function (t) {
        return t.popup({
          title: 'Manage Time',
          items: [
            {
              text: 'Track time',
              callback: startTimer,
            },
            {
              text: 'Attach time report',
              callback: attachHoursBreakdown,
            },
          ],
        })
      },
    },
  ]
}

window.TrelloPowerUp.initialize({ 'board-buttons': boardButtons, 'attachment-sections': attachmentSections, 'card-buttons': cardButtons, 'format-url': formatUrl, })

 I'm guessing the context is going stale. Is there a solution for this that I can't seem to find?

1 answer

1 accepted

0 votes
Answer accepted
Renato Fagaraz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2024

Hi, @Ecosystem !

That's an unfortunately known issue. I investigated a report a week or two ago and found the very same behaviour. You can find the bug report here: https://jira.atlassian.com/browse/TRELLO-786

 

I'll internally add your post to that report to mark it as a +1, hopefully it gets addressed soon. 

Thanks for taking the time to investigate as well!

Ecosystem
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!
November 22, 2024

Thank you! We'll keep our eyes open for a resolution. 

Suggest an answer

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

Atlassian Community Events