Ad Widget

Collapse

Automatic closure of a ticket after specific amount of time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Daywalker
    Junior Member
    • Nov 2018
    • 6

    #1

    Automatic closure of a ticket after specific amount of time

    Hi

    I got the request to automatically close a trigger after a specific amount of time.

    Setup:
    Item (String) that gets host name and an ID of an instance
    Trigger fires when the item value changes
    {item.diff()}=1

    So far so good, but now comes the complicated part (for me):
    Either close the trigger manually (easy)
    OR
    Close if the value didn't change again for the last 5minutes
    my idea was to define the following recovery expression
    {item.last(#5)}={item.last()}
    But that doesn't seem to work, and I have no idea why

    PS.: I know that if the values would flap the trigger might flap, but that's not part of the question of me atm. and could be bypassed by comparing all of the last n values against the last one.
Working...