how to change Velocity template from batcher plugin

Suketa June 25, 2024

screenshot-1 (1).pngHello everyone

We try to change the velovity template of batchers-3.0.2 in order to hide some information since my company works with sensitive data.

We succeeded to identify which part of email is related to vm file. (see attchments)
For example: We would like to hide all fields with its data (green part)
But after some tests, delete/change parts we didn't succeed.

It become a critical subject for us.

Can you help us with this subject please ?

Best Regards

S

1 answer

0 votes
Suketa June 25, 2024

I refered to:

https://confluence.atlassian.com/adminjiraserver/examples-customizing-email-content-1027142311.html

I have tried to a lot of stuff 

  • remove the green section
  • remove the "issue created" part from issue-update-batch-mail.properties
  • both at the same time
  • replace all content from IssueUpdateBatchers-content.vm (obviously replacing baseurl by mine) by
    • #disable_html_escaping()
      
      #defaultMailHeader("email.event.activity.created.issue", $issue.reporter)
      
      #set($link ="<a href='${baseurl}/browse/${issue.getKey()}'>$textutils.htmlEncode($issue.getSummary())</a>")
      
      #rowWrapperNormal($link)
      
      #parse("templates/email/html/includes/footer.vm")
  • replace the green section by 
    • #disable_html_escaping()
      
      #defaultMailHeader("email.event.activity.created.issue", $issue.reporter)
      
      #set($link ="<a href='${baseurl}/browse/${issue.getKey()}'>$textutils.htmlEncode($issue.getSummary())</a>")
      
      #rowWrapperNormal($link)
      
      #parse("templates/email/html/includes/footer.vm")
Suketa June 25, 2024

I have this erro in logs each time: 

"1 plugin failed to load during Jira startup.

       'com.atlassian.jira.plugins.inform.batchers' - 'Jira inform - batchers'  failed to load.

               Unable to load cache item

                       org/springframework/cglib/core/ReflectUtils

                              org.springframework.cglib.core.ReflectUtils not found by com.atlassian.jira.plugins.inform.batchers [102]

 It was loaded from /var/atlassian/jira/plugins/installed-plugins/plugin_17372709991160951003_batchers-3.0.2.jar"

Suggest an answer

Log in or Sign up to answer