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

It sounds like the script that is doing the checking isn't checking right. I'd start looking there to see if it really is counting all the closed issues (or better yet open child issue count == 0).


find_real_file.png


Can you place action.setRedirectURL(current) to be in the last line.


Also is u_problem_task the right table?


Also can you please paste and copy code here so that it is easy for us to test on our instance.


in the last line of code, else part


action.setRedirectURL(current);


current.problem_state = '5'


current.work_notes = 'Close Complete'


current.update();



In this code current.problem_state = '6' represents Rejected state, if I change the value to current.problem_state = '6' and run the script is it working. I tried with current.problem_state = '7' and current.problem_state = '8' they are working. Only problem with the current.problem_state = '5'