Use case
Close issues periodically at the end of the day according to the release date of its fix version.
🗒️ Prerequisites
Set the release dates of the fix versions
In Project settings > Versions check that the versions have the appropriate release date.
⚒️ Configuration
Create a new rule and name it appropriately.
Providing a description will help you to identify what the rule does but this step is optional.
Scheduled trigger
Add a Trigger → Scheduled and choose who you want to execute this rule in Run as*
Schedule
Choose Days per Week
Interval
Set to Once per day at 11 55 pm and check the days of the week when the versions can be released.
JQL selector
Add Selector → JQL selector
JQL Query
Use the following expression after replacing the project name.
project = "Project Name"
Boolean condition
Add a Condition → Boolean condition
Expression
dateToString(first(releaseDates(%{selector.issue.fixVersion})),SERVER_LOCAL,USER_LANG) = dateToString({system.currentDateTime},SERVER_LOCAL,USER_LANG)
Transition issue
Add → Action → Transition issue
Set the mode to Transition to status and choose the status Done.
Enable the rule by clicking on the Enable button
📤 Import the example
Import the JSON file below to get started in no time.
📚 Related use cases