Relationship between CI in Change Request and Change Task

Arun33
Tera Expert

Hi,

 

I have one requirement,

Popup message when user tried to delete CI from Affected CI list which is configured as Primary CI in any of the OPEN change task then below confirmation box should appear with message as :

 

Selected CI <<name of the CI which is getting deleted>> cannot be removed as it is currently being used as the primary CI in related open Change Task.

Please click YES to proceed to update the Change Task Primary CI with Change Request primary CI.

 

If user clicks on Yes, update the related change tasks by changing primary CI same as Change Primary CI.

If user clicks on Cancel, DO nothing.

 

below are the business rule but it's not showing Popup message. can anyone plz help me on this.

 

Arun33_0-1670910940274.png

Arun33_2-1670910985974.png

 

Thanks

 

 

2 REPLIES 2

newhand
Mega Sage

HI  @Arun33 

BR runs on the server side .

So the "comifrm" function can't do your expered action....

 

You should write the scripts in the delete ui action (client).

 

 

 

 

Please mark my answer as correct and helpful based on Impact.

Mahendra RC
Mega Sage

Hello @Arun33 

You cannot have confirmation popup in BR as BR is executed just before the record is getting deleted or just after the record is deleted from respective table. Since this is executed at server side you cannot make the delete operations to wait for user's confirmation. Hence you need to use UI action.

You need to modify the existing delete UI action that you are using to delete the CI or you may need to create a new UI action. I would suggest to create a new UI action with the same action name that currently you are using to delete the CI record from Affected CI related list.