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
Community Members
Community Events
Community Groups

Using Smart Values when creating automation Rule

I am trying to figure out the exact code needed to pull the date fields when setting up the rule and creating an issue. I am not sure if the abbreviations in the fields require doing something specific with the string of code to pull that fields' values.


The wording of the date fields is as follows

"Est. Date Final Data to MS" and "Est. Date Final Results Needed"


Code created so far: 

<h5><p><strong>Summary:</strong> {{issue.summary}}</p>

<p><strong>Client:</strong> {{issue.client}}</p>

<p><strong>project lead:</strong> {{issue.project lead.displayName}}</p>

<p><strong>Data Ready:</strong> {{issue.est. date final data to ms.format("dd/MM/yyyy")}}</p>

<p><strong>Data Needed:</strong> {{issue.est. date final results needed.format("dd/MM/yyyy")}}</p>

<p><strong>Analytics Needed:</strong> {{ needed}}</p>



Anyone have any suggestions? thanks!

2 answers

2 votes
John M Funk Community Leader Jun 09, 2022

Hi Lydia - Welcome to the Atlassian Community!

You should not have a period in the actual name of the field. That is probably what is giving you the problem. I would change from Est. to just Est in the field name. 

The other thing you and do is replace the field name with the custom field ID. That will look something like:

{{issue.customfield_16748}}  where 17478 is the ID of your custom field. 

Heavy +1 on using custom field IDs.

(Fields can be renamed and it will break the automation rule. IDs will never change.)

Like John M Funk likes this
1 vote
Mikael Sandberg Community Leader Jun 09, 2022

Hi @Lydia Roth,

Welcome to Atlassian Community!

Since you are using a dot as part of the field name I would recommend that you use the custom field identifier instead, like {{issue.customfield_12345.format("dd/MM/yyyy")}}. You can get the custom field ID if you to go Settings > Issues > Custom fields. From here locate the field, click the three-dot menu and then hover over one of the menu option and you should see the link in the bottom left-hand corner and the last part of it includes the ID.

Screen Shot 2022-06-09 at 11.18.11 AM.png

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,123 views 34 44
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