How To populate RITM assignment_group based on sctask assignment group field?

karishmashaik
Kilo Expert

Hi all,

I have small Requirement, How To populate RITM assignment group based on catalog task assignment group field,

same groups populate in Ritm based on catalog task assignment group field.

please Help me on this

Thanks,

Karishma.

 

1 ACCEPTED SOLUTION

Shakeel Shaik
Giga Sage
Giga Sage

Hi @karishmashaik ,

 

 You want to populate same catalog task assignment group in RITM assignment Group??

if Yess, then 

Create BR

Script:

(function executeRule(current, previous /*null when async*/ ) {

    var ritm = new GlideRecord('sc_req_item');
    ritm.addQuery('sys_id', current.request_item);
    ritm.query();
    if (ritm.next()) {
        ritm.assignment_group = current.assignment_group; 
		ritm.update();
    }


})(current, previous);

 

If my response is helpful, then Please mark as Correct Answer/Helpful.

Please check and let us know.

Thanks 🙂

Shakeel Shaik.

 

Thanks,
Shakeel Shaik 🙂

View solution in original post

9 REPLIES 9

sachin_namjoshi
Kilo Patron
Kilo Patron

This is a very counterintuitive requirement. What's your business use case?

RITM is like a parent and catalog tasks may be assigned to different assignment groups based on your workflow, flow.

 

Regards,

Sachin

Hi sachin.namjoshi,

 if itil user select the assignment group in catalog task that value should populate in Ritm assignment group it should every catalog item.

You can configure a flow designer flow on sc_task table to copy assignment group from sc_task to sc_req_item record.

 

Regards,

Sachin

Hello Sachin,

Could you please please tell me how we can copy the assignment group from sc task to sc_req_item?