Bookmark and Share

Flag traceable items and identify untraceable items (flag unlinked)

by Tim Pence

Rated 2 out of 5 stars

This little job will help you to identify items which are not linked to other items. For example what requirements are not linked to testcases yet. The author recommends to use following alternative instead: http://extensions.polarion.com/polarion/extensions/extension.jsp?extension=PE-218 instead.

Added: Tue Jul 06 00:00:00 CEST 2010
Version: 0.9

Categories: Metrics | Jobs
Screenshots
Detailed Description
July 2010: Added by the author:
I recommend to use following wiki plugin instead:
 
This plugin will not change existing work  items by flagging them as traceable/untraceable. It is also easy for you to adjust it to your own needs
 
Overview:

Job plugin which iterates through a set of workitems (specified by a root query)
and checks whether workitems can be traced to another set of workitems (specified by a target query).
If an item is traceable a custom boolean field is set to true.
This allows you to query very fast via standard query which items are traceable and which are not as traceability calculation is done via seperate job(s).

Items which are traceable will get a custom boolean field set to true. All other items are untraceable.

Installation:
 - copy downloaded jar file into folder %polarioninstall%/polarion/plugins
 - restart Polarion server
 
 create new jobs in %polarionRepo$/.polarion/jobs/schedule.xml based on example below
 
 Attention:
 If you run multiple flagUnlinked jobs at the same time you may have error messages in log
 because 2 jobs may accidentially modify the same workitem at the same time.
 This can be avoided by leaving enough time for each job to execute.
 
 Example:
 <job name="Flag Requirements without Testcases" id="flagUnlinked" cronExpression="0 0 4 ? * MON-SAT" scope="project:AG-Demo">
    <rootQuery>type:requirement</rootQuery>
    <targetQuery>type:testcase</targetQuery>
    <fieldToFlag>hasTestcase</fieldToFlag>
    <linkDirection>traceability</linkDirection>
</job>

Possible Values:
<rootQuery>Any Polarion query (will be executed in project context)</rootQuery>
<targetQuery>Any Polarion query (will be executed globally to fin out if there are linked items in other projects</targetQuery>
<fieldToFlag>Any custom boolean field id available in root item configuration</fieldToFlag>
<linkDirection>traceability|impact|any</linkDirection>

traceability=incoming links
impact=outgoing links
any=incoming or outgoing links

Extension Requirements
Polarion 3.x, Polarion 2010
Support
This extension is provided "as is" in the hope that it will prove beneficial for some Polarion users. It is not certified or supported by Polarion Software.
What do you think?



Spammers: the message will not be publicly visible, it won't be indexed, and links are not supported. It simply makes no sense to post spam here.