Workflow Validators

Kaamelot provides usefull Workflow Conditions

KeyDescription
commented-resolution-validatorValidates that the user has entered a Comment if Resolution is one of listed resolutions.
workable-issue-validatorValidates and Creates Worklog with attributes provided by WorklogCFType.
regexp-field-validatorValidates Field based on Regular Expressions.


Commented Resolution Validator

This validator verifies if a Comment has been entered for Resolution specified as requiring a comment. CommentOnResolutionValidator



It is possible to select with Resolution need a Comment. CommentOnResolutionValidator Edit



When specified, the selection of these resolutions will require a comment. CommentOnResolutionValidator View



The Validator configuration may be done in XML in Worflow descriptor as follow :

<validators>
	<validator type="class">
		<arg name="class.name">com.company.jira.workflow.validator.ResolutionCommentValidator</arg>
		<arg name="mandatoryWorklog">false</arg>
	</validator>
</validators>

Worklog Validator

The Worklog Validator is a extra way to enter Worklog during a Transition.

It is fully detailled in the WorklogCFType section.

Regular Expression Field Validator

It is able to scan all fields defined in the current Screen (Create, Edit or Workflow Transition). And it evaluate the respect of Regular Expression for Field based RegExpCFType. CommentOnResolutionValidator



<validators>
	<validator name="" type="class">
		<arg name="class.name">com.atlassian.jira.workflow.validator.RegExpCustomFieldValidator</arg>
	</validator>
</validators>