Using data partition we have set default group for a particular access type.
How can we have 2 default values depending on the location of the user creating the ticket?
Data partition may not be able to do that. Auto assignment may be the area you look for other than custom JS or Spel code.
Presets for quick close tickets can be set from ahdtop_site.htmpl according to below article:
Create a Quick Close Ticket With Preset Options - CA Service Management - 14.1 - CA Technologies Documentation
This is not possible at all using just data partitioning. A DP can only apply one set of default values at a time and there is no way to apply conditional logic to do so. You would need to use another means to apply the default group value based on location, from using auto-assignment functionality (which does take location into account) to using custom coding functions. It would also be important that you disable the given DP before trying these options as the DP may override any such functionality.
Can you describe what you are trying to do? Why do you need a different group specification based on location values?
Quick tickets created through quick profile get the default group through the data partition. However, the group is being set irrespective of the location. The requirement is to set the groups based on the location of the user creation the ticket.
As I said, you would need to use the auto-assign functionality, which can set group values based on location, but you'd also have to disable DP for the default group as the DP would override any choices made by auto-assign.
The only other thought I would have about this is if there is a scenario in play where you are relying on DP's default group assignment to always work and is why you may not be able to disable DP. Is there any such condition where this is happening?
Can't recall any such condition at the moment. will have to do some tests to confirm.
Retrieving data ...