The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to cancel the change request and change task at a time using UI action

Community Alums
Not applicable

Hi Team,

i have requirement to cancel request along with change task ui using action.

In our change process, for canceling request and task , state should be closed and closer code should canceled.

I have created UI action Cancel button on change request:

function cancelTicket(){

var answer=confirm("Are you sure you want to cancel this record?");

if (answer==true)

{

gsftSubmit(null, g_form.getFormElement(), 'cancel_change1'); //MUST call the 'Action name' set in this UI Action

}

else

{

return false;

}

}

if(typeof window == 'undefined')

{
current.state = 140;

current.close_code= 'cancel';
current.close_notes='test';

current.update();

action.setRedirectURL(current);

gs.addInfoMessage('The current change request has been cancelled.');

}

With ctask i can able to close change request .

But i am unable to change tasks.

for ctask , i created BR.But it is not working.

Could someone help me to resolve this issue.

 

 

 

2 REPLIES 2

Michael Fry1
Kilo Patron

Your Change state should move to Canceled, then the Change Task will also move to Canceled out of the box. Not sure why you would move your change to Closed.

Community Alums
Not applicable

We have requirement like that from Client.In our change process we dont have out box cancel request button. 

 

now if cancel request , i am getting error like invalid update and please fill mandatory field fields Planned start date and Planned End date.