Move the state to resolve state when "Mark Duplicate" UI Action is selected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-11-2021 08:52 PM
Hi
in problem form there is a UI action called "Mark duplicate". It is used to cancel the current ticket when there is already a similar kind of problem ticket. When we click that button the state is moved to "Closed" state. Here we got the requirement that when "Mark Duplicate" button is clicked the state should move to "Resolved" state not to "Closed" state. When we check the properties of problem management, there is no option to enable it.
How can we achieve this?
- Labels:
-
Problem Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-13-2021 10:04 PM
Hope you are doing good.
Did my reply answer your question?
If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.
Thanks!
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 08:51 PM
Hope you are doing good.
Did my reply answer your question?
If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.
Thanks!
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 09:05 PM
Hi
sorry, but your approach is wrong and doesn't fit for problems. I spent some hours to find the correct way. See my answer š
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-14-2021 07:48 AM
Hi
instead of what was already said here for the Problem table another state management concept is implemented: the so-called State Management (see https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/state-model/concept...)
The mapping of the allowed Problem transitions can be found at table sys_state_transition. Or append the following URL to you instance to get the filtered list of all Problem states: /nav_to.do?uri=%2Fsys_state_transition_list.do%3Fsysparm_nostack%3Dtrue%26sysparm_query%3Dstate_model%3Ddf73699a3b031300ad3cc9bb34efc42d%26sysparm_first_row%3D1%26sysparm_view%3D
So to allow additional state transitions from "Assess" and "Root Cause Analysis" to "Resolved" you have to extend the "Enter Conditions" for state "Resolved" by these two states:
Next step is customizing UI Script "ProblemModalUIHelpers" at line 171 to
state: g_scratchpad.STATE.RESOLVED,
After that you probably will not see any difference because, for reasons I can't explain, ServiceNow has decided to implement "ProblemModalUIHelpers" as UI Script and not as Script Include as usual. As UI Scripts are cached by the browser you have to force a reloading at all of your users by setting a system property. The complete backgrounds of that property and how to set that property can you read at the following article: https://community.servicenow.com/community?id=community_article&sys_id=0eb79438db0e93804fc2f4621f961...
After all these things are done you can send your marked as duplicate Problems to the "Resolved" state.
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-14-2021 10:21 PM
Hi
Did my reply answer your question?
If so, please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
If not, please tell me what you are still missing!
Many thanks and kind regards
Maik