@@ -238,7 +238,7 @@ def send_mail_on_publish(recid, revision,
238238 template = "mail/analysis_published_new.html"
239239
240240 send_mail_on_hypernews (recipients , subject , message )
241- send_mail_on_jira (recid , host_url , recipients , message , subject , template )
241+ send_mail_on_jira (recid , host_url , recipients , message , subject )
242242
243243 current_app .logger .info (
244244 f'Publish mail: { recid } - { ", " .join (recipients )} .' )
@@ -287,16 +287,18 @@ def send_mail_on_hypernews(recipients, subject, message):
287287 )
288288
289289
290- def send_mail_on_jira (recid , host_url , recipients , message , subject , template ):
290+ def send_mail_on_jira (recid , host_url , recipients , message , subject ):
291291 # only JIRA ML mail
292292 conveners_ml_jira_mail = current_app .config .get ("CONVENERS_ML_JIRA_MAIL" )
293293
294294 if conveners_ml_jira_mail in recipients :
295+ template = "mail/analysis_plain_text.html"
295296 recipients .remove (conveners_ml_jira_mail )
296297
297298 create_and_send .delay (
298299 template ,
299300 dict (recid = recid , url = host_url , message = message ),
300301 subject ,
301- [conveners_ml_jira_mail ]
302+ [conveners_ml_jira_mail ],
303+ type = "plain"
302304 )
0 commit comments