Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to setup due date automation for 'time-in-status'

nickburnsap July 23, 2020

I've set up a Kanban board going from Ready > In Progress > On Hold > In Review > Done.

When a dev takes an issue from Ready to In Progress they add a due date reflecting the number of weeks they think it will take to do.

What I'd like to do for them is have the due date change automatically when the issue is added to On Hold, freezing it (or rather incrementing it one day forward per day it's on hold, so they're not punished for putting it on hold. ie:

  • When an issue is moved to On Hold
  • For each day an issue status = On Hold 
  • Add one day to the due date

So for example:

  • If the issue is started Jan 1st, and is due Jan 10th
  • On Jan 4th I put it On Hold
  • Jan 5th the due date should be Jan 11th
  • Jan 6th it should be Jan 12th
  • Jan 7th I take it out and put it In Progress.
  • Jan 8th the due date should still be Jan 12th since it's no longer On Hold.

Below is what I currently have - and I'm not sure if it's working right but I suspect it's not...
Update: It indeed does not work, it just makes the due date tomorrow.

Any help setting this up would be greatly appreciated! 

Cheers,

Annotation 2020-07-23 092238.jpg

1 answer

1 vote
Eric
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 26, 2020

Hi @nickburnsap 

 

To increment the issue's due date, you can use:

{{issue.duedate.plusBusinessDays(1)}}

You can also use plusDays but I suspect plusBusinessDays could be more appropriate for your use case? (so the new due date doesn't fall on a Saturday or Sunday). 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events