Direkt zum Hauptinhalt

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

grafik.png

Configuration

Introduction

  • 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

Links

LSSynchronizer customizationis takes placeconfigured separately for each individual Polarion project. Administration permission is required for doing this.required.

image.png

  1. Click the Administration button, navigate to the UPPS! Extensions entry, and open the drop-down menu.
    Eventually,
  2. click
  3. Click the Links Synchronizer button to open the customizationconfiguration page.

image.pngimage.png image.png

At the very top of the LS customizationconfiguration page you seewill find the following options and information:options:

image.pngimage.png

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.

image.png

  1. Scan for Workitem

    Include references in TestSteps Field.of WorkItems 
    Enabling this mayoption incurcauses athe significantextension performanceto penalityscan the Test Steps field for Work Item references in addition to the executiondescription field.

    Enabling this option may significantly impact the performance of the Links Synchronizer job.
    Thisjob, as Test Step content is dueprocessed toat the TestStepJava content currently being processed on the Java-levellevel, which takesis significantlyconsiderably moreslower timethan toSQL processprocessing.

    compared

    Include toreferences SQL.

  2. in
  3. Resolvedresolved WorkltemsWorkItems 
    By default, resolved Work Items are by default not processed.
     Enabling this option willcauses the extension to scan for WorkitemWork Item references in WorkltemsWork that areItems configured with a direct link rule and set the appropriate link role even if itthe Work Item is resolved,resolved (i.ee., has a resolution value set.
    Dueset).

    to

    Note: For performance reasons, permissionpermissions to modify WorkltemWork Item links are not checked.checked Enablewhen this option is enabled. Only enable this if you permit WorkltemWork Item links to be modified on resolved Workltems.

  4. Work
  5. ResolvedItems.

    Workitems

    Include references to resolved target WorkItems with backling configurtions 
    By default, resolved Work Items are by default not processed.
     Enabling this willoption causes the extension to scan for WorktternWork Item references in WorkitemsWork that areItems configured with a backlink rule and set the link role on the otherreferenced WorkiternWork Item even if it is resolved,resolved (i.ee., has a resolution value set.
    Dueset).

    to

    Note: For performance reasons, permissionpermissions to modify WorkitemWork Item links are not checked.checked Enablewhen this option is enabled. Only enable this if you permit WorkitemWork Item links to be modified on resolved Workitems.

  6. Work
Items.

image.png

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.

image.png

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.

image.png

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 

image.png

CAUTION:
The following lists caveats in the Links Synchronizer extension that are not implemented due to technical difficulties or may incur significant performance penalities.

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.

grafik.png

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).

grafik.png

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:

grafik.pngThis is a Lucene query that you can paste into the Polarion work item tracker search to list the updated work items in detail.

grafik.png