Database view

Ramel
Mega Guru

Hi Community,

 

I created a database view between sys_audit and change_request as we need to report on those change requests that has been extended [planned start/end date have been changed], however I cannot make it to work. Anyone who can advise what is the correct where clause for this database view?

db.PNG

 

Thanks in advance.

 

Regards,

Ramel

8 REPLIES 8

Hi @Ramel 

 

If the record is still in open state. try to change the second to capture teh change. As far i know, it work for new records. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

@Ramel - unfortunately I don't think there is a good way of creating metric instances for historical data. 

You may be able to create them using a script that would query the Audit table but once again, I wouldn't recommend querying the Audit table.

If it's not a 'must', I would just start collecting data from now on.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Ramel 

 

I tried at my end and same issue. I think best way is create metric (2 metrics - one for plan start and 2nd for plan end date) and you will get the change details.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

AndersBGS
Tera Patron
Tera Patron

Hi @Ramel ,

 

Have you considered creating a metric defintion for when end_date change, then incident metric defintion? 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/