How to make editable variables on sc_req_item for specific role of people and after changing the value it become mandatory

Rajababu
Giga Guru

Hi ,

Can any any one helpme out to make variable only specific role of people like "zym" only two variables like "Name" and "System Info" editable.

For same variable we already running  ui policy running when user  going to create the create then it hide the field and after creation of RITM it got reflected .

7 REPLIES 7

Kamal17
Kilo Sage

Hi Rajababu,

 

Probably you can create an onload catalog ui policy script/catalog client script to include role check.

Eg:

if(g_user.hasRole('abc_role'){

//Make the variables editable

}else{

//Make the variables read-only

}

 

Mark Correct if this solves your issue. Hit Like/Helpful based on the impact.

 

Regards,

Udhay

Hi Uday ,

 

It partially worked .

 

When because specific group of people make edit on it .

 

But editing that value reflect to end user as read only mode.

 

It doesnt happened I tried many times by client and ui also.

 

Thanks,

 

Hi Uday ,

 

It's not reflecting after make changes on it ,end user not able see..

uday can you provide script ..