Skip to main content
Skip table of contents

Is there a way to display WBS Gantt-Chart for Jira on the Confluence page?

Question

Is there a way to display WBS Gantt-Chart for Jira on the Confluence page?

Answer

There is no way to display it as a standard feature of WBS Gantt-Chart for Jira.

However, there is a way to do it using iframe. Please be noted Ricksoft does not support it since it is not a standard feature.

We Ricksoft does not support the method introduced in this article.


From the Confluence administration screen, select "User Macro" and create a user macro as follows:

Macro Name

wbsgantt

Visibility

Visible to all users in the Macro Browser

Macro Title

WBS Gantt-Chart for Jira Viewer Macro

Macro Body Processing

No macro body

Template

CODE
## Macro title: WBS Gantt-Chart for Jira Viewer Macro
## Macro has a body: N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: Ricksoft Inc.
## Date created: 2015/05/22
## Installed by: Ricksoft Inc
## @param Url:title=URL|type=string|required=true|desc=WBS Gantt-Chart for Jira URL
## @param Width:title=Width|type=int|required=true|desc=Width|default=1200
## @param Height:title=Height|type=int|required=true|desc=Height|default=800
#if (!$paramWidth)
#set ($paramWidth = 1200)
#end
#if (!$paramHeight)
#set ($paramHeight = 800)
#end
#if ($paramUrl)
<iframe class="wbsgantt" src="${paramUrl}" noborder="0" width="${paramWidth}px" height="${paramHeight}px" scrolling="yes">WBS Gantt-Chart for Jira Viewer Macro</iframe>
#end
<script type="text/javascript">
AJS.$(function() {
 AJS.toInit(function() {
 AJS.$('iframe.wbsgantt').load(function() {
 AJS.$('header#header', AJS.$(this).contents()).css('display', 'none');
 });
 });
});
</script>


After registering the user macro, add it to the Confluence page content as follows:

  1. Open the Confluence page you want to display WBS Gantt-Chart and click Edit.

  2. Select "Other macros" on the "Insert more content" menu to display the dialog box.

  3. Click "WBS Gantt-Chart for Jira Viewer Macro" from the box.

  4. Click the "Insert" button.

    1. Add the URL of WBS Gantt-Chart for Jira that you want to display in the URL.

    2. Enter height and width of iframe. (option)

If you are using Jira version 7.6 or later, this iframe may not be displayed due to security function (clickjacking protection). Please refer to the following thread for a solution.

If you want to request us to add this feature as a standard, not unsupported macro, please vote and submit your feedback on the following card on our Productboard:



JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.