JIRA postfunction send an email, "Delivery date" field

Hello,

 

I'm sending automatic emails when some transition occured on my workflow.

I was able to send in the emails some values like "assignee" with the code "$issue.assignee" or the summary with "$issue.summary" but I'm not able to send the value of default field like "Delivery date". It seems that the space between "Delivery" and "date" is the source of the problem.

 

Do you have any idea on how to get this value in custom email?

 

I tried:

- $issue.Delivery date
- $issue.Delivery_date
- $issue.['Delivery date']
- $issue.('Delivery date')
- $issue."Delivery date"
- $issue.Delivery%20date
- $issue.Delivery&nbspdate

 

But none of this syntax is working.

 

Thanks in advance.

 

Regards,

1 answer

1 accepted

Accepted Answer
2 votes
Tarun Sapra Community Champion Aug 08, 2017

"Delivery Date" is not a system field, rather it would be a custom field in your JIRA instance, thus it's not available on the default issue object.

Please see here -https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_send_a_custom_email

 

send_email.png

Hey Tarun,

 

You are on all subjects :)

Thanks for your answer. You are totaly right "Delivery date" is a custom field contrary to what my boss said to me...

I will try your solution and upvote!

 

Thanks a lot!

Working at perfection!

Thanks a lot Tarun!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

21,895 views 2 7
Join discussion

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