Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I have a custom field called due date. I want to auto-fill it to 2 weeks from the date the issue is transitioned to a particular status. Is this possible?
Hello @Nischal Sharma
You need add-ons for implementing this feature. You can use Automation, Script runner or Power scripts or JSU. Multiple options are available.
I personally use Script runner quite a lot and if you use Script runner then here is an example explaining exactly what you need to do.
https://community.atlassian.com/t5/Jira-Core-questions/Automatically-Set-Due-Date/qaq-p/240779
issue.setDueDate(new Timestamp((new Date() + 14).time))
Here 14 is the number of days i.e. 2 weeks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Tanya eluded, you would need an addon to perform the ‘calculation’ portion of you requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nischal,
Yes, this is possible using a post function. You should edit the workflow and add this on the relevant transition.
I guess to implement this kind of calculation you would need to use script runner abilities and write a script that will implement this requirement.
If you need any assistance with that you are welcome to PM me 😊
Cheers,
Tanya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.