The content of this Space is not the latest version of WBS Gantt-Chart for Jira.
We have separate Space for each version of the product. If the version you are using differs from the one in this Space title, please find the correct one from the below page. https://ricksoft-support.atlassian.net/wiki/spaces/WGC/overview


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 Namewbsgantt
VisibilityVisible to all users in the Macro Browser
Macro TitleWBS Gantt-Chart for Jira Viewer Macro
Macro Body ProcessingNo macro body
Template
## 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 watch, vote, or comment on the following issue on our public tracker:

WGCPT-60 - Getting issue details... STATUS



If you have any questions please feel free to ask a member of the Ricksoft community!