How to auto assign a catalog task to the same person in also subsequent catalog tasks?

cicgordy
Tera Guru

Hi all,

 

If I assign a catalog task to someone with the "assigned to field", how can I automatically reassign subsequent catalog tasks to the same person??

 

Thanks

1 ACCEPTED SOLUTION

Hello @cicgordy ,

In that case if you want to have same assigned to for some of your predefined tasks then you can add query based on Short Description field in the script which will get only those tasks and update them.
For ex. taskGr.addQuery("short_description","IN","Provide requested service,Assess or Scope Task");
This will select the tasks with short description "Provide requested service" or "Assess or Scope Task". 

However, if you are using manual task creation with random short description each time then this might not work for you, as there's no other field on Task record to distinguish it.

Regards,

Shubham

View solution in original post

7 REPLIES 7

mattystern
Kilo Sage

Hi cicgordy,

 

I would suggest just CTR+Clicking or CTR+Shift+Down Arrow to select records from the list view on the RITM: 

Single record selected:

mattystern_0-1675952197241.png

Multiple records:

mattystern_1-1675952216418.png

Shows how many records updated:

mattystern_2-1675952252639.png

You could also do this via business rule, but this would have a much larger effect on the requests. 

Hi @mattystern ,

 

That is the manual way. I needed to do that automatically 

Shubham_Shinde
Giga Guru

Hello @cicgordy ,

You can create a Business Rule on sc_task table with conditions to run when the assigned_to changes and for any particular catalog item if you want to run it for, and in script you can just query the sc_task table for the same request item record as of the current one and then set the assigned_to field value of all of them to current.assigned_to.
Please find below snapshots for your reference:

ShubhamShinde1_0-1675953967042.pngShubhamShinde1_1-1675953986804.png


Mark this comment as helpful/correct if it helps you!
Regards,

Shubham



Hi @Shubham_Shinde ,

Thanks a lot, that's really helpful. Can this be done only for certain tasks and not for all? 

What should I edit in the condition/script to make that happen? 

 

Thanks