Loading...
Loading...
When the stage rendering for a workflow is using the Workflow-driven renderer, and a stage with value "rejected" is completed, the stage icon display shows a green tick for that stage, instead of a red X.
Create a workflow on a table other than sc_req_item that has a column of type "Workflow" Go to the Stages tab of the Workflow properties view and add a stage with value ="rejected", and set the stages field to the column of type "Workflow" On the workflow canvas, add an Approval-User activity, and configure at least one user Add an Approval Action activity for both the "Approved" and "Rejected" transistions from the Appoval, transition them both into the End activity Open both Approval Action activities and set the "Stage" field to the "approved" or "rejected" stage as appropriate. 6. Publish the workflow 7. Create a new record on the correct table that matches the conditions to start the flow. An approval should be created. Reject the approval. Current Result: The rejected stage is shown as green checkmark Desired Result: The rejected stage should be shown as red cross
This is not a defect and won't be fixed. In the workflow-driven renderer the icon display reflects the state of the stages, with the green checkmark indicating that the stage was completed. In this case the stage was completed. The red X would indicate that the stage was cancelled. However, in the Request Item stage renderer, rejected approvals are shown with a red X icon, and customers may want a similar experience with the workflow-driven renderer. The suggested workaround is the attached custom renderer which can be imported and used on the workflows that need that icon display. It was created by copying the existing Workflow-driven renderer and then adding these lines in the "jvar_choices" evaluate block (~lines 49-52) var c = choices.getChoice('rejected'); if (c.getParameter('state')=='complete') { c.setParameter('state','rejected'); }
PRB1529598
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.