Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to sync REQ and RITM states with sc_task

Nisha30
Kilo Sage

Hi,

How do we achieve these use cases

1. When there is single sc_task , the state of sc_task should be synced with RITM/REQ (example if sc_task state is closed incomplete REQ/RITM state= closed incomplete and like wise)

2. when multiple sc_task are there and they have different closed states (REQ/RITM) state = Closed Incomplete)

3. But when multiple sc_task are there and they all have same closed states, then REQ/RITM also should have same closed states(example: sc_task 1 , sc_task 2, sc_task 3 they all have closed incomplete , then REQ/RITM also should have closed incomplete 

 

Any leads how to achieve this via script will be helpful.

Thanks

2 REPLIES 2

Community Alums
Not applicable

Hi @Nisha30 ,

There is no straight way to do this, you can find some guidance from :https://www.servicenow.com/community/developer-forum/help-with-business-rule-to-sync-ritm-state-with...

 

Community Alums
Not applicable

Hi @Nisha30 ,