Forums

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

How to setup automation for date picker 5 business days before last Business day of the month?

admin-nwalter
Contributor
March 28, 2023

Hello all,

I am trying to setup an automation for a date picker. The situation is as follows:

 

For each ticket made in our project, a custom date picker is set to the last business day of that month (we'll call that field Customdate A for now). There is also a start date that I want to setup 5 business days BEFORE the Customdate A field. So something in the lines of:

{{now.lastBusinessDayOfMonth}} minus 5 business days.

 

My goal is then to setup the automation that whenever the value changes for Customdate A, the start date gets automatically populated based on the above values. Is this possible to setup? I haven't found anything on the official articles yet that could do something like this. 

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 17, 2018

Your JQL would look like this

status changed to Open after -1d or status changed to Closed after -1d

Derek Pence
May 17, 2018

What if I'm looking to find those that were closed within one day for the last month or quarter etc... And thank you for your time.

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 17, 2018

Ah, I see. There is no built-in function like this In ScriptRunner. You could write our own JQL function with Power Scripts or ScriptRunner add-on.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events