Execution Plan Tasks - how to set up 'task type'?

Aakanksha Kotti
Tera Contributor

Hi All,

I am currently working on the execution plan tasks for the change request table(Parent Table) & change task(task table).

The task was created successfully in the change record. the only issue was the task that was created, it was created with 'State = Pending' & also we need to assign the Task (change_task_type) field to a defined value while creating the tasks using execution plan tasks.

Can you help me with how i can set the State to Open whenever a change task is created and the task type to a certain value when it is created by using the execution plan tasks?

 

Can we use the 'Generation Script' for this? Or there is another way to do this?

 

Thanks in advance.

 

 

UPDATE - The issue is now resolved by applying the business rule on the change table.

4 REPLIES 4

Astik Thombare
Tera Sage

Hi @Aakanksha Kotti ,

 

Please check below documentation it will be helpful -

 

https://docs.servicenow.com/bundle/washingtondc-servicenow-platform/page/product/service-catalog-man...

            

If my reply helped with your issue please mark helpful 👍 and correct ✔️ if your issue is resolved.

                             By doing so you help other community members find resolved questions which may relate to an issue they're having

 

 

Thanks,

Astik

 

Hi @Astik Thombare ,

Thank you for your response, but unfortunately this does not resolve my issue.

Hello @Aakanksha Kotti ,

 

Yes, in order to change the "state," you must use a create script. However, in the case of "Assigned to," this may be done directly with the aid of fields;

 

please refer to the screenshot below for guidance.

I've created a task that is assigning a task to Abel tuter . you can also make it dynamic by using generation script .

 

In case of changing 'state' you need to write below generation script 

 

 

 

current.state = 2 ; /// changing state of task to 'in progress '

 

 

 

AstikThombare_0-1713280276676.png

Once Change is created below task will be created with defined fields 

 

AstikThombare_1-1713280367279.png

 

 

  If my reply helped with your issue please mark helpful 👍 and correct ✔️ if your issue is resolved.

 

                         By doing so you help other community members find resolved questions which may relate to an issue they're having

 

 

Thanks,

Astik

I am having the issue with the 'Task Type'. 

The assigned to field is not an issue in this scenario.

Thanks for your help.