Bulk Reassignment of Work Items to a New Owner

Hi All,

We have a requirement to forward or reassign the owner of existing work items in bulk.

We have already exported the list of work items based on the current owner details.

The requirement is to identify all work items currently owned by James and forward (or reassign) them to John.

What would be the best approach to achieve this in bulk?

Hi @bhoyars_1 ,

Kindly use the rule to get the work items of the owner James and set the new owner as John in the rule. Hope it will works.

Thank you,

Harikrishna

@bhoyars_1 If workitems are directly assign to James, then you need to use rules to get it done. If it is actually assigned to workgroup, just remove James from the wG and add John.. it should automatically remove it from James queue.

sample rule in case it is assigned to identities:

  WorkItem wi = context.getObjectById(WorkItem.class,"workitemid");
  wi.setOwner(context.getObjectByName(Identity.class, "John"));
  context.saveObject(wi);
  context.commitTransaction();

Have this code snippet running inside a iterator/loop to cover all your inscoped workitems.

Hi @bhoyars_1

You can create a Rule Runner Task.
Add the logic to filter all the workitems of a specific owner and then assign the new owner for each of those workitems.

Thanks