How to set priority of RITM based on the urgency from RITM form?

swathigangadhar
Tera Expert

How to set priority of RITM based on the urgency from RITM form?

9 REPLIES 9

vinothkumar
Tera Guru

Hi Swathi,



May I know how you are filling the urgency in the RITM, is it manually done after the record is submitted.



You can have a simple if condition in the workflow to update the priority values



if(current.urgency == 'high')


{


current.priority = value;


}


I have urgency variable in Item form, but i dont know how to link these two. You tell me how to do that.


Hi swathi


Try this onChange   field is urgency



function onChange(control, oldValue, newValue, isLoading, isTemplate) {


      if (isLoading || newValue === '') {


              return;


      }


      var urgency=g_form.getValue('urgency');


      if(urgency=='1'){


              g_form.setValue('priority','1');


              alert('priority is 1');


             


      }


    var urgency=g_form.getValue('urgency');


      if(urgency=='2'){


              g_form.setValue('priority','2');


              alert('priority is 1');



             


      }


    var urgency=g_form.getValue('urgency');


      if(urgency=='3'){


              g_form.setValue('priority','3');


              alert('priority is 3');



}}


I hope this will helpful to u


You can use current.variables.varaible_name to get the variable value from form!