How I can Trigger assignment rules after workflow approval?

guill3
Giga Contributor

Hello,

I have a requirement to add an approval workflow to an specific catalog items, these items were created with no workflows and it only contains assignment rules, these are triggered after catalog item creation, I had applied a basic manager approval workflow which is working as required, however Assignment rules are triggered regardless the approval result, we would like to know if there a way to trigger them only after approval is granted, e.g approval state = approved.

I had tried to modify the Assignment rule script and add a condition like :

if (current.approval.changesTo('approved') ){

current.assignment_group.setDisplayValue("Network Agile Team");

}

But this did not work, please advise.

1 ACCEPTED SOLUTION

If you are using the workflow for the catalog item, it's running on the sc_rec_item table. Can you check if your request is getting approved using a different workflow, in this case, it might be the generic "Service Catalog Request" workflow?



If that's the case, then your assignment rules are working as intended as the request is approved and getting assigned to a group even though the req item still needs an approval.


View solution in original post

5 REPLIES 5

harmangill02
Mega Expert

Guillermo,



Set the conditions under "Applies to" for the assignment rule to run when the approval is approved and see if that works.



find_real_file.png


Thank you Harman,



But did not work either.


The assignment rules, are they on the request, Req Item or the task?


sc_request, but I belive becuase there are so many, at least one of them is conflicting with the one I'm trying to test.