Add expiration configuration at definition and global levels

Description

Currently, the approval expiration date can only be configured via parameterization at the work item/page level.
We want to extend this capability by allowing configuration of expiration settings at three levels:

  1. Global

  2. Definition

  3. Page (existing)

At page level the following options should be available:

  • Expires in – duration in the format: X HOUR / DAY / WEEK / MONTH / YEAR

  • Expires at – specific date and time (keep current format)

New parameter behavior options (for Global and Definition levels):

  • Optional – lower levels can override or ignore the setting

  • Required – lower levels must define a value

  • Custom – lower levels must define a value within a limit, with same format as defined for "Expires in"

Default expiration:

  • A default expiration value should be configurable at the Global and Definition level (default: 1 WEEK)

  • If Custom is selected, the default must be less than or equal to the configured max value

  • Default value will be used at lower levels can be changed there


  • If Global = Required, the Definition level must define expiration (cannot be Optional this option is disabled)

  • If any higher level ≠ Optional, the page level must provide a value (it cannot be unset)

  • When triggering approval via the "Start" button, the expiration with the default value is used