Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events