- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2017 11:14 AM
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.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2017 11:12 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2017 01:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2017 06:17 AM
Thank you Harman,
But did not work either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2017 07:26 AM
The assignment rules, are they on the request, Req Item or the task?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2017 10:59 AM
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.