Forums

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

Can I trigger a manually triggered rule from another automation rule?

Nate Dickinson
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.
October 19, 2022

I want a rule with a manual trigger to be fired when another rule completes. I have turned on the "allow this rule to be triggered by another rule" option, but I'm not seeing a way to do this. I'm assuming that the option to be triggered by another rule only applies to when a certain condition is met. 

pseudocode: I'm using JSM, but this applies to JS as well

 

Rule 1: (this runs when a ticket is created)

  1. Analyze who sent the support request 
  2. Change the component based on sender 
  3. Timestamp in comments 

 

Rule 2: (this is a manually triggered rule) 

  1. Analyze client based on component 
  2. add new comment containing client links 

 

I want rule 1 to complete, and then run rule 2. I know I could build rule 2 into rule 1, but I also need this to be manually triggered for times when a ticket is created internally and the components change. Or when the rule breaks, and I need to force the visibility of client links. 

1 answer

1 accepted

1 vote
Answer accepted
John Funk
Community Champion
October 19, 2022

Hi Nate,

The quick answer is you can't. That's why they are manually triggered rules. 

But you can copy the rule and turn it into a regular rule that would be triggered by some other event based on the first automation rule firing. 

Nate Dickinson
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.
October 19, 2022

Thanks John. That's what I thought. This manually triggered rule would be nice to keep as a "one source of truth" rule. In this case the client links are constantly being added to, so making two rules requires 2x the effort when an update is required. Still though, this could be ok and is a major improvement to not automating at all. 

Bill Sheboy
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.
October 19, 2022

Hi @Nate Dickinson 

Yes, and...to your and John's thoughts...

When I see a scenario like this I wonder "under what conditions would I trigger that manual rule?"

If there are specific issue/entity changes leading to it (or a schedule, or magic comment, etc.) perhaps the rule does not need a manual trigger.  Once that is discovered I can change the trigger and take advantage of the situation to trigger the rule from another one.  And then as you describe, the logic is only in one place/rule, supporting reuse.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events