Putting RITM on hold when catalog task is on hold

Abbottronix
Tera Guru

I want to create a functionality that puts an RITM into an on hold state if any of the catalog tasks beneath it are in an on hold state. It will also need to detect if all the tasks have been moved out of on hold, and then put the RITM into either a WIP or closed state, based on the state of the tasks. I figure that I can either use business rules or subflows to do this, but I don't know which would be a better choice. If a flow is the better choice, I'm not sure exactly how to construct it. 

3 REPLIES 3

SK Chand Basha
Giga Sage

Hi @Abbottronix 

You can use BR or Flow to achieve this functionality .

 

https://www.servicenow.com/community/developer-forum/change-ritm-state-if-any-sc-tasks-are-on-hold/m...

 

Mark it Helpful and Accept Solution!! If this helps you to understand.

Harish KM
Kilo Patron
Kilo Patron

HI @Abbottronix it depends on the use case are you making this as a global change for all catalogs? then go for Business Rule. If you use flow here then you need to add this subflow for every catalog you design so easier to maintain as a Business rule

 

If it is for specific catalog then go for Flow.

Regards
Harish

Community Alums
Not applicable

hi @Abbottronix ,

 

Using flow would be better & future proof.

 

You can adjust the flow logic as per your requirement.

Here I am triggering the flow when Task state is changed. After I am checking if task status got changed to On Hold. If yes, Updating RITM status to Hold. Else using lookup records to get all tasks created under that RITM & checking status of each of of the task & updating ritm to closed using flow variable.

 

Sai149_0-1716258480855.png

Sai149_3-1716259061764.png

 

Please let me know if you encounter any issues or need any help.

 

I started answering community questions recently. If my answer helped you in any way, please mark it as helpful or correct. It would be a great boost.