Problem FIX ui action works for admin not for problem co-ordinator

raju51
Tera Contributor

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?

4 REPLIES 4

SANDEEP28
Mega Sage

@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 !! 

 

raju51
Tera Contributor

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.

SANDEEP28
Mega Sage

@raju51  Can you if problem coordinator has below roles

 

SANDEEP28_0-1690786501565.png

 

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