Velocity and VARIANTS add-on: Access to selected features

Description
NOE
Posts: 1
Joined: Wed May 22, 2019 6:10 pm

Velocity and VARIANTS add-on: Access to selected features

Postby NOE » Wed May 22, 2019 6:22 pm

Hi!

I'm trying to access the selected features from within Velocity in a LiveReport. I managed to find out how to access a FeatureSelectionItem using the defined custom field within a given Variant WorkItem (in variable $variant), and to get the selection type (included / excluded) out of it:

Code: Select all

#set($featureSelection = $variant.getCustomField("featureSelection"))
#foreach($selection in $featureSelection.selections)
        $selection.selectionType.id </br>
#end


However, I don't have any clue on how to get the associated Feature WorkItem out of the FeatureSelectionItem.
I tried

Code: Select all

$selection.feature
, but this doesn't give a result.

Is there anyone who can help?

Many thx in advance!

Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 4 guests