Forums

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

How to string replace when using helper.render?

Manuel
Contributor
June 13, 2022

Hi,

I'm using the helper.render in a "send mail script post function" to render a multiline custom field to html.

When the field contains an embedded image, the jira base url is not added to the scr-tag, so the mail receiver cannot see the image as the link is broken.

Adaptavist told me, that this is a known issue from jira:

https://jira.atlassian.com/browse/JRASERVER-41675
https://jira.atlassian.com/browse/JRASERVER-40986

 

My idea as workaround is to use a string replace in combination with the

${helper.render(custmfieldcontent)}

to put the baseurl into the scr tag. But i wasn't able to get a working syntax :(

Can anybody help or give me a hint?

 

Best Regards

 

Manuel

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events