Forums

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

Automation rule only works in working hours

Faizan Iftikhar
Contributor
September 26, 2022

Dear Members,

Doing Good!

Rules are working after office hours , need a solution to work only in working hours. Any help

Thanks in Advance!!

 

BR,

10 answers

2 votes
Curt Holley
Community Champion
September 28, 2022

It depends @Faizan Iftikhar 

Most rules trigger via a change occurring on an issue (or an issue is created) by a human. so most rules will not be triggered after hours because no-one is working to cause the event that would trigger the rule.
For rules that you tell them when to run (i.e. Via a schedule), well we have been through that scenario in the previous comments.

Why is this "how do stop the rules from running after hours" such a concern? Do you have a rule that is? if so, what is it all about?

I'm struggling to think of "why" or "How" this is a concern really.

0 votes
Faizan Iftikhar
Contributor
September 28, 2022

@Curt Holley 

That's sounds great ... But how we restrict rule to 8 hours i.e. business hours. Do not excute after working hours, can we do that ... Any idea

0 votes
Curt Holley
Community Champion
September 28, 2022

OK @Faizan Iftikhar so set up 2 rules like the one I showed above.
One for a suitable time in the morning and one for a suitable time in the afternoon.

0 votes
Faizan Iftikhar
Contributor
September 27, 2022

Hi @Curt Holley 

Thanks for your reply.

 

I am trying to achieve here is:

Need to run rule 2 times in a day within 8 working hours (Mon-Fri)

 

I hope you understand my point. Thanks

0 votes
Curt Holley
Community Champion
September 27, 2022

Hi @Faizan Iftikhar 

Can you provide more info on what you are trying to achieve with this rule please?

Can it just run once a day, five days a week? if so then something like this would work.
2022-09-28 18_32_54-Automation.png

To create a schedule that starts and stops at certain times during the day, you will need to study up on CRON Construct cron expressions for a filter subscription | Jira Software Cloud | Atlassian Support even then, depending on what you are trying to achieve, it might be difficult to get a JQL filter to fit the scenario. 

0 votes
Faizan Iftikhar
Contributor
September 27, 2022

Thanks @Omar Mohamed Fathi ( IT )  

But in that case it will run in for example every 5 min that includes weekends. From where i can differentiate work days and weekends in Automation to fulfill the requirement. Please guide...

0 votes
Omar Khaled September 27, 2022

you can create a trigger called Rescheduled and make it run every 5 minutes for example as follows  to avoid failing in on working hours 

 

schaduled.JPG

0 votes
Faizan Iftikhar
Contributor
September 27, 2022

Hi Omar,

New here for Jira, I have heard schedule in Automation . Would you please elaborate about reschedule

Thanks

0 votes
Omar Khaled September 27, 2022

Did you try using the reschedule ? trigger 

0 votes
Faizan Iftikhar
Contributor
September 26, 2022

@[deleted] @Fabian A_ Lopez _Community Leader - Argentina_ Florida_ California_ 

 

Need your verdict please, thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events