- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2016 10:06 AM
Assigned person not able to close problem record, in spite related problem tasks are closed complete.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2016 12:03 PM
Can you include current.setWorkflow(false); before current.update(); for testing purpose and check once.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2016 12:04 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2016 11:30 AM
u_problem_task is the right table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2016 11:08 AM
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');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2016 11:31 AM
I will try