Highlighted
Visitor.
368 views

Query for view "open.time" > 2 hours

Hi,
i am trying to generate a view that shows me all tickets which are open for 1,2,3,4 hours.

At the moment my query is: 
flag=true and open.time>date(tod())-'00 02:00:00' and status~="Resolved" and security.id=.....

Somehow open.time>date(tod())-'00 02:00:00' does show Tickets which are open less than 2 hours.
What am i doing wrong here?

0 Likes
2 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: Query for view "open.time" > 2 hours

try this. . . (flag=true) and ( open.time>tod() - '02:00:00')

0 Likes
Highlighted
Visitor.

Re: Query for view "open.time" > 2 hours

Found this solution to work for 'over 2 hours' and 'from today' :

(flag=true) and ( open.time < tod()-'0 02:00:00' ) and (open.time > tod()-'1 00:00:00') and (status~="Resolved") and (security.id="XYXXXXX")

Threat can be closed .-)

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.