3. Set the state to "Awaiting Change" when a Change is created from the incident using the existing "Create Normal Change" and "Create Emergency Change" UI actions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2020 09:42 AM
3. Set the state to "Awaiting Change" when a Change is created from the incident using the existing "Create Normal Change" and "Create Emergency Change" UI actions.
- 7,642 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2020 09:47 AM
use the value not the lable "Awaiting Change"
changeRequest.setValue("state", value );
value is whatever value you gave that state = Awaiting Change when you set it up (ie. 1, 3, 5, ect.) you can look it up in Show Choice List. If you forgot to put a value in for that state, you might want to go in there and update it to a value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2021 03:34 PM
I had a similar issue and can confirm that what was advised in this comment worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2021 09:01 AM
Hi Anil,
You can insert the below code in the Create Normal Change and Create Emergency Change UI Action just after the line "changeRequest.insert();"
current.setValue('state',4);
current.update();
NOTE:
You can replace the value 4 with whatever value you use for the Awaiting change state.
Hope this helps.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2021 12:24 AM
Hi flordelyn,
Thanks for sharing this worked for me..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2021 04:12 AM
Hello Flordelyn,
Thanks for sharing. It worked for me.