Date Comparison Validator

This page is about JEP for Jira DC. Using Cloud? Click here.

This validator allows issues that match the date comparison.

Steps

  1. Open the workflow where you want to add the condition and locate the transition you want.

  2. Switch to the Validators tab.

  3. Click the Add validator button.

  4. Select JEP - Date Comparison Validator and click the Add button.

  5. Fill in the form.

    • Date field: Select the date or datetime field to use. This can be either a Jira default field or a custom field.

    • Condition: Choose the comparison condition: less than, less than or equals, equals, not equals, greater than, greater than, or equals.

    • Compare with: Enter the value to compare the selected field with:

      • Hard-coded date/datetime:

        • Use the format yyyy-mm-dd for dates. Example: 2019-09-27.

        • Use the format yyyy-mm-dd hh:mm for datetimes. Example: 2019-09-27 13:45.

      • Relative time string: Specify a time offset. Examples: 5d 4h or 6h 30m.

    • Skip time part: Enable this option if you want to compare only the date portion and ignore the time. When enabled, the time portion will default to 00:00:00.

    • Message: Customize the error message that will appear if the condition is not met.

  6. Click the Add button.

  7. Publish the workflow.

The validator will now be added to the transition.