I am currently working in a script inline widget on the MyPolarion Page to create a link to the work item tracker view for each project which the user has assigned and unresolved work items. My current code is here:
Code: Select all
#set($assignedItems = $trackerService.queryWorkItems("assignee.id:$me AND NOT HAS_VALUE:resolution"))
#set($projsList = )
#foreach($item in $assignedItems)
#foreach($proj in $projsList)
<a href="/polarion/#/project/$proj/workitems?query=NOT HAS_VALUE:resolution AND assignee.id:$me">$proj</a>
The code inside the second for loop doesn't display anything; when I moved it out of the loop it displays a link that directs me to the work item tracker view for the entire repository. Am I missing something? Why can't this code execute in a loop? Any suggestions?