How to get all facts by key

Description
hseifert
Posts: 21
Joined: Wed Apr 17, 2013 12:10 pm
Location: Böblingen, Baden-Württemberg, Germany
Contact:

How to get all facts by key

Postby hseifert » Thu Apr 10, 2014 7:41 am

Hello.

I try to write a macro for the high charts. This should display all facts from a workitem metric key. Unfortunately, I'm stuck.

This is a snippet from my workitem-metrics.xml.

Code: Select all

<entry>
   <key>DEFECTS-STATUS</key>
   <label>Defects by Status</label>
   <description>
      Rate of Defects having the given status
   </description>
   <value type="distribution">
      <query id="new" label="New">type:defect AND status:new</query>
      <query id="accepted" label="Accepted">type:defect AND status:(accepted planned reopened)</query>
      <query id="inprogress" label="In Progress">type:defect AND status:(inprogress inclarification)</query>
      <query id="resolved" label="Resolved">type:defect AND status:(resolved checkable)</query>
   </value>
</entry>


At the moment I didn't find a method to get all 4 facts by the key. I only get all facts on my wiki page:

Code: Select all

#set($factBaseRepository = $polarionTool.factBaseRepository)
#if($factBaseRepository)
   #set($factBase = $factBaseRepository.loadFactBase("workitems-trend-data", $trackerProjectId, null, false))
   #set($facts = $factBase.listFacts())
   #foreach($fact in $facts)
      $fact
   #end
#else
   #error("Failed to load fact base repository.")
#end


Does anybody have an idea?


Kind regards,
Hagen
Kind regards.

Hagen

Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 9 guests