how to edit the first stage label of a requested item from "request approved" to "request submitted"

Jamen1
Tera Expert

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.

1 ACCEPTED SOLUTION

Jamen1
Tera Expert

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: 

  1. Elevate your security privileges to "security admin".
  2. Go to column_renderer.list in your left hand navigation.
  3. Right Click on the list header and select "Configure > Security Rules".
  4. 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.)
  5. Go back to column_renderer.list and open the record for "Workflow-driven".
  6. 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();

View solution in original post

5 REPLIES 5

SanjivMeher
Kilo Patron
Kilo Patron

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. 

 

find_real_file.png

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

find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

Jamen1
Tera Expert

i've updated the stage name in two places:

workflow > stage sets and

workflow editor > workflow actions > edit stages

i then created a requested item, but it still appears with "request approved"

find_real_file.png

find_real_file.png

 

 

 

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.

i was able to find a solution.  

i will post it.