How to use Jira issue collector with the HTML macro

This tutorial describes in detail how you can use the Jira issue collector with an HTML macro. This allows you to create Jira issues from your Confluence pages directly.

Instructions

To generate a Jira script:

  1. Go to the relevant Jira project and select Project settings from the left sidebar.

  2. Use Jira issue collector to create the required script.

    1. Click Add issue collector.

    2. Enter the Name, Issue type and Reporter for the collector. For this article, let’s create a feedback collector and create a bug for every feedback. So, select Bug as Issue type.

    3. In the Trigger section, enter the Trigger text and the Trigger style for the collector. For our scenario, let’s keep the default options for both fields.

    4. In the Issue collector section, specify the Template you require. For our scenario, let’s use the default options.

      Select Bug as Issue type and retain the default values.
    5. Click Submit.

    6. Copy the script generated in the Embed in HTML tab.

  3. Navigate to and open the relevant Confluence page. Add an HTML macro and edit the macro.

  4. Select HTML embed code under Data source. Paste the generated script in the Embed code section.

  5. Enter the required value in the Layout > Height of iframe (in px) parameter.

    Make sure to specify the Height of rendered content parameter in the editor.

  6. Save the changes and publish the page.

Note that it is recommended to provide the height for the collector in the HTML macro editor. Enter the minimum height (in px or em) in the Height of rendered content parameter of the macro.

Expected result

After publishing your page, the specified trigger text is shown. When the relevant action is performed, a Jira ticket is created based on the issue type specified for the collector. You can view this ticket under the Jira project for which the issue collector was created.

Continuing the scenario above, the result is as follows:

  1. Once the page is published, a Provide feedback button is shown.

  2. Click the button to open the feedback form as specified in the issue collector.

  3. Provide the required details and click Submit.

As specified in the issue collector, a bug is created under the relevant Jira project.

 


Find answers from the community.

Ask a question to the community.

Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.

Unable to render {include} The included page could not be found.