Not able to close problem records

Raviteja K
Tera Expert

Assigned person not able to   close problem record, in spite related problem tasks are closed complete.

1 ACCEPTED SOLUTION

Can you include current.setWorkflow(false); before current.update(); for testing purpose and check once.


View solution in original post

18 REPLIES 18

I suspect somewhere there is a script include or something (possibly TaskStateUtil) that is defining certain state numbers to be declared "inactive" states. By default this is 3, 4, and 7. Yours may have been tweaked to recognize 6 as an inactive state.



This is going to take some more digging.


u_problem_task is the right table


Two things



First, I'd change the second query line from



ptasks.addQuery('u_problem_task_state', 1);



to



ptasks.addQuery('active', true); // Assuming your table u_problem task is extended from task or problem_task.



Second, for testing, put the following line right after your ptasks.query() line



gs.addInfoMessage(ptasks.getRowCount() + ' open records found');


I will try