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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 42m ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

39 views 3 3
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