@Steven BehnkeI have read several different documents and community posts on steps to add a link/button on a single Confluence Page to open a JIRA Issue Collector, using the custom setup on the Collector.
I used an HTML Macro and have all code in place and link text appears. In preview the link works and opens the Collector form.
However, when I save the page and try to click the link it does not work. If I right click the link and ask it to open in new tab/page, it opens the same page I am on.
I am probably just looking right past the issue, but don't want to keep banging my head against a wall.
Okay I believe that the issue is the <head> and <body> tags that you're using. For instance, this works just fine:
I tried your code and inserted 'console.log("hello world");' into the script. During preview, this did log "hello world" to my browser console. When I saved the page, it did not log anything. When I removed the <head> and <body> tags and saved the page, this did log "hello world" as expected. I think we can make the assumption that the script wrapped in the <head> tag is not executing which explains what you're seeing.
It's not recommended to have multiple head or body tags in an HTML document and it seems to completely break the Confluence UI anyway, my footer was near the top of the screen and none of the buttons worked.
If you need more help, my examples on this previous example should be extraordinarily clear: https://community.atlassian.com/t5/Confluence-questions/How-to-create-a-button-to-open-the-issue-collector/qaq-p/88880.
Also, right-clicking and opening in a new page will never work with issue collectors. There's no HTML page to serve up and your trigger has an 'href' of '#'. These links will always resolve to the same page at the root anchor.
<a href="#" id="dsuSupportTracker"
The way the Issue Collector works is all client-side. The <script> that you include downloads web resources from the jira server and attaches a click event to the selected trigger. When you click the trigger, the resources the browser already downloaded show a modal with fields. When you click Submit, the browser fires another click event that sends an AJAX call back to the JIRA server and closes the modal.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs