How to hide "cancel change" button in workspace while change in implement state ?

Virendra K
Kilo Sage

HI All,

Requirement is to hide "Cancel Change" button(snap) when change request in Implement state. Already there is condition mentioned but not sure how to add that condition within in it?

What is the purpose of "(RP.getReferringURL().indexOf('/now/boc_uib/')" ? why we are using it ?

 

Condition is,

(current.u_category_type=="Networks")&&(RP.getReferringURL().indexOf('/now/boc_uib/') > -1)&&(gs.hasRole('itil') && (current.state == -3 || current.state == -4 || current.state == -5 || current.state == 29))&& ((gs.hasRole('change_manager') ||(gs.hasRole('change_jr_manager')))&& current.state == -2)

 

VirendraK_0-1731326174205.png

 

 

Regards,

Virendra

5 REPLIES 5

If the above mentioned condition is working in platorm side but not in the workspace side then this may not be working, you may need to look for alternate solution. you can create separate UI action.

 

In this case, this condition might be checking if the user is on this specific workspace and this, it is validating using this rp.getreferringurl method. so the configured condition is specifically set for this workspace.