How to cancel the change request and change task at a time using UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2019 06:30 AM
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.
- Labels:
-
Change Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2019 07:03 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2019 08:22 AM
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.