Skip to main content
Example scripts
arrow icon
To homepage
Jira
Cloud icon
Cloud

Set The Due Date Field On An Issue

Created 1 year ago, Updated 3 day(s) ago
App in script
ScriptRunner For Jira
ScriptRunner For Jira
by Adaptavist
Compatibility
compatibility bullet
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