Hi everyone!
I need to hide or denied to set field status "Resolved" for one role and one template.
Case: Our developers team must set status "Testing" after done the request. Now they also can choose status "Resolved". Need this feature to one template "development".
I try to make it different ways:
1) On form load, execute script:
if( ($CS.hasRole("SD_Developer"))){
$CS.removeOptions("STATUS",["Sprint", "New", "Approve","In next sprint","Closed","Denied","Resolved","RFC"]);
}
It's working only for main frame of request, on Resolution tab there is all hided statuses.
2) On form submit, execute script:
if(($CS.hasRole("SD_Developer"))){
alert('Must set Testing status first');
$CS.setText("STATUS","Testing");
$CS.stopFormSubmission();
}
Not working in resolution tab.