How to handle repeated clicks on the jira:issuePanel app button?

Hi,

We’re migrating our Jira Cloud app from Connect to Forge and are wondering about the intended behavior of the jira:issuePanel app button.

With Connect, we listen for ISSUE_QUICK_ADD_CLICKED to open a dialog whenever the user clicks the button—even when the panel is already present. For example, the dialog lets users create another conversation, while the panel displays existing conversations.

With Forge, extension.isNewToIssue lets us detect when the panel is first added. However, we haven’t found a way to react to subsequent clicks on the same button.

From the user’s perspective, the button works once to add the panel, then stays available but no longer opens anything. It may scroll to the panel, but we can’t use it to start another action.

Is this the intended behavior? Is there a supported equivalent of ISSUE_QUICK_ADD_CLICKED in Forge, or a planned feature that would let us open our dialog on every click?

We’re aware of jira:issueAction, but would like to keep this interaction on the existing app button.

Hi @MichaelGraefen,

From the docs it looks intended. Repeat clicks are controlled by allowMultiple on the jira:issuePanel module, and it defaults to false. I couldn’t find a Forge equivalent of ISSUE_QUICK_ADD_CLICKED. The only click-related value you get is extension.isNewToIssue.

With allowMultiple: true every click adds another panel instance, up to five. The docs don’t say whether each new one starts with isNewToIssue true, so test that first, and if it does, the new instance can open your dialog on mount. The cost is a pile of panels on the issue.

Otherwise it’s a button inside the panel that opens a Modal, or jira:issueAction. Watch ECO-1799 there, because a UI Kit Modal makes the panel jump.

I found no ticket for a click event. ECO-1849, custom items in the panel’s ‘…’ menu, is the closest one to vote on.