Accept Risk Button in problem form - How to show Complete & Resolve UI action if Risk Acceted ?

ads
Tera Expert

Hi All,

I have requirement the below requirement,

if a Problem is setting to Risk Accepted the state will be set to Resolve instead of Closed & the complete button(UI action) will be availble in the resolve state to close the Problem record.

I deactivated the property which is called in a business rule - problem.acceptrisk.move_to_closed . after deactiving the system property the state is going to the Resolve state, but the Complete UI action is not showing to close the problem.

Please help me on this. 

@Ankur Bawiskar 

@Aman Kumar 

@Jaspal Singh 

@Sandeep Dutta 

@Maik Skoddow 

 

 

 

8 REPLIES 8

Hi @Aman Kumar ,

Thanks for the quick response.

By using this condition - problemGr.resolution_code != this.RESOLUTION_CODES.RISK_ACCEPTED . The complete UI action is showing in every state. It should be only show after the Resolved state.

You don't have to use this condition, it is one of the condition that is not allowing you to see complete button on your form.

This is the expected behavior, and configured within your script include "new ProblemStateUtils().canComplete(current);"

Best Regards
Aman Kumar

Hi @Aman Kumar ,

Can I remove that condition from the script include if I want to show the complete UI action ? But I can see Its not editable as its showing - Access Message

This item is read-only based on its protection policy.

Yes, its not editable for a reason, if you have accepted the risk, you should not be able to close the Problem ticket.

If you really want to make it work, you will have to create a new script include and extend the read only script include and override the function.
But again, it will be against the intended functionality, which I would ask you discuss with your product owner/client, how it is oob and do they really want to move away from this.

Best Regards
Aman Kumar