Hello,
I have a custom mail handler with my own entity.
I want to delete related data in db when the mail handler is deleted.
For this, i have created a servlet filter (which is called before the deletion) but i dont know to get the mail handler parameters (they contains an id used for identify data in db).
is there a service for this ?
thanks
solution
use com.atlassian.jira.service.ServiceManager
JiraServiceContainer jsc = serviceManager.getServiceWithId(handlerID)
String handlerProperties = jsc.getProperty("handler.params")
Map<String, String> propertyMap = ServiceUtils.getParameterMap(handlerProperties);
propertyMap contains all property set in configuration screen
it's posisble to autowired in servlet filter for used directly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.