It is convenient to allow users to open risksheet directly from live doc. This includes ability to open risksheet from revision, if document is loaded from revision.


This can be achieved by placing a simple wiki block to LiveDoc.



The simple snippet is here:

#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="/polarion/#/project/$document.getProjectId()/risksheet?document=$document.getRelativePath()$revisionPar">Edit Risks with Nextedy RISKSHEET</a>
</div>