Send Custom Email add Create date within email

I have a custom email that is being sent on resolution using the Script Runner Send Custom Email post function.

With in the email, I want to include the Created Date.  I tried using issue.createdDate and neither worked.  What do I need to use to get the date in the email?

Thank you!

3 answers

1 accepted

This is a rare occasion when you cannot use the property syntax - see my comment here:

Also, because OSWorkflow mangles the parameters, you need to do:

<% out << issue.getCreated() %>

Thank you! That worked, The date is showing date and time, annyway to to only show the date? Search is frustrating, I searched on Created Date and the question did not come up.


Awesome! Thank you so much!

is it possible to send a custom email with different recipient. i mean changing them(recipient) is possible? 

Have you tried : 



It is telling me the same thing - No such property: getCreated for class: com.atlassian.jira.issue.IssueImpl

You are correct, sorry should have tested that before hand. Only one that work for me is $issue.created but it return : True and not a date. I will continue to try and make this work. Unless someone else find a solution before me

Which version of Jira are you using?

We are on 6.3.12

Maybe we should raise a flag for this issue, i have tryed all property of the com.atlassian.jira.issue Class IssueImpl.

Everyone of them give me an error like this: 



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

442 views 0 9
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