my closed tasks are re-open by system need to stop this issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 01:14 PM
Hi ,
My closed service catalog tasks it automatically reopened by system and I have attached my workflow screen shot here.
where to check and how to stop this task creation,Please check and help me to resolve this issue....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 01:21 PM
Hi Anand,
Please provide more info :
Take one these tasks, open the attached workflow (ui action in the bottom), take a screenshot and post it here.
Did you check Business Rules agains this table and any parent table ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 01:42 PM
Hi Hamza,
Thanks for Quick reply...
Here I attached all the details please check it and assist me
Workflow history
No UI policy in the bottom
Condition : current.state.changesTo(6)||current.state.changesTo(3)||current.state.changesTo(7)||current.state.changesTo(8)
Script :
function onBefore(current, previous) {
//This function will be automatically called when this rule is processed.
var t=new GlideRecord('sc_task');
t.addEncodedQuery('request_item.number='+current.number+'^stateNOT IN3,4,7,8');
t.query();
if(t.hasNext()) {
var msg= gs.getMessage('All active and pending tasks must be closed or skipped '+
'before request may be resolved');
gs.addInfoMessage(msg);
current.state.setError(msg);
current.setAbortAction(true);
current.state = previous.state;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 01:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 02:07 PM
Why there are 4 workflow that run against this Task ?
What are the state labels of 3, 6, 7 and 8 for requested items and 3,4, 5 and 7 for Catalog Tasks ?
What does contain the "IF" (Stage resolved - Are all tasks closed ?)