Forums

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

Manually Trigger a Scheduled Automation Rule

Ray Letoa
Contributor
July 25, 2023

Hey team

 

So I have a Scheduled Global Automation Rule that runs every hour, from looking everywhere once I click save and jump out that hour countdown starts. What I would like to do is to have a manual trigger automation Rule that when clicked it starts this Scheduled Automation Rule countdown.

P.S Ideally would not like to have to get something from marketplace

Anyone have any ideas ? please and thank you in advance

3 answers

0 votes
Sean Saxon August 12, 2024

I'm not sure when they added this functionality, but you can run the rule, by clicking the 3 dots, to the right of "Return to Rules" and select Run Rule

 

RunRule.png

 

0 votes
Laurie Sciutti
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 26, 2023

Hi @Ray Letoa ~ can you just disable the rule and enable it with a CRON to run it according to your time period?  Then disable it again.  Enabling it when you need it, combined with your "countdown" time period in your scheduled trigger should do what you need...

Snag_18f96ec.png

0 votes
Hieu
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.
July 25, 2023

Could you try to set the trigger time/scron expression to minutes.

Or change the trigger from Scheduled to Issue Updated (also check and modify the JQL to fit with the rule)

Ray Letoa
Contributor
July 26, 2023

Hey @Hieu  - thanks for the suggestion, could you elaborate on your method as Im fairly new to Jira Automation, what I have tried is have a rule execute on 'Issue Updated' and it can create a singular new ticket/issue, but ideally Im trying to have that a ticket STARTS creating a ticket/issue every hour after it has been triggered which is where Im stumped. Scheduled I saw just runs your instructions given at the time period you set (please correct me if Im wrong here)

Laurie Sciutti
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 26, 2023

Hi @Ray Letoa ~ that additional information helps!  😀  Use the Scheduled trigger combined with a JQL that searches for issues updated <= -1h.  There is also an option to allow other rule actions to trigger your rule (as shown in the second screenshot below).  HTH

 

Snag_1a08248.png

 

Snag_1a13c31.png

Ray Letoa
Contributor
July 26, 2023

@Laurie Sciuttiyou absolute star - the issue Im running into now is that I have two tickets created at different times one created at 1:30pm and another at 1:45pm, Ideally the ticket created at 1:30pm would repeat at 2:30pm and the same with the ticket created at 1:45pm to then clone/repeat at 2:45pm.

What Im finding is that the rule is executed at one hour intervals from when run and clones all tickets simultaneously rather than at staggered intervals

Do you know of any way around this ?

thanks in advance

Screenshot 2023-07-27 115914.png

Laurie Sciutti
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 27, 2023

Hi @Ray Letoa ~ then use the created >= -1h in your JQL and ensure the "Only include" checkbox is checked.  If that still doesn't work for you then you can probably create a dummy datetime field that you set through an automation rule to equal create date + one hour that you can then use as a trigger in another automation rule that creates your additional issue.  This seems less than ideal though.

Can you provide the full details of what you're trying to do?  Like what additional conditions need to be met to automatically create new issues after one hour?

I did find some additional community posts similar to what your are asking that might help as well.

 

Snag_71862df.png

Suggest an answer

Log in or Sign up to answer