Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,926
Community Members
 
Community Events
165
Community Groups

Get Custom Field Date Picker Value and place into Automated Email

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 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 May 12, 2022

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

Jira Automation Template Library 

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 May 12, 2022

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

Craig Nodwell Community Leader May 12, 2022

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

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 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}}

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 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"

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 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 

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

Craig Nodwell Community Leader May 12, 2022

You did just fine.

customfield_10058.JPG

Craig Nodwell Community Leader May 12, 2022

{{issue.[customfield_10058].value}}

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

Still not working

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

Yes still doesn't work :/

Craig Nodwell Community Leader May 12, 2022

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

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you