Can JJupin schedule a transition after x days and ignore the certain days?

Ethan Foulkes
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 Leaders.
March 1, 2016

Hello,

I'm trying to schedule a transition to happen automatically after 3 days without an update but I want to ignore Saturday and Sunday as days counted. Can JJupin do this?

1 answer

0 votes
Alexandra Topoloaga
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 Leaders.
March 1, 2016

Hi Ethan,

Of course, you can do anything with SIL. smile

You should use  a SIL Service doing something like this:

date auxDate = updated;
number days = 0;
while (auxDate < currentDate()) {
    if (dayOfWeek(auxDate) != "Sun" && dayOfWeek(auxDate) != "Sat") {
        days ++;    
    }
    auxDate = auxDate + "1d";
}
if (days >= 3) {
   //your transition here
}

In order to execute the transiton you want, you can use autotransition.

 

Hope this helps,
Alexandra 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events