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

How to create automation that will fail for sure (for test purposes)?

Vera Valshonok
Contributor
December 9, 2023

Hi!

I need to test a new account with a list of people in it that I set as an Automation owner, so that all this list of people will receive a notification email when an automation Fails.

I am trying to test it. 

For the test I need to create an automation that will 100% fail, but I am not succeeding. It keeps saying Issues accrued in the Automation log, but not automation Failed.

 

Please advise scenario that will make automation fail.

2 answers

1 vote
Nicole Robertson
Contributor
December 11, 2023

I would set up an automation to send a webhook and deliberately include invalid JSON so that the response code is an error

Stephen Wrathall
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 18, 2024

Or even simpler, just configure a Send Web Request action to https://makeMeFail 

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 10, 2023

Hi @Vera Valshonok ,

The first question is, how do you want to trigger the rule? Do you want to create a manual trigger? After you figure that out, then try a condition using JQL, e.g component = abc and label = this-that and assignee = Fred and status = "in progress".

The exact JQL will need to be defined by you to align with your scenario. What you should do prior to creating the automation rule is to test that JQL under the advanced search window to ensure that nothing is returned.

Does this make sense? Feel free to share an image of your current automation rule if you need further assistance.

Suggest an answer

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

Atlassian Community Events