New Catalog Task State

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 09:11 AM
Hi all,
I hope you can help. I feel like I should know this but I can't work it out!
I need to create a new Catalog Task state "On Hold". However, this should only apply to one particular Request Item.
Can anyone help?
Thanks so much
Tracey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 09:35 AM - edited 05-17-2023 09:47 AM
You can create a new state "on hold" and make it available on the SCTASK using UI Policy where you can mention in condition "Item is 'Your item name'" just an idea worth try it.
Please make sure if this works for you to hit a correct or helpful.
Regards
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 10:00 AM
You can achieve this using UI policy/ Client script, please refer the below screenshots:
Script:
g_form.addOption('state',"On Hold","On Hold",3);
Output:
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 10:33 AM
Hi @Tracey Wilmot ,
Creating a new state for only one request item is not exactly a best practice. Please consult with the technical team and stakeholders and try to come up with a work around for it. For instance you can add a tag to the catalog task which is to be put on hold state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 11:16 AM
HI @Tracey Wilmot ,
I trust you are doing fine.
- Firstly, navigate to the Service Catalog module in ServiceNow.
- Open the relevant Request Item for which you want to create the "On Hold" state.
- In the Request Item form, locate the "Task" related list. This list displays the associated Catalog Tasks for the Request Item.
- Click on the "New" button in the related list to create a new Catalog Task.
- In the Catalog Task form, you will find a field called "State." This field represents the current state of the Catalog Task.
- To add a new state, such as "On Hold," you need to modify the list of available states. To do this, follow these steps:
// Navigate to the Dictionary entry for the Catalog Task table
// and find the field definition for the 'state' field.
// Once you have located the field definition, add the new state ('On Hold') to the list of available choices.
// Update the 'choice' attribute of the field definition to include the new state:
// <choice value="3" translation="On Hold">4</choice>
// Save the changes to the field definition.
// Now, when you create a new Catalog Task for the specific Request Item, you can set the state to 'On Hold'.
Regards,
Riya Verma