Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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?

0 answers

Suggest an answer

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

Atlassian Community Events