Problem FIX ui action works for admin not for problem co-ordinator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2023 10:52 AM
OOTB Fix UI action button working for as system admin but when I log in with problem coordinator role, it is not working for problem coordinator role. i,e when admin clicks FIX UI action, a form opens with Cause note and fix notes. These fields when populated moves problem state ahead to Fix in Progress state on clicking ok button but the same does not work for problem coordinator role.
Fix UI Action condition: current.canWrite() && (current.state != ProblemState.STATES.FIX_IN_PROGRESS) && new ProblemStateUtils().validateStateTransition(current, ProblemState.STATES.FIX_IN_PROGRESS)
Script:
function onFix() {
if (g_form && g_form.mandatoryCheck()) {
ScriptLoader.getScripts("ProblemModalUIHelpers.jsdbx", function() {
ProblemModalUIHelpers.onFix();
});
}
}
What modification to be made to work same as admin?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2023 12:16 PM - edited ‎07-30-2023 12:18 PM
@raju51 OOB logic works fine.
When you login as a problem coordinator you need to check Cause notes or Fix notes fields are not filled before clicking on "FIx" UI action. If both are filled then you will not get that pop up form even you logged in as admin.
Below line of code check if all the mandatory fields are filled then don't call the pop up form
if (g_form && g_form.mandatoryCheck())
So to get that pop up form, keep the Cause notes or Fix notes field empty then click on Fix button.
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2023 06:50 PM
The pop up comes every time when I click on "Fix" UI action but when I fill in the cause note and fix notes and click ok at that time the pop up remains as it is and does not copy the values in problem form. Ideally when ok is clicked it should populate the fix note and move problem to next state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2023 11:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 12:03 AM
Hi @raju51
Were you able to find solution for this issue?
I am facing similar issue for Problem Manager role for Confirm UI action.
Regards,
R'ana