Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I add a custom field (target date)<=1day to a daily email automation

James Pearson June 19, 2025

I am trying to create an automation that sends an email out daily and informs users of their tasks that are due (will 3 three emails - due today, due tomorrow and overdue).

This will be based on a custom date field we have in addition to the due date. The field is called "Target Date"

I have created the automation 

When scheduled -> then Send email

But i cannot get the correct JQL to search by the custom field (and it doesn't show up in the custom fields on the smart values)

I saw that for the due date the JQL was something like duedate<= 1d or duedate <= now()

and using that logic i tried variations on this before i saw another post where they used a JQL like {{issue.customfield_xxxxx}} to get the custom field

so using that logic i thought something like {{issue.customfield_TargetDate}}<= 1d should work but i am not having any success with any of the variations i've tried

 

 

2 answers

0 votes
James Pearson June 20, 2025

Hi @Walter Buggenhout

Thank you for the quick reply, your JQL filter is showing results on the scheduled step in the JQL which is promising.

Screenshot 2025-06-20 181427.png


What do I need to put in the content for these items to appear in the email? Or is this dynamically generated by the JQL in the first step and the Content would be other things i wanted to add?

Screenshot 2025-06-20 181525.png

I did use this but i seem to be getting multiple emails not one email with all the items (the email contents don't list anything can identify the tickets

Sorry if this is a simple question (still learning)

Many thanks

0 votes
Walter Buggenhout
Community Champion
June 19, 2025

Hi @James Pearson and welcome to the Community!

You wouldn't need to use smart values in your JQL filter. For target date tomorrow, the following should be just fine:

"Target Date" <= 1d

I recommend you to navigate to Filters > Search work items and just try the search there, where you can see that it is valid. JQL tends to add a funny reference to custom fields automatically sometimes, containing a reference to the custom field id. It may be useful to copy the JQL you get there to the automation rule, once you know it does what you want it to do.

Hope this helps!

 

James Pearson June 23, 2025

Hi @Walter Buggenhout

Thank you for the quick reply, your JQL filter is showing results on the scheduled step in the JQL which is promising.

Screenshot 2025-06-20 181427.png


What do I need to put in the content for these items to appear in the email? Or is this dynamically generated by the JQL in the first step and the Content would be other things i wanted to add?

Screenshot 2025-06-20 181525.png

I did use this but i seem to be getting multiple emails not one email with all the items (the email contents don't list anything can identify the tickets

Sorry if this is a simple question (still learning)

Many thanks

Suggest an answer

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

Atlassian Community Events