How to automatically update Due Date for a reopened task?

I don't see Due Date as an available field when trying to add a post function so that a reopened task's Due Date gets updated to the current day.  Thanks for the help.



1 answer

0 votes


you can use 'update issue custom field' post function for this. choose due date and write something like  %%CURRENT_DATETIME%% in the value field.

Hi, thanks for the reply. Due Date is not showing in my custom field list nor my field I am not sure where to find it.

Because Due Date is not a Custom Field. But it's also not in my dropdown for non-custom Field LIst.

yes it's not a custom field however it should be visible in the list as you can see here. can you show me the ss?

Screen Shot 2016-08-09 at 13.55.16.png

image2016-8-9 9:3:36.png

Hi, above is the list of fields I'm able to use.



which version of JIRA you are using and have you installed JIRA suite utilities plugin?

JIRA 5.2. I'll check on the plugin, not sure.

Yes, I do have that plugin, version 1.3.2.

In similar line... whenever task reopens, I would like to set the EPIC linked Due Date field to the current day in the same post function. Any idea on how to achieve this?

I had written one groovy script to do the same ... but "epicLink.dueDate = issue.dueDate" is not proper to set the needed Due Date value into EPIC linked to the re-opened task !

import com.atlassian.jira.component.ComponentAccessor

import com.atlassian.jira.issue.Issue

import com.opensymphony.workflow.InvalidInputException


def issue = issue as Issue

def customFieldManager = ComponentAccessor.getCustomFieldManager()

def epicLinkCf = customFieldManager.getCustomFieldObjectByName("Epic Link")

def epicLink = issue.getCustomFieldValue(epicLinkCf) as Issue

def dueDate = epicLink.dueDate

if (! issue.dueDate){     throw new InvalidInputException("Release requested 'ITG_IN' Due Date is to be updated, to Commit the code changes into planned Release branch !") }  

if(issue.dueDate > dueDate){     epicLink.dueDate = issue.dueDate     return true }

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

28 views 2 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you