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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,307 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot