Logo
My activities
Submit a Ticket >

Toll Free: 1.877.776.2995

Populate Vulnerability Details into the Ticket Template and Others Using Velocity

To Populate Vulnerability Details into the Ticket Template and Others Using Velocity:

 Ticket: $ticketName
 Ticket Priority: $ticketPriority
 Ticket Due: $ticketDue
 Ticket Status: $ticketStatus
 Ticket Description:
 $ticketDescription
#set($vulnerabilities= $ticket.getAttachedVulnerabilities())
$NT.getValue("Ticket.attachedVulnerabilities")
#set($assetNames = "")
#set($vulData = "")
#foreach($v in $vulnerabilities)
#set($v2AssetLinks = $v.getAssetLinks())
#set($i = 0)
  #foreach($assetLink in $v2AssetLinks)
    #set($ast = $assetLink.getAsset())
    #set($assetNames = $assetNames + $ast.getCaption())
    #if($i>0)
        #set($assetNames = $assetNames + ", ")
    #end
    #set($i=$i+1)
  #end
#set($v2vulData = $v.getData())
 #set($j = 0)
  #foreach($vulDat in $v2vulData)
    #set($vul = $vulDat.getType())
    #set($vulData = $vulData + $vul)
    #if($j>0)
        #set($vulData = $vulData + ", ")
    #end
    #set($j=$j+1)
  #end
Vulnerabilities: $v.getCaption()
Cvss: $v.getCvssScore()
Severity: $v.getDefaultSeverity()
Reported By: $v.getSource()
Create Date: $v.getPublishedDate()
#end
Type: $vulData
assetNames: $assetNames
i Value: $i

Follow
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk