handlers.due_date_tagger
Checks if a date is about to expire (e.g. a validity field). If the date is closer than n days, a tag is assigned, so that the fact sheet can be automatically included in a survey, or other measures can be taken, like breaking the quality seal.
Configuration:
field
: The date field
days
: Number of days
tag_group
: The tag group of the tag to be assigned
tag_name
: The tag to be assigned
config_template =
{'field': 'security_assessment_validity', 'days': 30, 'tag_group': 'Security', 'tag_name': 'Assessment validity will expire soon'}