Forums

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

Automation

HaRsHaS_ V August 28, 2025

I want Jira to send emails when a fix version is 4 days or 2 days away from release. I see there is a standard template for issues. However, I want to use it for version

Does this JQL work? Verision = " " AND duedate <= endOfDay({{numberOfDaysBeforeDueInclusion}}) AND statusCategory != done AND assignee != empty

The Template also shows a branch, is the branch need in this case?

2 answers

2 votes
Karan Sachdev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2025

Hey @HaRsHaS_ V

 

You may consider writing an automation rule for this.

The smart value for version release date is {{issue.fixVersions.releaseDate}}.

You may write a rule to check if the difference of this date and current date is less than 2 days, and send a mail to the required recipients. You may have to tweak the smart value a bit and test it on sample work items to ensure it works as expected.

Here's the smart value for comparison and the sample rule:{{now.diff(issue.fixVersions.releaseDate).days.abs}}

2025-08-28_14-08-08.png

Thanks!

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2025

Hi @HaRsHaS_ V 

First, the Jira version used impacts the automation options, and you have tagged your question with multiple versions.  Which version of Jira are you using:

  • Cloud
  • Server
  • Data Center

 

Next, does your upcoming version / release have any work items assigned to it in the Fix Versions field?

  • If yes...
    • Your rule could use a Scheduled trigger with no JQL, and then gather any issues with JQL to check them with the earliestUnreleasedVersion() function.
    • How the issues are gathered depends upon your Jira version...
      • For Server or Data Center, use a branch with bulk-handling feature and the plural {{issues}} smart value, checking the first one.
        • {{issues.first.fixVersions.releaseDate.max}}
      • For Jira Cloud, use the Lookup Work Items action and the smart value {{lookupIssues}}, checking the date of the first one.
        • {{lookupIssues.first.fixVersions.releaseDate.max}}
  • If no...
    • Your rule could use a Scheduled trigger, and then call the REST API to identify any upcoming versions, and check the release date to send the email

 

Kind regards,
Bill

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