Example scripts
To homepage
Jira

Set The Due Date Field On An Issue
App in script

ScriptRunner For Jira
by Adaptavist
Compatibility

Jira
Language |
groovy
import java.time.LocalDate
// Get a future date to set as the due date
def dueDate = LocalDate.now().plusDays(14)
Issues.getByKey('<IssueKeyHere>').update {
setDueDate(dueDate)
//You can also specify the date as a String parameter using this method and format:
// setDueDate("2025-12-31")
}
Having an issue with this script?
Report it here