Community
Thumb_workitem-hook-fieldsyntax

Work Item Field Syntax Save Hook

 This save hook for Work Items lets you define regular expressions for one or multiple fields that need to be fulfilled for the Work Item to be saved. Otherwise, a customizable error message is displayed.

Description

Are you tired of your users not following syntax rules or basic logic for the different fields of Work Items?

  • Ignoring CamelCase snake_case or similar rules?
  • Using titles that are too long or too short?
  • Using "forbidden" words in the description?
  • Entering infeasible values for field of type Integer, Float, or Currency?
  • Specifying start or due dates that are out of the project period?

Then this extension is the solution for you. For almost every field type, you can specify a regular expression (RegEx) that the content has to fulfill. If at least one field does not fulfill the RegEx, the user won't be able to save the Work Item but an optional error message will be displayed instead. That way they can instantly correct their mistake.

 

This Work Item save hook supports the following field types:

  • Text (rich and plain text will be converted to plain text)
  • String
  • Duration (rendered as e.g. 5d 2h or 42h depending on how the user enters the data)
  • Date (rendered as yyyy-MM-dd)
  • Date time (rendered as yyyy-MM-dd HH:mm)
  • Integer
  • Float
  • Currency (rendered with two decimal digits e.g. 22.00)
  • Time (rendered as HH:mm:ss.SSS)

 

The content of the fields will be converted to a String and evaluated against the regular expression.
Per the rule, you can specify an error message that will be displayed if the RegEx is not fulfilled. If no error message is specified, a default message containing the RegEx will be displayed.

 

What's New in Version 1.1.1

Updated October 2022

Changes for 1.1.0 - 1.1.1
- Made the Logger compatible with com.polarion.core.util.logging.Logger for Polarion 22 R2 (3.22.2)
- Code clean-up

Version 1.1.0
- Initial Release

 

Information

Vendor Kevin Schmiechen (Institute of Flight System Dynamics, Technical University of Munich)
Published Version 1.1.1 - October 2022
Categories
Price Free
Community Supported Extension This extension is not supported by Siemens PLM.
Requirements Work Item Action Interceptor Framework version 3.0.3 and later
Polarion version 2019 SR1 (3.19.1) and later
Last tested with Polarion 22 R2 (3.22.2)

Related Extensions