Enhancements to the Story Module - approval flow

Arijit Saikia
Tera Contributor

 

I am trying the enhance the Story module (rm_story). The requirement is below:

 

1. When the State of the Story is changed to UAT (value = 7), the opened_by and all the users listed in the Watchlist should be sent an approval email notification.

 

2. The email notification should also include the 'Acceptance Criteria' field from the Story.

 

3. If any approver Rejects the State is moved back to "Work in Progress" (value = 2)

 

4. If anyone Approves the State is moved to Closed Complete (value = 4).

 

Question: Can I reuse the Approval Inserted notification as it is used by other modules and do not have a section for Acceptance Criteria. What is the best way to achieve this solution, please include screenshots.

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@Arijit Saikia 

best way is this

1) ensure OOB Approval inserted notification doesn't trigger for rm_story

add this in notification condition

source table != rm_story

2) then create new approval notification which triggers only for your rm_story table and have email script, email body as per your customer requirement

source table == rm_story

Also remember you can handle your own logic what happens when it's approved or rejected

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Hi @Arijit Saikia ,

you don't need advanced condition for this and I don't see field name called table_name

I have tried this and it worked for (it did not Approval Request notification)

 

ChaitanyaILCR_0-1745376717016.png

or try this approach

ChaitanyaILCR_1-1745377408209.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

 

View solution in original post

8 REPLIES 8

Chaitanya ILCR
Kilo Patron

Hi @Arijit Saikia ,

you can use the existing notification create notification email script and check what is the task type if it is =rm_story add that additional line of acceptance criteria.

 

But better create a separate notification as you can configure this separately as you might need to enhancements rm_story separately in the future.

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Ankur Bawiskar
Tera Patron
Tera Patron

@Arijit Saikia 

best way is this

1) ensure OOB Approval inserted notification doesn't trigger for rm_story

add this in notification condition

source table != rm_story

2) then create new approval notification which triggers only for your rm_story table and have email script, email body as per your customer requirement

source table == rm_story

Also remember you can handle your own logic what happens when it's approved or rejected

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks Ankur,

 

I tried to put a condition for the "Approval Request" notification not to trigger with the condition, still I am getting duplicate emails.

 

I have created a new event that gets fired when approval is generated.

 

In the logs I am getting 2 emails - one from "Approval Request" notification and one from the newly created notification. Please refer to screenshots

Email Log 2 - Approval Request Notification.pngEmail Log 1 - Story approval notification.pngApproval Request - rm_story condition.png