
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018 02:49 PM
need a simple solution to edit the first stage label of a requested item from "request approved" to "request submitted".
this would be both in the requested item list view as well as the portal view.
this is driving our customer nuts and I haven't been able to find a simple solution to fix this.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 09:46 AM
This is what I've concluded after some digging:
SN automatically adds an initial stage called "request approved" that's not part of any stages that we needed or cared about, in fact, it just added confusion and frustration for our customer.
So there were a few posts that helped.
I will reference them and the steps taken.
Its also apparent that this type of update would need to be reviewed for each SN version or patch update to make sure it still works correctly.
This is for SN Version Kingston Patch 6.
Our customer told us that they wouldn't go live unless we somehow fixed this!!
So the pressure was on!
RITM list view:
reference:
https://community.servicenow.com/community?id=community_question&sys_id=ec09cba1db5cdbc01dcaf3231f9619ea
steps i took are:
- Elevate your security privileges to "security admin".
- Go to column_renderer.list in your left hand navigation.
- Right Click on the list header and select "Configure > Security Rules".
- Find the "column_renderer" -- "write" and "create" rules, and add the role of "Admin" to both of those ACLs. (ServiceNow doesn't want you modifying this table, so it's locked down to maint. You have to open it up so you can change things.)
- Go back to column_renderer.list and open the record for "Workflow-driven".
- In the first "<g:evaluate>" block, right before the line that reads "choices;" (line 20), insert these two lines and save the record: choices.removeChoice(0); (slightly different for this step that what I've referenced)
Service Portal view:
reference:
https://community.servicenow.com/community?id=community_question&sys_id=02be8761dbdcdbc01dcaf3231f961949
steps that I took are:
1) Go to https://YOURINSTANTCE.service-now.com/sp_ng_template.do?sys_id=c39057d0c73003002899a55e6c97633b
2) Comment out the html the existing html and copy and paste the following code:
<div ng-if="data.choiceList.length > 0" class="requested-items-flex-container">
<button class="flex-item" role="button" ng-click="toggle($event, item)" aria-expanded="{{data.expand}}" aria-label="${collapse state of request}">
<img ng-if="!data.expand" src="images/filter_hide16.gifx" alt="${Expand state of request}"/>
<img ng-if="data.expand" src="images/filter_reveal16.gifx" alt="${Expand state of request}"/>
</button>
<div class="flex-item" ng-if="!data.expand">
<span ng-repeat="stage in data.choiceList.slice(1)">
<img id="stage.{{stage.value}}" title="{{stage.displayValue}}"
class="nopadding" src="images/heisenberg_icons/stage_icons/{{stage.image}}" alt="{{stage.displayValue}}" aria-hidden="true"/>
</span>
</div>
<div class="flex-item" ng-if="data.expand">
<div ng-repeat="stage in data.choiceList.slice(1)">
<div class="stage-on">
<img id="stage.{{stage.value}}" title="{{stage.displayValue}}"
class="nopadding" src="images/heisenberg_icons/stage_icons/{{stage.image}}" alt="{{stage.displayValue}}" aria-hidden="true"/>
<span aria-hidden="true">{{stage.displayValue}}</span>
</div>
</div>
</div>
</div>
Also this may be helpful to some:
this appeared to be a solution for earlier version of SN.
if fact it appears that SN offered this as a solution!!
references:
https://old.wiki/index.php/WorkflowStages
https://community.servicenow.com/community?id=community_question&sys_id=02be8761dbdcdbc01dcaf3231f961949
steps are:
in Business Rules > sc_req_item_stageGetChoices
add: wfs.ignoreApproval();
after: var wfs = new WorkflowStages();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018 02:55 PM
In your workflow. check out the workflow and click on Worjflow Actions->Edit Stages. Changing the name there for the stage should fix it for your item.
Now you may have lot of item with same stages. If the above works, you may go to wf_stage table and search for such stages and just change the name and keep the value as it is
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018 04:17 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018 04:42 PM
Can you post your workflow for which you are creating the RITM? Do you have Stage in any of the box?
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2018 09:15 AM
i was able to find a solution.
i will post it.