Dates Compare Condition

Allows transition if two dates meet criteria, compares a date field with a reference date and optionally an offset, where the reference can be either the current date or another date field.

Settings

All Jira Date and Date Time fields, including custom fields, are available for comparison. Additionally, the now() option is available in Date reference, which represents the current date or time.

Depending on the Compare including time part checkbox, fields will be converted to either date or datetime format. If the field doesn't have a time part, T00:00:00+00:00 will be used (UTC timezone).

Entering offset

You can enter an offset in weeks (w), days (d), hours (h), and minutes (m), which will be added to the date. Use - as a prefix for subtraction.

Time units will be used only if the Compare including time part setting is checked.

Use cases

Allow transition if difference between two fields is less than 45m
  1. In Date field: select Stop time

  2. In Operator: select <

  3. In Date reference: Start time

  4. In Offset: set +45m

  5. Check: Compare including time part

Verify that 'Due date' is not less than 5 days from now
  1. In Date field: select Due date

  2. In Operator: select >=

  3. In Date reference: now()

  4. In Offset: set 5d

Allow transition only if the 'Actual end' date occurs before the 'Planned end' date
  1. In Date field: select Actual end

  2. In Operator: select <

  3. In Date reference: select Planned end

Prevent transition until the specified change window opens, as indicated by the 'Start date' field.
  1. In Date field: select Start date

  2. In Operator: select <=

  3. In Date reference: select now()

Allow transition only if 'Due date' is not in the past
  1. In Date field: select Due date

  2. In Operator: select >=

  3. In Date reference: now()

Last updated