- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2018 02:36 PM
how to remove "Request Approved" Stage from RITM which automatically comes from request workflow.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2018 09:56 AM
Yea, I made a mistake. I'd update the "Workflow-driven" Column Renderer by adding;
var currentChoice = choices.getChoice(0).getValue(); |
gs.log(choices.getChoice(0));
if(currentChoice == "approved" || currentChoice == "waiting_for_approval"){
choices.removeChoice(0);
}
This will remove these choices
So the first evaluate block should have this in it.
// get the api | |
var api = new SNC.RendererAPI('$[jvar_renderer]'); |
// build the full set of choices including subflows | |
// if we have an 'answer' global then it was populated | |
// by a getChoices bus-rule so use that otherwise | |
// use the renderer api to get them from the workflow | |
// generated choices in the context. | |
var choices = api.getAllWorkflowChoices(current, jelly.jvar_ref); | |
api.addIconsAndStatus(choices); |
var currentChoice = choices.getChoice(0).getValue();
gs.log(choices.getChoice(0));
if(currentChoice == "approved" || currentChoice == "waiting_for_approval"){
choices.removeChoice(0);
}
choices;
Then you'll have to change the renderer on the workflow to use "Workflow Driven"
Then it should look like this for items using that workflow;
Cart;
List;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2018 05:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2023 04:58 AM
Please explain how to implement this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2018 11:12 AM
This is working on native UI. Any idea how to do this on Service Portal?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2018 05:46 PM
I haven't looked into this. I'd open a new post about this thought to get some fresh eyes on it.