Admin Info
EN | Administrator Guide for Configuring the UPPS! Extension Links Synchronizer (LS)
Overview
Who is this documentation for?
This documentation is intended for system or project administrators responsible for configuring the UPPS! Extension Links Synchronizer (LS).
Prerequisites
Before reading this documentation, you should be familiar with basic Polarion project administration.
What you will learn
After reading this documentation, you will be able to active, and configure the behaviour of the Links Synchronizer for specific projects individually.
Overview of Links Synchronizer
The Links Synchronizer automatically manages Work Item links. It scans the description of a Work Item being saved and ensures that any Work Items referenced via a Polarion Cross-Reference, Polarion Live Link, or Hyperlink receive a corresponding Work Item link, according to a predefined configuration.
Configuration
Introduction
The Links Synchronizer extension can be configured byusing anyeither of the following two options:
- Configuration page — accessible in each Polarion project, this lets you specify how the extension should behave for that project. Once configured, the link roles of every Work Item saved in that project are automatically managed according to the configuration.
- Polarion job — applies the configuration across all projects for which the extension is enabled. Use this primarily to synchronize existing Work Items whose link roles have not yet been processed, or after making changes to the
LinkLinks Synchronizer configuration.
It is strongly recommended that you test this feature in a non-production environment before using it in production. The extension adds and removes link roles across multiple work items, potentially spanning different projects, depending on how the work items are linked and how the extension is configured.
Configuration via Configuration Page
Access the Configuration Page
The
LinksLSSynchronizer customizationis takes placeconfigured separately for each individual Polarion project. Administration permission is required for doing this.required.
- Click the Administration button, navigate to the UPPS! Extensions entry, and open the drop-down menu.
Eventually, - Click
theLinks Synchronizerbuttonto open thecustomizationconfiguration page.
At the very top of the LS customizationconfiguration page you seewill find the following options and information:options:
EvenNote: ifSaving youthe save customizations made using this pageconfiguration by clicking the SAVE CONFIGURATONCONFIGURATION buttonhas nothingno willeffect change or happen inon your Polarion project as long asuntil you did not markcheck the Enable extension for this Project check boxcheckbox.
Extra Fields Config
ContainsThis specificsection configurationscontains tosettings that control the extension's behavior of the extension dependingbased on the configuration and content of a WorkItem.Work Item.
Scan for WorkitemInclude references in TestSteps
Field.of WorkItems
Enabling thismayoptionincurcausesathesignificantextensionperformancetopenalityscan the Test Steps field for Work Item references in addition to theexecutiondescription field.Enabling this option may significantly impact the performance of the Links Synchronizer
job.Thisjob, as Test Step content isdueprocessedtoat theTestStepJavacontent currently being processed on the Java-levellevel, whichtakesissignificantlyconsiderablymoreslowertimethantoSQLprocessprocessing.comparedInclude
toreferencesSQL.in ResolvedresolvedWorkltemsWorkItems
By default, resolved Work Items areby defaultnot processed.
Enabling this optionwillcauses the extension to scan forWorkitemWork Item references inWorkltemsWorkthat areItems configured with a direct link rule and set the appropriate link role even ifitthe Work Item isresolved,resolved (i.ee., has a resolution valueset.Dueset).toNote: For performance reasons,
permissionpermissions to modifyWorkltemWork Item links are notchecked.checkedEnablewhen this option is enabled. Only enable this if you permitWorkltemWork Item links to be modified on resolvedWorkltems.Work ResolvedItems.WorkitemsInclude references to resolved target WorkItems with backling configurtions
By default, resolved Work Items areby defaultnot processed.
Enabling thiswilloption causes the extension to scan forWorktternWork Item references inWorkitemsWorkthat areItems configured with a backlink rule and set the link role on theotherreferencedWorkiternWork Item even if it isresolved,resolved (i.ee., has a resolution valueset.Dueset).toNote: For performance reasons,
permissionpermissions to modifyWorkitemWork Item links are notchecked.checkedEnablewhen this option is enabled. Only enable this if you permitWorkitemWork Item links to be modified on resolvedWorkitems.Work
Extra LinkBacklink Config
Backlink Revision Action
Polarion links can only reference a specific revision of a target WorkItemWork Item in a direct linklink, andbut dothis is not have the ability to do sopossible with a backlink. So ifIf a reference withincluding a revision is added in the description ofto a source WorkItem,Work anItem's actiondescription and a backlink rule applies, you must be defineddefine how the Links Synchronizer should behavehandle whenthis a reference with a revision is added and a backlink configuration would apply.case.
Fallback
All Types
A general configuration that is used to create aapply link rules to aany referenced WorkItemWork Item in a description. The rules set updefined here are usedapplied ifwhen no type-specific configuration has been set upexists for athe WorkItemWork whose description isItem being evaluatedevaluated, or when no type-specific filter could be applied.
Typed Configuration
A type-specific configuration used to apply link rules to a referenced WorkItemWork Items in a description. TheThese rules set up are only usedapplied ifwhen a type-specific configuration has been set upexists for athe WorkItemWork whose description isItem being evaluated and a matching type-specific filter applies.
Rule
A rule contains the informationdefines which link role should be used under which conditions. ItEach containsrule specifies a link role, a target projectproject, and optionally target WorkItemWork Item types are specified on the left sideside. ofTarget theWork rule. The target WorkItemItem types can be left empty if the target type is not relevantrelevant. for that rule. In addition, theThe reference data types to the right of the rule for which the corresponding link role is to be usedapplies are also specified foron thesethe conditions.right side of the rule.
Rule Priority
The number on the leftmostleft side of each rule in the general configuration or in any of the typed configuration indicates the order in which eachrules ruleare isevaluated usedwhen to matchmatching a WorkItemWork referenceItem andreference. indicatesA whichlower linknumber rolemeans willhigher be used if the sprcific rule configuration applies.priority. You can change the order of thereorder rules by using the up and down buttons to switchmove with thea rule above andor below,below respectively.its neighbor.
Type Fallback
This configuration checks the "All Types" configuration as a fallback option. If it is not active, nothing is done if no rule applies, or links are removed that would otherwise match an "All Types" configuration.
Reserved Link Roles
A set of link roles used exclusively for this extension. All link roles listed in this section (automatically and manually set link roles) are matched with referenced WorkItems in the description of any WorkItem in the current project and handled according to the filters set above. Depending on whether a filter can be applied to referenced WorkItems and the associated link, the link will either be set, removed, or updated if changes need to be made.
It is strongly recommended to use only link roles that are used exclusively for this feature, since links are also removed when a reference is removed from or not found in a description.
Reference Data Type
Polarion differentiates between following reference data types with which workitems are embedded in a description.
-
Cross References:
Cross References are special Polarion hyperlinks used to quickly navigate to the referenced WorkItem within a LiveDoc. They can be identified by the dashed underline under the WorkItem reference and can contain the outline number, type icon, id or title of the referenced WorkItem. A user-defined label may also be specified. Clicking such a link will shift the LiveDoc view into position of the referenced WorkItem.
-
Live Links:
Live Links are special Polarion hyperlinks used to reference any WorkItem within a Polarion repository. It can contain the type icon, id or title of the referenced WorkItem. A user-defined label may also be specified. Clicking such a link will open the WorkItem in the Tracker view.
-
Hyperlinks:
Hyperlinks behave like commonly known hyperlinks. These hyperlinks are by default displayed with their URL or alternatively with a user-defined label. In order for the extension to work for these hyperlinks, their URL must contain the base.url value of the polarion.properties configuration (the URL to the same Polarion server). Clicking such a link will open the URL in the same or a new browser tab.
Backlink
Sets the link in the other Workitern and not the one that has the reference in the description, creating a backlink.
- If the created link on the other Workitem is deleted manually, the change cannot be detected by the Workiterm that references that Workiterm and the link will stay missing. This is a common technical hurdle arising from the use of backlinks. A regular update of all Workitems by the LS Job is therefore recommended.
- If the other Workitem is in a foreign project, conflicts may arise between the LS configuration of the foreign project and this LS configuration.
- There may also be problems with users who have different permissions in the respective projects that affect reading or writing Workiterns.
- A revision of a Workitem reference is not supported for backlinks and is therefore not created by the extension, as the resulting state would be invalid.
CAUTION:
The following lists caveats in the Links Synchronizer extension that are not implemented due to technical difficulties or may incur significant performance penalities.
- Validation of Link Synchronizer Configurations between 2 or more Projects.
There is no validation checking a Links Synchronizer configuration against a Links Synchronizer configuration of another project. This means that a rule can be set up that is complementary to another rule in a configuration of another project. For example, one project may be set up to create a link, while the other project containing the target WorkItem may attempt to delete that link. - Missing permissions to read a target WorkItem.
If a user does not have permission to read a WorkItem that is the target of a Reference or Link, the Links Synchronizer cannot read the required information (e.g. WorkItem Type) to check whether a link needs to be set or removed. Therefore, references and links to WorkItems that are not readable by the user are skipped. - Missing target WorkItem of a Link or Reference.
The Links Synchronizer treats missing or incorrect WorkItems as if the user had no permission to read the required information (see above). So if a target WorkItem of a Reference or Link does not exist, it will be skipped.
Configuration via Polarion Job
Configure the Job
Add the following scheduler job configuration via Global Administration > Scheduler and configure it as needed.
<!--
Processes workitems in all projects with an enabled UPPS!E Links Synchronizer configuration
to ensure that the workitem links align with the Links Synchronizer configuration.
Properties:
- userVaultKey:
The key identifying a user account in the Polarion user account vault.
The job will then execute as the specified user.
Ensure that this user has permission to modify workitems in all projects.
Possible values: Key of a user specified in the User Account Vault
Optional: If the job is executed manually through the Polarion Monitor interface.
Required: If the job is executed automatically via cron-job.
- batchSize:
The number of workitems that will be processed before a commit to the svn repository will occur.
Due to technical circumstances, committing a large amount of changes may render the system unstable or unusable.
A batch size is therefore specified that will divide workitems changed by the Links Synchronizer into commit groups
up to a maximum of ${batchSize} workitems.
Possible values: Any integer greater than 0
Optional: Default value is 500 workitems.
- showUpdatedWorkItems:
Specify whether to explicitly list all workitems in the job log by their id that were updated.
The job log will print a lucene query with all updated workitems so that you can list them in the workitem tracker.
Possible values: true or false
Optional: Default value is false.
-->
<job
disabled="true"
id="upps.links.synchronizer.job"
name="UPPS!E Links Synchronizer: Ensure sync"
scope="system">
<!-- <userVaultKey></userVaultKey> -->
<!-- <batchSize>500</batchSize> -->
<!-- <showUpdatedWorkItems>false</showUpdatedWorkItems> -->
</job>
Starting the Job
Once you have configured the LS job, it appears as an entry in the Monitor.
Start the LS job by checking the box next to it (1), then clicking Execute now (2). You can refresh the job view (3) to check the current status. For detailed information about the job process, view the log (4).
If the userVaultKey job property is not configured, the job runs as your currently logged-in user. Work item changes and the permissions required to make them are evaluated based on your user account and your permissions in each project.
After the job completes successfully, you can review the updated work items if the showUpdatedWorkItems property is enabled. If any work items were updated, the job log will contain the following entry:
This is a Lucene query that you can paste into the Polarion work item tracker search to list the updated work items in detail.










