How to create a change task automatically based on particular Category on Change Request form?

Sasha8
Kilo Contributor

How to create a change task automatically when a particular category is selected on Change Request form?

1 ACCEPTED SOLUTION

Hi,

Go to WF editor.. open your change request workflow depending on type. 

In that depending on your process.. drag if condition activity. In that add code like below

answer = ifScript();

function ifScript()
{

  if(current.category == "YOUR CATEGORY"){
  return 'yes';
  }else{
  return 'no';
  }
}

Then for yes.. drag create task activity. 

Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.

Regards,
Asif
2020 ServiceNow Community MVP

View solution in original post

8 REPLIES 8

sachin_namjoshi
Kilo Patron
Kilo Patron

You should configure workflow on change request table to create change task based on subcategory.

 

Regards,

Sachin

Hi Sachin, 

 

Can you please help me with the workflow on Change request table?

 

Thanks,

Sasha

Hi,

Go to WF editor.. open your change request workflow depending on type. 

In that depending on your process.. drag if condition activity. In that add code like below

answer = ifScript();

function ifScript()
{

  if(current.category == "YOUR CATEGORY"){
  return 'yes';
  }else{
  return 'no';
  }
}

Then for yes.. drag create task activity. 

Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.

Regards,
Asif
2020 ServiceNow Community MVP

Use Workflow Editor to create workflow and use below activity in workflow to create change task

 

find_real_file.png

 

 

Regards,

Sachin