Lock down change states for users with change_management role

ebaileyybs
Tera Expert

Hi,

I am looking to lock down certain states available for selection within the change state field. Please see below options;

find_real_file.png

I would like for 'ITIL' users to only be able to select the following states;

Draft

Review

Closed

Users with the change_management role should be able to select any of the above states.

Any help with this would be greatly appreciate.d

Kind regards,

Emma

35 REPLIES 35

Harish Murikinati , It is definitely debatable . Because it mostly depends on the business needs. But what i personally feel is that its better to remove the option rather than disable is because users are not so used to the system and hence what is "obvious" for us is not always so obvious for them. So if there is an option and they cant use it it always raises concerns and confusion. What you don't see you don't want . That is the functional aspect.



Technically speaking also these functions are not performance critical, hence they can be used without any issues.



Just my thought


-Anurag

I agreed with you it may not cause performance issue . Just need to know which one is best .


Hi, I have added this script but I have the below error.



find_real_file.png



Do the 2 scripts need to work alongside each other or do I just need the new script you have provided?



Kind regards,
Emma


can you show the onchange script you just created



both scripts can work independently.


-Anurag

also, what are you actual values of the state choices


g_form.addOption('state','<actual Value>','<Display Value>'); --> this is how this function works


-Anurag