Important
Starting from version 2.0.0 only latest version of Polarion is supported. Right now it is Polarion 2512.
The latest version of the extension can be downloaded from the releases page and installed to Polarion instance without necessity to be compiled from the sources.
The extension should be copied to <polarion_home>/polarion/extensions/ch.sbb.polarion.extension.mailworkflow/eclipse/plugins and changes will take effect after Polarion restart.
Important
Do not forget to clear <polarion_home>/data/workspace/.config folder after extension installation/update to make it work properly.
This extension can be produced using maven:
mvn clean packageTo install the extension to Polarion ch.sbb.polarion.extension.mailworkflow-<version>.jar
should be copied to <polarion_home>/polarion/extensions/ch.sbb.polarion.extension.mailworkflow/eclipse/plugins
It can be done manually or automated using maven build:
mvn clean install -P install-to-local-polarionFor automated installation with maven env variable POLARION_HOME should be defined and point to folder where Polarion is installed.
Changes only take effect after restart of Polarion.
If the extension is installed, the workflow becomes available under the Admin Panel -> Workitems -> Workflow -> .. -> Functions -> mailWorkflowFunction
The extension can be configured with help of parameters (accessible via the pen next to the function name), here is a list of these parameters and their description:
| Parameter description | Parameter name | Required | Default value |
|---|---|---|---|
| Sender email address | sender |
yes | - |
WorkItem field containing recipient objects, which in their turn contain email. If custom field used, should contain Collection<IUser> |
recipientsField |
no | assigneesOther possible values: approvals, author, or any custom field ID |
| Subject to use in emails | emailSubject |
no | Deadline Reminder |
| WorkItem field containing reminder date value | dateField |
no | dueDate |
| WorkItem field containing event duration. Be aware that extension works correctly only with hour and minute values, usage of day values is discouraged. | eventDurationField |
no | - |
| Summary for generated calendar event | eventSummary |
no | WorkItem <WORKITEM ID> Deadline |
| Description for generated calendar event | eventDescription |
no | - If WorkItem's custom field described in function's attribute teamsMeetingUrlField is not empty, value Join Microsoft Teams Meeting: and meeting's URL will be added to custom event's description |
| Priority for generated calendar event. Numeric values - 0 (which means undefined priority) and then from 1 (max priority) to 9 (min priority) | eventPriority |
no | 0 |
Category for generated calendar event, like Green category |
eventCategory |
no | - |
Location for generated calendar event, like Room 404 |
eventLocation |
no | Microsoft Teams Meeting if WorkItem's custom field described in function's attribute teamsMeetingUrlField is not empty |
WorkItem field containing URL to appropriate Microsoft Teams meeting. Field must be of type String |
teamsMeetingUrlField |
no | - |
The name of the workflow is configured in src/META-INF/hivemodule.xml and can be changed there.
This extension provides REST API. OpenAPI Specification can be obtained here.