Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Script runner "Send Custom Email" sends email with html tags in description field content

Aravindi Amarasinghe
Contributor
August 16, 2018

Hi All, 

I am trying to send the email using Script runner Send Custom Email option. 

My code is as follows.  I am using "Plain Text" and this sends email with HTML tags. 

Environment: <% out << (issue.getCustomFieldValue(com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName('Environment')).toString()) %>
Description: $issue.description

 

Changing the Description render from JEditor to Default solves the problem. But it is not supporting service desk requests. 

JIRA: 7.3.8

Scriptrunner: 5.0.11

Can somebody help me with this? 

Thank you!

 

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Adlan Aripin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2021

Hi @Florian Kammermann ,

Thank you for your question, which I can try to fill in here. Unfortunately it is not possible at this point in time to do so. The values for the dropdown field macro can only be configured from the macro editor, and currently cannot accept any dynamic value from external source (ie: Jira).

I'll take this feature and channel it back to the team or alternatively, you can channel this back to us by raising a feature request here so that we can consider this scenario moving forward. Hope that this helps to clarify, let me know if there’s anything else that we can help you with.

0 votes
Uday Kiran Bhaviri
December 9, 2021

Hi @Florian Kammermann ,

You can create Insight custom field and you can add it to the issue screen. While creating the insight custom field you can define the scope using IQL.

https://confluence.atlassian.com/servicemanagementserver/default-insight-custom-field-1044784428.html 

Hope this will be helpful.

Florian Kammermann
December 10, 2021

I wasn't clear enough, target is the adaptavist plugin in Confluence. Edited the question.

TAGS
AUG Leaders

Atlassian Community Events