Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Report for Tasks and Incidents within certain hours

Ivan Williams1
Kilo Contributor

I would like to create two reports; one for Incidents and one for Tasks. But, in particular, I would like to see on my report all Incidents and Tasks closed between 17:00 - 19:00, daily. 

But, my report does not seem to pull JUST that time frame, i.e. 17:00 - 19:00 daily. Any ideas...(see attached image)?

 

Thanks 

 

find_real_file.png

1 ACCEPTED SOLUTION

Because your trend conditions are wrong (sorry to be blunt).

find_real_file.png

Should read:
Closed ON OR AFTER 5pm AND
Closed ON OR BEFORE 7pm

The OR is messing you up (as well as the after/before without hte "on").  In this scenario 10 am would still succeed because it satisfies the before 7pm condition.  Paradoxically 7pm would fail because 7 is not before 7.  

 

You could also do...

Closed Trend IS 5 pm OR
Closed Trend IS 6 pm OR
Closed Trend IS 7pm

View solution in original post

12 REPLIES 12

Because your trend conditions are wrong (sorry to be blunt).

find_real_file.png

Should read:
Closed ON OR AFTER 5pm AND
Closed ON OR BEFORE 7pm

The OR is messing you up (as well as the after/before without hte "on").  In this scenario 10 am would still succeed because it satisfies the before 7pm condition.  Paradoxically 7pm would fail because 7 is not before 7.  

 

You could also do...

Closed Trend IS 5 pm OR
Closed Trend IS 6 pm OR
Closed Trend IS 7pm

Thanks for the response, and direct approach. 

I will follow your steps later, and confirm the outcome... 

No problem.  If you haven't got it working by Friday I'd be happy to jump on a webex with you.

Ivan Williams1
Kilo Contributor

Your tips helped! Thanks for all your assistance...

 

find_real_file.png

sayhai2sandeep
Tera Contributor

Hi Team 

I am looking for Incident count between 6am to 9am for specific dates

Screenshot 2023-10-22 at 12.48.09 AM.png

 but i could see tickets created after 9am as well 
can you please check and advice 

Screenshot 2023-10-22 at 12.49.20 AM.png

 Please suggest