- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 11:46 AM
Hello,
I am trying to fix a problem a user is currently having but am unable to figure out the issue. When I change the state of a RITM to "Closed Complete", the REQ automatically gets updated to "Closed Complete". When I try to cancel a RITM on the Portal, the REQ state does not change and stays in the "Approved" request state. There is an OOB BR that handles the REQ when the RITM's status gets modified "Close Parent if Required". How can I modify the OOB BR to change the state of the REQ to match the RITM if the RITM been cancelled?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2020 08:51 PM
I was able to figure out what was going on. I soon found out that we did not want to modify the OOB functionality of the BR's or workflows, so I modified our custom workflow. The code you provided fixed the issue with the addition of modifying another OOB BR on the request table. THanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2020 12:33 PM
Hi,
In that business rule...there is conditional statements that look for the stage of that item. Are you using custom stages?
current.stage.changes() && (current.stage=='complete' || current.stage=='Request Cancelled' || current.stage == "closed_incomplete" || current.stage=="closed_skipped")
So as you can see here, this BR only executes the associated code to close out parent if it meets the criteria above. If it doesn't...it doesn't run.
You'd want to adjust that accordingly.
I don't think the Portal is specific to this.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2020 05:47 AM
You were right about the Service Portal. The functionality works fine when the RITM is put into the "Closed Complete" status. The REQ gets updated. Passing "fulfillment" stage to the condition in the BR doesn't seem like the right way, or is it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2020 05:53 AM
Hi,
Yea, I wouldn't want to change it to also allow fulfillment, but you could have other workflows with stages after this and instead the BR would just end it there.
You'd want to go with the stages above, if possible. Or at the very least, add a custom one that makes sense for your organization.
I'm attaching a basic OOB request item workflow for you to review. You'll see what they did for the stages to give you an idea. Click the picture to see it bigger or right-click and choose open in new window.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2020 07:14 AM