Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Date Picker (custom field) not pulling in automated email

Hi, 

I have been trying to use the automation builder to send an email to an individual letting them know more information about a ticket they have been allocated. In the automated email I provide information like the following:

Issue Summary - {{issue.summary}}
Contractor Full Name - {{issue.Contractor Full Name}}
Contractor Email - {{issue.Contractor Email}}
Notice Period - {{issue.Notice Period}}
Line Manager - {{issue.Line Manager.displayName}}
Agency Name - {{issue.Agency Name}}
Agency Address - {{issue.Agency Address}}

 

However when I try and pull a date (custom field using the date picker type) it does not work. I have check the spelling and ensuring there where no other similar named custom fields to confuse. I then tried to ensure it was being pulled in specific format incase that was the issue still nothing. Some of the things I have tried below:

{{issue.Start date}}

{{issue.Start date.value}} 

{{issue.Start date.MediumDate}}
{{issue.Start date.value.MediumDate}}
{{issue.Start date.Date.value.MediumDate}} 

 {{issue.Start date.format("dd/MM/yyyy")}}

None work. 

Sorry for this, I have ensured that the field is mandatory so is not empty either. 

Thanks in advance for any suggestions. 

 

Andy

 

 

1 answer

1 accepted

0 votes
Answer accepted

Hello @Andy King

Welcome to the Atlassian Community!

Per your description, I understand you are not being able to reference a date picker custom field with the smart value in the e-mail sent from an automation rule. Is that correct?

In order to confirm you are pulling the correct date field and not another custom or system hidden field with the same name, I suggest you to use the custom field ID instead of the name to reference it in the smart value of the automation. These would be the steps:

  1. In your Jira site, Go to settings (Cog icon at the top-right corner) > Issues > Custom fields
  2. Find the Date picker custom field you created > Click on ... > Edit Details
  3. In the page opened, copy the custom field ID at the final of the browser URL:
    Screen Shot 2020-06-19 at 19.17.02.png
  4. Use the following smart value to reference the date picker field in your Automation rule where "xxxxx" is your custom field ID number:
    {{issue.customfield_xxxxx}}

To have more details on how you can manipulate the formats of the date field using Smart values, you can check the documentation below:

Use smart values to manipulate and format dates 

Let us know if this works for you.

Thanks this worked, seems that two custom fields have similar names and cause issued once I used the unique ID as recommended this alleviated the issue.

 

Thanks

I think this will solve an issue I am having, but I cannot find the Issues link.  Can you help point me in the right direction?  Tx!

Hello @Greg

Could you please elaborate more on the issue link you are trying to find?

In fact, provide us a step-by-step of what you are trying to find and the problem you are facing so we can have a better understanding of your issue.

P.S: Screenshots and videos are useful too. :)

Hi Petter

I'm trying to take the link to a document from the custom field

2020-08-06_11-16-12.jpg

and then create a rule based on the person we want the email sent to and create the message to include the document link. 

2020-08-06_11-22-38.jpg

Thanks for looking at!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

227 views 1 6
Read article

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