Creat Tasks on Closed/Resolved Incidents

johnfeist
Mega Sage
Mega Sage

We recently discovered that tasks can be added to an incident that has been resolved or closed.   To me that is illogical.   Since incident_task is a related list, how do I prevent the creation of those new tasks?

Thanks in advance for any suggestions.

John

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster
1 ACCEPTED SOLUTION

Please see below screen shot. It is working for me. What is the column name of your incident state(we have state and incident_state columns on incident from . Just curious which one you are using)



find_real_file.png


View solution in original post

13 REPLIES 13

Thanks


Can you please add log statement to print parent.state value?


This will help you to troubleshoot issue.



Regards,


Sachin


Thank you Sachin.   I added two lines:



gs.warn("In List control");


gs.warn("state is " + parent.state);


if (parent.state == 6 || parent.state == 7) ...



I'm in the dev instance so I figured warnings would be easier to find.   I went to the logs and found nothing.



While I'm far from the most experienced user, I've been on the platform long enough to know how to write log statements and find the results.   I've opened a HI ticket because there are too many things "not right".



Best regards,



John


Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

Hi Sachin,



Sorry for the delay in getting back.   I was on a call with SN support about the missing --None--.   It turns out the first option had a value of NULL_OVERRIDE which was killing the --None-- option.   Once that got fixed, things started working as I want, even without checking the No new button box!



Thanks again for all your help.



John


Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster