Display scripted field values in custom email post function

Is there a way to display scripted field values within an email that is created via "Send Custom Email"  built in post-function? 

I currently have  the below code for my custom scripted field, however it always displays as null in the email. (The field does populate correctly when viewing/updating the issue.)  Can I pull this in the email somehow even though the field is calculated on the fly?

 

<% out << issue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObjectByName("My Script Field"))

4 answers

This widget could not be displayed.

What is the type of that custom field you are using? I've just tried your line of code with a basic Text Field and it works fine for me.

This widget could not be displayed.

It is a "Script Field" type that is setup as a Number Field with a Number searcher. My understanding is that this type is calculated on the fly instead of being stored in the database.

This widget could not be displayed.

I think we reproduced this... I'll get back to you.

This widget could not be displayed.

Hi @Melissa Bay , I reproduced the issue and it has been logged here: https://jamieechlin.atlassian.net/browse/GRV-652.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

513 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you