logo

NJP

How to implement the approver process on demands for approvers stakeholders

Import · Nov 26, 2018 · article

A demand can be associated with 1 or more stakeholders. Every stakeholder can be marked as assessment recipient and / or approver.

image

Once you click on Screen the demand move from Submitted to Screening, so all the assessment recipient can assess the demand answering the Assessment Metrics Related (OOB those metrics are related to Risks and Strategic Alignment)

Once the Screening process is completed the Demand move to Qualified. OOB all the Qualified demands need to be approved (Select for execution) by the portfolio manager on Step 2 (Select Demands and Projects) of Portfolio Workbench:

image

As an alternative way, instead of waiting the Portfolio Manager to approve them you can ask 1 or more stakeholders (if approver related field is yes) to approve them. You can find the implementation Update Set as attachment on this article. Here is a description on how this is implemented

This approval process is NOT implemented OOB but can be easily implemented as follow:

  1. Enable Demand Approval Engine:
  2. 1. As Admin go to System Properties -> Approval Engines
    1. Set Update Demand Approval Engine to: Approval Rules
  3. Add "Demand Approval Request" Business Rule
  4. 1. Go to Business Rules
    1. Click New | Name: Demand Approval Request
    2. Table: dmn_demand | When to Run: (After) State changes to Qualified | Advanced
    3. Script:
      var grStakeHolder = new GlideRecord('dmn_stakeholder_register'); grStakeHolder.addQuery('portfolio',current.portfolio); grStakeHolder.addQuery('approver','yes'); grStakeHolder.query(); while (grStakeHolder.next()) { //gs.log('Found an approver for demand ' + current.name); var grApproval = new GlideRecord('sysapproval_approver'); grApproval.initialize(); grApproval.approver = grStakeHolder.user; grApproval.state = 'requested'; grApproval.sysapproval = current.sys_id; grApproval.insert(); } ​
  5. Add "Set Demand to Approved" Business Rule
  6. 1. AN: Business Rule | New | Name: Set Demand to Approved
    1. Table: dmn_demand | When to Run: (After) Approval changes to Approved
    2. Set Field Values: State to Approved
  7. Add Approvers related list on Demand
  8. 1. On the Demand form, click on the form control (≡) icon and select Configure -> Related List
    1. Add the Approvers list to the Selected column.

After you have implemented the approver process all the demands are requested to be approved by all the stakeholders approvers as soon as you Demand is qualified.

A stakeholder approver can find all the demands that needs to be approved on My approvals

View original source

https://www.servicenow.com/community/spm-articles/how-to-implement-the-approver-process-on-demands-for-approvers/ta-p/2298293