RITM and Request must be same as Catalog Task state, When state changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2022 11:23 PM
Hi All,
I want to keep RITM and Request states same as Catalog Task(SC TASK) state for particular catalog task's when state changes.
ex: If Catalog Task state changes to 'working in progress' then RITM and Request state also should be same in 'Working in progess'.
Please help me.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2022 04:33 AM
Try this:
var ritmGR = new GlideRecord('sc_req_item');
if(ritmGR.get(current.getValue("request_item")){
ritmGR.setValue("state",current.getValue("state"));
ritmGR.update();
}
var requestGR = new GlideRecord('sc_request');
if(requestGR.get(current.request_item.request)){
requestGR.setValue("state",current.getValue("state");
requestGR.update();
}
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2022 07:28 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2022 07:30 AM
Hey,
In request form, what you are looking at is Request state, you need to do Configure form layout on request table and bring "State" field on the form
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2022 12:25 AM
Hi Aman,
Thank you so much.
I added state field on the request form, in the state fields whenever I changes state in sc task state, state values are reflecting on request but not in the Request state field. I want same state values in Request state like SC TASK and RITM. Can we do that??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2022 12:40 AM
OOB there does not exists any Work in Progress, Open, etc. state values for REQ table. All it has is as below.
So, you will need to create state values in accordance with sc_task table state values on REQ table as choices & then set values accordingly.
Can you confirm on why there is a need of such a use case which demands creation of additional state values.