Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How can I set the fixVersion based on Due Date

Hello all,

I have releases set up for the whole year and use the following alpha-numeric naming convention for them: "Release 2022.01", "Release 2022.02" and so on....

I am looking to automatically set the fixVersion to the appropriate release, when a 'Due Date' is populated or updated. 

Is there a way to do this using JIRA automation? Thank you very much in advance for any and all help. 



1 answer

HI Dinesh,


I do not think you can search for a fix version within the due date range and set that fix version via Automations. ( If  that is what you intent to do)

You could probably have a if else statement that say if date range in this then set fix version to say 2.1 . however this will need you to update whenever you add or edit a new fix version.


You can look at using scripts and API;s to achieve this functionality.



Hi @Aradhana Gupta ,


Thanks for taking the time to respond. To clarify, I have already set up the release versions for the year which are available for selection on a ticket's fixVersion field. The idea is that when my team updates a due date on any ticket, I want the fixversion to be set to the same month's release as the due date.

I found a smart code formula somewhere but it does not seem to be working. 

I have attached a few screenshots of what I have now.  

Thanks again!Releases.PNGfixversion update.PNG

Eric Atlassian Team Jan 11, 2022

Hi @Dinesh Radhakrishnan 


The Create variable action might help in this case.


You can use it to create a variable called version with value: BWAP {{issue.duedate.getYear()}}.{{issue.duedate.getMonthOfYear()}}


Then in the Edit issue action, you can set the fix versions field with {{version}} (the variable you created).


Hope that helps.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

703 views 5 13
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