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.

 

-Ben

1 answer

hello

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 list....so 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.

 

hi

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

log.setLevel(org.apache.log4j.Level.DEBUG)

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
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #2: Let’s talk severity levels

Welcome to your weekly Jira Ops Early access program update, where we’re sharing news and updates on Jira Ops' progress as we work toward our 1.0 release. If you ever want to drop us feedback or idea...

42 views 0 0
Read article

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