Kibana and logstash integrated with bug tracking system

I'm trying to use logstash and Kibana to monitor the logs for my applications. I'm able to create a dashboard with charts and histograms. This is pretty easy. However, what I would really like to do is correlate the errors and exceptions to work items in my bug tracking systems. For example
exception-123 in the logs = bug-789 in my tracking system. So long as both the logs messages and the tracking system have a some sort of searchable ID this could work. In addition I'd like the ability to pass some of the from Kibana via a service to create/update items in my tracking system. Having this sort of capability would save me a ton of administrative overhead.

I have not seen any examples of someone doing this. I have a few ideas about how to structure the ES index but I'm not sure how much I can really customize Kibana to do this sort of thing.

Thanks in advance for any tips that you can share.