Seeking Guidance for Building a Custom Macro to Implement Search Functionality on a Confluence Page with JIRA Issue/Filter Macro

Hello Community,

I’ve been working on a Confluence Cloud page where I’ve embedded a JIRA Issue/Filter to display numerous tickets. My aim is to incorporate a search function directly on the Confluence page, enabling users to find specific tickets more efficiently.

My previous attempts involved using the “HTML Template Embed for Confluence” app to incorporate custom HTML and JavaScript for the search function. However, it appears the JavaScript within the iframe generated by the app cannot interact with the table generated by the JIRA Issue/Filter macro.

Here’s a summary of my efforts so far:

  1. I embedded the JIRA Issue/Filter into the Confluence page to display the tickets.
  2. Using the “HTML Template Embed for Confluence” app, I added a text input field to serve as the search box.
  3. I introduced JavaScript to filter table rows based on the search term, only to discover that JavaScript is unable to access the table generated by the JIRA Issue/Filter macro due to Confluence Cloud’s strict security policies.

I acknowledge the restrictions preventing custom JavaScript from running outside of iframes. However, I’m interested in exploring alternate ways to achieve this search functionality directly on the Confluence page, without navigating away or resorting to JIRA’s search function.

Given the context, I’m considering developing a custom macro that meets my specific needs. I’m reaching out to the Atlassian developer community for any guidance, recommendations, or best practices related to creating such a macro.

If anyone has encountered a similar situation, developed a custom macro for similar needs, or has any recommendations on how to approach this, I’d be immensely grateful for your insights. I’m open to using other apps from the Atlassian Marketplace or any alternative solutions you might suggest.

Thank you in advance for your assistance!