0

I would like to create a link from a correspondent's email address to a search query in our custom CRM system.

Fore example, if the correspondent is "test@email.com", I would like to add a link like this:

<a href="http://www.mydomain.com/?q=test@email.com">Link to CRM</a>

This link would ideally be below the correspondent's email address in the Bug view.

Is this type of customization possible?

flag

1 Answer

2

Yes.

A quick BugMonkey solution would be this:

(function(){
    /* Modify this to whatever you want the link to be */
    var sTemplate = 
    '<div><a href="http://www.mydomain.com/?q=EMAIL_ADDRESS" title="Lookup EMAIL_ADDRESS in the CRM">Link to CRM</a></div>';

    var jEmailInfo = $("#sCustomerEmailInfo");
    if(!jEmailInfo.length) return;

    var jParts = jEmailInfo.find("a");
    var sEmail = jParts.eq(0).text() + "@" + jParts.eq(1).text();
    jEmailInfo.append(sTemplate.replace(/EMAIL_ADDRESS/g, sEmail));
})();
link|flag
Awesome! Thank you very much for the detailed "copy & paste ready" solution. – toddb Aug 11 2010 at 18:30

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.