Auto-Merge Similar Tickets & Auto-Close Based on Keyword
Objective: Implement an automated mechanism in the ServiceDesk Plus to improve ticket management efficiency by:
- Automatically merging similar requests that share the same subject.
- Automatically closing tickets when the subject contains the keyword "RESOLVED".
Steps to Configure:
- Create a Global Function
- Navigate to: Admin → Global Functions
- Create a new global function with the following details:
- API Name: sdp_configuration
- Function Name: SDP Configuration
- Use the content from: global-function.txt
- Note: Replace seshadri-0040:8080 with the appropriate domain.
- Create a Custom Function for Auto-Merging Similar Requests
- Navigate to: Admin → Request Custom Function
- Create a new function with the following details:
- API Name: merge_similar_requests
- Function Name: Merge Similar Requests (with the same subject)
- Use the content from: merge-tickets.txt
- Create a Custom Function for Closing Tickets
- Navigate to: Admin → Request Custom Function
- Create a new function with the following details:
- API Name: close_ticket
- Function Name: Close Alerting Ticket
- Use the content from: close-ticket.txt
- Create Two Custom Triggers
- One trigger for auto-merging similar tickets
- One trigger for automatically closing tickets when the subject includes the "RESOLVED" keyword.


New to ADSelfService Plus?
Related Articles
Auto merge & Auto close alerting tool tickets
In large IT environments, alerting tools like Dynatrace, SolarWinds, OpManager etc play a critical role in proactively detecting issues. But when each alert ends up creating a new ticket in ServiceDesk Plus (SDP), your help desk can quickly get ...
Script: Auto merge tickets of similar subject and auto closes the ticket--> Used V1 API dont use
Use case: Too many alerts for the same reason from a machine keeps generating multiple tickets in SDP MSP. You can use the below script to auto-merge the requests and auto close the ticket. What does this script do ? The Merged tickets description ...
Script to Auto merge requests with exact same subject
Use case: Too many alerts for the same reason from a machine keeps generating multiple tickets in SDP MSP. You can use the below script to auto-merge the requests in the application. The Merged tickets description will be added as a note to the ...
Merge Similar Requests
Requirement: In an organization, multiple requests being created for the same issue. So we will have to merge all the similar requests. UseCase: Assume there is a printer issue in an organization, and a request has already been registered for the ...
Script to Auto close Request when the status is set to Resolved
This post describes the use of a python script to close requests that are set in Resolved status using Custom Schedules What is 'Custom Schedules' ? The Custom Schedules feature enables you to access any data in ServiceDesk Plus to perform customized ...