The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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 Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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