JIRA postfunction send an email, "Delivery date" field

Germain Vincent August 8, 2017

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
Answer accepted
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 8, 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

Germain Vincent August 8, 2017

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!

Germain Vincent August 8, 2017

Working at perfection!

Thanks a lot Tarun!

kk4065896 March 31, 2021

Hi Tarun,

 

If the custom field is multi user select then how could we get the result.

 

Regards,

Kiran

Suggest an answer

Log in or Sign up to answer