Order change tasks

cstangoe
Mega Guru

Hi All.

 

I have a number of change tasks which get triggered at the same time via a workflow but I am looking for the tasks to be in a certain order.

 

cstangoe_0-1680130056534.png

 

 

Example. As you can see the workflow is creating Post implementation testing with the lowest change task number and so on. I am wanting 'Implement' to be 1st, then 'Post implementation testing', then last would be the 'Post implementation review' task. I am not wanting the change tasks to be activated in a sequential order.

 

I have noticed on the change task form there is a Order variable but I cant seem to get this to populate via the workflow as you are unable to add 'Order' in the Populate task variables section of Create Task.

 

Is there any way to achieve?

 

 

 

 

 

3 REPLIES 3

Punit S
Giga Guru

Yes, it is possible to set the order of the change tasks created via workflow in ServiceNow. One way to achieve this is by using the "Order" variable on the Change Task form.

To do this, you can add a "Set Values" action in your workflow after the "Create Task" action for each change task. In the "Set Values" action, set the "Order" variable to a unique value for each change task. For example, you can set the "Order" value to 1 for the "Implement" task, 2 for the "Post implementation testing" task, and 3 for the "Post implementation review" task.

Once the "Order" variable is set for each change task, you can use the "Order" field on the Change Task list to sort the tasks in the desired order. You can also use this field in filters or reports to display the tasks in a specific order.

Note that the "Order" variable may not be visible by default on the Change Task form, so you may need to add it to the form layout before using it in your workflow.

 

Please mark my answer correct/helpful in case it adds value and moves you a step closer to your desired ServiceNow solution goal. 

Thanks,
Punit

Hi Punit,

 

I have added the tasks with the order, but when I create a standard change the tasks do not sort by order as well the order field is blank.

 

thanks

nadia

sushantmalsure
Mega Sage
Mega Sage

I think this can be handled in workflow itself when these tasks are getting created.

Mind sharing the workflow screenshot of these 3 task creation activity and how are they linked with each other? instead of parallel creation of tasks I would suggest sequential creation . So screenshot can help to explain it better

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure