Forums

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

Having trouble adding first web hook automation

Sean Hannan September 20, 2021

I am trying to set up an web hook / automation to create a new issue when an existing issue is transition.  When I couldn't get this to work I changed the automation to just add a single comment however this still failed with errors.  I have checked some documentation and videos and have no idea where I am going wrong and i can't even trigger the webhook correctly

EDIT: The issue I am trying to create is in a different Jira Project

  • Settings | System | Webook | Create a webhook
  • Got the URL did not tick ANY of the related events (so I assume this will trigger on anything)
  • Save
  • Settings | System | Automation Rules | Create rule
  • Rule Details
    Scope : All projects
    Checked Allow rule trigger
    Notify on error : email rule owner every time this rule fail
    Save
  • When : Incoming Webhook
    URL : Used address from above created webbook
    Execute this automation with : * Issues provided in the webhook POST body
    Save
  • Then : Add comment to issue
    Comment : Test Comment

According to the automation, I should now be able to trigger the web hook from a web browse by entering something like

https://automation.atlassian.com/pro/hooks/<webhook ID>?issue=TEST-1
(Where the project prefix is TEST)

When I call that URL however and check the Automation Log it shows me an error that just says : "Incoming web hook : No Issues from the web hook"

I have also tried triggering this web hook from a transition in a one of my workflows but it does not seem to trigger at all

Any assistance would be appreciated 

2 answers

1 accepted

1 vote
Answer accepted
Ajay _view26_
Community Champion
September 20, 2021

Hi @Sean Hannan 

 

For your usecase - "automation to create a new issue when an existing issue is transition" all you need to do is add a automation rule . There is no need to configure the web-hook as automation for Jira takes care of it internally.

There is a playground available with all popular Rules. Have a look at this specific example and modify it for your use-case

Cheers

Ajay

Sean Hannan September 20, 2021

OK - great will check that out now :) thanks

Sean Hannan September 21, 2021

Thanks Ajay - That will do what I am after.  The docs I was reading were obviously old and there is now added functionality meaning I can get away without using webhooks :)

0 votes
Eitzaz Haider
Contributor
February 13, 2025

@Ajay _view26_  what if you want to update other jira instance from first jira instance using web hooks

Suggest an answer

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

Atlassian Community Events