RITM & Task state is moving to "Closed Incomplete" when actually saving it as "Closed Complete"

BanuMahalakshmi
Tera Contributor

Hi,

 

Approvals No longer required. Task has been automatically. when i try to close the task, the RITM and task state automatically moves to "Closed Incomplete" though I am marking it as Closed Complete , once the form reloads it moving to "closed incomplete". Not sure why.

BanuMahalakshmi_0-1734537232990.png

Below is the script which i used to capture state value:

function ifScript() {
    gs.log("check task state value="+workflow.scratchpad.state);
    if (workflow.scratchpad.state == '3') {
        return 'yes';
    }
    else{
        if(workflow.scratchpad.state == '4'){
            return 'no';
        }
    }

I printed the state value into system log, state value showing 3 only but the workflow not executed close completed condition, closed incompleted condition was executed. pls assist me to find issue. Thanks.

2 REPLIES 2

Gangadhar Ravi
Giga Sage
Giga Sage

check if there is any Business rules causing this issue.

 

Please mark my answer correct and helpful if this works for you.

Anand Kumar P
Giga Patron
Giga Patron

Hi @BanuMahalakshmi ,

 

Check if any active Business rule/UI policy / client script setting to closed incomplete.

 

Check if wait for condition in any activity , if all tasks close then it will close completed else close incomplete.

 

If my response helped, please mark it as the accepted solution and give a thumbs up👍.
Thanks,
Anand