Forums

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

Manually trigger an existing automation

Martin Cleaver
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.
April 29, 2019

I've an automation. It normally runs by noticing field changes.

But additionally I want to be able to trigger it manually.

How do I do that?

I'd expect either a checkbox "Let this run manually" or an action that explicitly invoked another named action.

 

Thanks,

   Martin

2 answers

1 accepted

1 vote
Answer accepted
andreas
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.
April 29, 2019

Hi Martin,

For now the only way to do this is to copy the rule and change its trigger to our 'Manual trigger': https://docs.automationforjira.com/getting-started/triggers.html#manual

We don't currently support rules with multiple triggers.

Cheers,
Andreas

Lonn James Holiday
Contributor
May 23, 2019

Hi,

This conversation is flagged cloud but there is no manual trigger in cloud. Not that I can see.

Is there another way to do this in cloud?

Thanks,

Lonn

Like # people like this
1 vote
Tim Martin
Contributor
April 29, 2019

You could use JIRA custom events within the Automation rule. Eg:

Rule 1: Trigger on field change and fire custom_event

Rule 2: Trigger on manual and fire custom_event

Rule 3: Trigger on custom_event and run actual logic.

 

While it might be slightly easier to maintain the combined logic, I would still do what @andreas suggested. Performance is way better with a single rule without events.

Martin Cleaver
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.
May 1, 2019

Exactly where is the fire custom event option? I suspect this will solve another of my questions where I need to trigger the creation of a customer in a different project. Thanks

Tim Martin
Contributor
May 1, 2019

https://docs.automationforjira.com/getting-started/actions.html#publish-a-custom-event

I just realised this is only for Jira Server; if you're using Cloud you won't have it.

Martin Cleaver
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.
May 1, 2019

Oh okay. Thanks. I guess it's a webhook job then.

Tim Martin
Contributor
May 1, 2019

Yeah - I don't have access to cloud, but you could probably still achieve something similar with a customfield acting as a flag. Triggers toggle the customfield. Main rule triggers on field change.

Still, just go with what Andreas says :).

Suggest an answer

Log in or Sign up to answer