Introduce new state in Problem tickets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2023 11:04 AM
Hello,
I want to add a new state 'On Hold' in Problem tickets after 'Fix in Progress' but it is not appearing on the form.
I have made changes at following places :
1. Added new state 'On Hold' on Problem table.
2. Made changes in Script Includes, since they were OOB scripts I made copy of them with suffix 1 at the end of names. Added below line :
a. Script Include : ProblemState1
ProblemState1.STATES = { //Only this line was added in this function
ON_HOLD : ProblemStateSNC1.ON_HOLD,
}
getProblemState1: function() {
return ProblemState1.STATES;
},
b. Script Include : ProblemStateSNC1
ProblemStateSNC1.ON_HOLD = "105";
3. Changes in BR : Set State variables on Scratchpad
g_scratchpad.STATE = new ProblemState1().getProblemState1();
Could you please assist in this.
Thanks in advance!