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 issue.created.date neither worked. What do I need to use to get the date in the email?
Thank you!
Jenifer
This is a rare occasion when you cannot use the property syntax - see my comment here: https://answers.atlassian.com/questions/251026/script-runner-how-do-i-pull-created-date-information-from-an-issue
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
issue.getCreated().format("dd-MMM-yy")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
11111.png
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried :
$issue.getCreated()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is telling me the same thing - No such property: getCreated for class: com.atlassian.jira.issue.IssueImpl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which version of Jira are you using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should the be able to use the methods available here: https://developer.atlassian.com/static/javadoc/jira/6.3.12/reference/com/atlassian/jira/issue/IssueImpl.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.