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

Harish KM
Kilo Patron
Kilo Patron

DId you check the condition on Complete UI action button? You need to change the condition as per your requirement

Regards
Harish

Hi @Harish KM ,

Thakns for your response. Can you please let me know what will be the UI action condition that will not affect any other functions.

Hi remove the existing condition and put this

current.state == 6; //6 is the choice value of resolved state . The close button will be visible only when this state value matches

Regards
Harish

Aman Kumar S
Kilo Patron

Hey,

If you look closely the complete UI action, there is a condition call to a script include:
new ProblemStateUtils().canComplete(current);

In this function it checks, if resolution code is Risk accepted, then it won't show the UI action, so it is an expected behavior OOB

problemGr.resolution_code != this.RESOLUTION_CODES.RISK_ACCEPTED

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar