Close incident after 7 days of being resolved using flow designer.

bgulshan
Tera Contributor

I am trying relative condition, and it is not working, completely skipping the condition

Please suggest a solution which does not include wait for condition.

 

 

13 REPLIES 13

Hi @Shivalika , 

Tried this resolution, however it is not working still skipping this condition

Hello @bgulshan 

 

Just referred your screenshot, your conditions are wrong, you are applying both the conditions - "state canges to resolved" and "resolved is 7 days ago" - how can this co-exist? 

 

Either it will be now or some time before 7 days ago right - I hope you understand this logic. 

 

So, add condiitons

 

State is Resolved

AND

Resolved is RELATive BEFORE 7 days ago

AND 

priority is critical 

and OTHER Filters

 

But don't do it changes to RESOLVED

 

Also this will work for the existing records which have been resolved before 7 days ago. To test this better, change it to minutes or something. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

 

 

Hello @bgulshan 

 

Please confirm if you checked my latest answer. Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for my efforts and also it can move from unsolved bucket to solved bucket. 

 

Regards, 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeE

Rajesh_Bhise
Tera Guru

Hello @bgulshan,

 

First of all, why are you closing incidents manually by creating custom configuration ?

I am requesting you not to do this because, ServiceNow has already provided this feature of auto-closing resolved incidents after 7 days of resolution date. Below are the incident properties responsible for the same.

 

Rajesh_Bhise_0-1744174956881.png

 

Please check if these properties have same values in your instance, if yes them I would suggest to ignore this custom configuration. If you still need it then Please disable OOTB configuration first and then try your custom flow for the same. Also filter conditions suggested by @Shivalika are correct for your requirement.

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Thank You,

Rajesh Bhise