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

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

 

 

I used the condition: 

current.sysapproval.getRefRecord().getTableName() != 'rm_story';

 

It is working now.

I used the condition: 

current.sysapproval.getRefRecord().getTableName() != 'rm_story';

 

It is working now

@Arijit Saikia 

Glad to know.

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