Skip to main content
  1. Open your LiveDoc document in edit mode
  2. Insert a Wiki content block where you want the link to appear
  3. Add the following Velocity snippet to the Wiki content window:
#set($revisionPar = "")
#if($document.getRevision())
     #set($revisionPar = "&revision=$document.getRevision()")
#end
<style>
.editRSPanel{
    font-weight: bold;
    background-color: #fff4fb;
    padding: 10px;
    margin: 20px;
    border-radius: 8px;
    border: 2px solid #860251;
}
</style>
<div class='editRSPanel'>
    <a target="_top" href="/risksheet/polarion/#/project/$document.getProjectId()/risksheet?document=$document.getRelativePath()$revisionPar">Edit Risks with Nextedy RISKSHEET</a>
</div>
  1. Save the LiveDoc document
The Velocity template constructs a URL that:
  • Uses the current document’s project ID via $document.getProjectId()
  • Passes the document’s relative path via $document.getRelativePath()
  • Appends the revision parameter if the LiveDoc is loaded from a specific revision
User opens LiveDoc (current or revision)
           |
           v
    Velocity evaluates document context
           |
           v
    URL constructed with project + path + revision
           |
           v
    User clicks styled link
           |
           v
    RISKSHEET opens in same tab (target="_top")
           |
           v
    Correct revision displayed (if applicable)
The #if($document.getRevision()) check ensures that when users view a historical LiveDoc revision, clicking the link opens the corresponding RISKSHEET revision rather than the current version. This maintains temporal consistency across document views.
The $document.getRelativePath() method returns the path relative to the project root. If you move the LiveDoc to a different folder, the link will automatically update. However, if you change the document ID or delete the associated RISKSHEET configuration, the link will fail.
You can modify the CSS styles in the snippet to match your organization’s branding:
  • Background color: Change #fff4fb to your preferred color
  • Border color: Change #860251 to match your theme
  • Link text: Replace “Edit Risks with Nextedy RISKSHEET” with custom text
  • Padding/spacing: Adjust padding and margin values

Verification

After saving the LiveDoc:
  1. The page should display a styled button-like link
  2. Click the link - RISKSHEET should open in the same browser tab
  3. The correct document and revision should be loaded
  4. If viewing a LiveDoc revision, verify the RISKSHEET also displays the corresponding revision

See Also

KB ArticlesSupport TicketsSource Code
  • OpenLiveDocCommand.ts
  • RisksheetNavigationExtender.java
  • RiskSheetContextMenu.ts
  • AppConfig.ts
  • AppConfigParser.ts