Automation Rule called by Incoming Webhook - how to get data returned to caller

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2025

I have an automation rule that uses the REST API to retrieve some information from the user/search endpoint. This process needs to be used by multiple other Automation Rules, so I thought to set up this rule with an Incoming Webhook trigger. 

What I haven't yet discovered how to do is to return data from this Automation Rule to the ones that call it.

I found a few other posts with this same question.

One from 2021 in which @Bill Sheboy listed a change request that is no longer publicly visible, or just not accessible to me.

https://codebarrel.atlassian.net/browse/AUT-1031

Another one from 2024 that got no responses.

https://community.atlassian.com/t5/Jira-questions/Incoming-Webhook-Response/qaq-p/2654459

1 answer

0 votes
Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2025

Hey @Trudy Claspill

I think, there's no easy answer to it. I'd think about these two ways how to solve it:

  • Splitting up the automation rule
    • You split up the calling automation rules into two parts:
      • The part before calling the REST API which ends with calling the REST API rule
      • And the part afterwards which starts with an incoming webhook trigger. Your first part of this rule sends the url of this web trigger as an argument to the REST API rule
    • Your REST API rule is setup with the incoming webhook trigger, performs its rest call and in the end sends the web result to the url which it got, resulting in the second part to be called.
  • Wrap the REST API call in a simple Forge app
    • In Forge apps, you can call all sorts of REST APIs. So you could offer a web endpoint which calls the REST API you desire and directly return the desired parameters
    • Then you can use the result directly in your automation rules.

Not sure if these answers are really a solution and simplification to your setup, but I guess that's up to you to decide.

Cheers,
Matthias.

Suggest an answer

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

Atlassian Community Events