Skip to end of banner
Go to start of banner

Date Expression Compare Precondition

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »


JSU for Jira Server/Data Center

This is the documentation for JSU for Jira Server/Data Center. If you are using JSU on Jira Cloud, see our JSU Cloud documentation.

Description

The 'Date Expression Compare' validator compares the value of a date field with a date expression, for example, date field must be more recent than actual date. If the check fails, no action will be performed.

Configuration

You must select the date field, the comparison condition, the date expression, and whether to include the time component for comparison.

Example

A workflow is configured so that the 'Resolve' transition has the 'Date Expression Compare' check where 'Due Date' > '5d'. If a user attempts to resolve an issue on this workflow, where the 'Due Date' is less than five days from now, the check will fail and no action will be performed.

Example configuration of the Date Expression Compare validator as described on this page.

Optional error message

You can define a custom error message for JSU validators to provide a clear explanation of the situation to your users. If you leave this field empty, a default error message from Jira will be displayed on validation errors. 

You can configure JSU’s preconditions in the following ways:

  • Negate the precondition result

  • Combine the result with the result of previous preconditions using the following options:

    • Discard the result of the previous precondition: Results of the previous preconditions are not taken into account

    • AND: All of the preconditions have to be true to execute the post function

    • OR: Only one of the preconditions has to be true to execute the post function

Example of a precondition configuration as described on this page.

Learn more in Workflow preconditions.

  • No labels