My research so far on the Jira forums hasn't yielded an answer... How can I use plusBusinessDays to set a deadline on a Jira field that is X business days from when the ticket is created, plus whatever amount of time it needs to be for the deadline to be consistently end-of-day?
e.g. for a ticket created Monday 9am, if the deadline formula is {{issue.Created.plusBusinessDays(3)}}, then the deadline will be Thursday 9am
For a ticket created Monday 11am, if the deadline formula is {{issue.Created.plusBusinessDays(3)}}, then the deadline will be Thursday 11am
How do I adjust the deadline formula to make this deadline Thursday 6pm for both tickets?
Thanks!!
Hi @Will Portman -- Welcome to the Atlassian Community!
You could set the date / time value to the start of the day plus hours (or use with... to set the specific hour), add your business days, etc.
Remember to test this to ensure it works for your desired time zone value.
Kind regards,
Bill
Thanks Bill! I think I got what I was trying to do with the below formula:
{{issue.Created.toDateTimeAtStartOfDay("America/New_York").plusBusinessDays(3).plusHours(21)}}
I hadn't realized I could feed in a timezone to get the local time at the start of the day (thought it had to be UTC which was trickier) - super helpful.
Thanks again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.