Accept Risk Button in problem form - How to show Complete & Resolve UI action if Risk Acceted ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2022 01:39 AM
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.
- Labels:
-
Problem Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2022 01:55 AM
DId you check the condition on Complete UI action button? You need to change the condition as per your requirement
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2022 02:39 AM
Hi
Thakns for your response. Can you please let me know what will be the UI action condition that will not affect any other functions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2022 02:46 AM
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
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2022 02:00 AM
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 🙂
Aman Kumar