Get Custom Field Date Picker Value and place into Automated Email

Jamie Legg May 12, 2022

I have created a custom field, date picker, called "Public Release Date".

I have created an automation email that sends an email whenever that custom field is entered or edited. 

But I do not know how to represent that new data in body of the email?

Help would be appreciated! 

 

ThanksPublic Release Date - Auto email.png

 

 

 

1 answer

0 votes
Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

Hi @Jamie Legg have a review of Jira Smart Values

From this page:
Jira smart values - issues 

smartvalues.JPG

Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

There's also a Jira Automation Template Library available for help you can find it here.

Jira Automation Template Library 

Jamie Legg May 12, 2022

Thank you! So I have tried:

{{issue.status}} which gave me Public Release Date: 10162 which isn't an actual date

- {{issue.duedate}} with no luck

- {{issue.[Custom Field].status}} just as a try but no luck

Any other suggestions?

 

Thanks,

Jamie

Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

Have a look at this post.
Find the smart value for a field 

Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

{{issue.[Custom Field].value}}

Jamie Legg May 12, 2022

Unfortunately {{issue.[Custom Field].value}} didnt work either. Will review the link you sent! Thank you

Like Craig Nodwell likes this
Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

I know this might sound silly but you did change Custom Field to your own name correct.
re:
{{issue.[Public Release Date].value}}
{{issue.[customfield_xxxxx].value}}

Jamie Legg May 12, 2022

Not silly - is my first time anyway! I have tried:

{{issue.[Public Release Date].value}}

{{issue.[Public_Release_Date].value}}

{{issue.[PublicReleaseDate].value}}

 

But with no luck...

Like Craig Nodwell likes this
Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

Have you tried the customfield_xxxxx you can find that information as per the link above "Find the smart value for a field"

Jamie Legg May 12, 2022

Yes finding the JSON representation is a bit beyond me here... to open my relevant info, do I need to change the values below?... I want this field value automation to display whichever issue has been updated, not a specific issue. Does that make sense? Do I need to put:

- myinstanceurl???

- Issue key?

 

https://<yourinstanceurl>/rest/api/2/issue/<issuekey>?expand=names

Like Craig Nodwell likes this
Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

yes your instance and key

It won't be a specific issue after this information gathering :) we're just trying to get the custom field internal id rather than it's name re: customfield_12345 

Jamie Legg May 12, 2022

I dont think i did it right...2022-05-12_15-33-34.png

Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

You did just fine.

customfield_10058.JPG

Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

{{issue.[customfield_10058].value}}

Jamie Legg May 12, 2022

{{issue.[Public Release Date_10058].value}}

Still not working

Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

don't use the name and the id just the id exactly like this
{{issue.customfield_10058.value}}
also try
{{issue.customfield_10058}}

Jamie Legg May 12, 2022

Yes still doesn't work :/

Craig Nodwell
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2022

Please try this without the [ ] in the statement as per my edit above.

Jamie Legg May 13, 2022

Yep I copied and pasted each of the statements above, but no luck.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events