Forums

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

When an event is triggered and an HTTP request is sent, what happens if the target service is down a

Mustafa Karacabey April 22, 2025

Screenshot 2025-04-22 at 17.22.32.png
When use Jira Automation in Insight Asset management for example: 
When an event is triggered and an HTTP request is sent, what happens if the target service is down , is there any retry mechanism or something else, any fallback scneria is there exist ?

1 answer

2 votes
Philipp Sendek
Community Champion
April 22, 2025

Hi @Mustafa Karacabey ,

welcome to the community.
Unfortunately, there is no retry-mechanism, so if the service is down, the request will just go into void and nothing will happen.
If you fear that this might happen, you'd have to build a workaround (e.g. retry mechanism) yourself in the automation.
I'm not very familiar with Asset Automations, so I can't say whether there's a good way to do it. Alternatively, you could use the HTTP Webrequest to trigger a Jira Automation which then triggers a web request to your service and within this Automation, you could do a if (e.g. that you've received a positive response from the service) and if not, you could try it again.

I hope that's comprehendable.

Greetings
Philipp

Mustafa Karacabey April 24, 2025

You said: you could use the HTTP Webrequest to trigger a Jira Automation how to trigger when object created ? firstly, check my service is  available  then if available in UI new object created then trigger latest flows ?

 

UI, create new object --> Check My Api is Up (means you can create new object) --> new object created event triggered --> send my api to response --> finished in ui created object

but if My Api is down u can not create any new object in jira Insights asset Ui

Philipp Sendek
Community Champion
April 28, 2025

Hi @Mustafa Karacabey ,

I'm not sure I fully understand your explanations.
The idea is that you trigger an Jira Assets Automation like you did on the screenshot. But instead of sending a web request to your own API, you send it to the URL of a Jira Automation (Important: Not Asset automation). The incoming webhook trigger is documented here: https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Incoming-webhook
Within this Automation, you can create a webrequest to contact your API. If the request was successful, it can perform the actual creation requestion in your API.

If it wasn't successful, you could somehow build a loop to retry it a few times.
Additionally, you could use a "Send mail" action to send you an email when your API is down and the request could not be send - in this, you could post the JSON that would've been sent to your API, so you can decide if you push it manually, when your API is back up.

Greetings
Philipp

Mustafa Karacabey April 28, 2025

thank you for your answer 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events