Jira: 7.1.9
My Goal: WebHook to ScriptRunner REST Endpoint
I've created a WebHook to RequestBin but it doesn't work
In the Log file (host/plugins/servlet/gantt/get/logfile) aren't any entrys at the time I do an event
which should fire the web hook
image2016-11-16 15:23:39.png
But there is also another web hook registered (not by myself) and they told me
that there webhook works
I also tried to use other events, but without any success
Community moderators have prevented the ability to post new answers.
It needs to accept a POST request. In your original question you demonstrated that you had written an endpoint for GET.
Example:
import com.onresolve.scriptrunner.runner.rest.common.CustomEndpointDelegate import groovy.json.JsonBuilder import groovy.transform.BaseScript import javax.ws.rs.core.MultivaluedMap import javax.ws.rs.core.Response @BaseScript CustomEndpointDelegate delegate doSomething(httpMethod: "POST") { MultivaluedMap queryParams, String body -> log.warn ("web hook running") return Response.ok(new JsonBuilder([abc: 42]).toString()).build(); }
Note, if you use the wrong verb (if not specified it defaults to GET), you will see in your logs:
[atlassian.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 404 when posting to web hook at
If you configure security you will see:
[atlassian.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 403 when posting to web hook at
I have changed my REST Endpoint Script to an http post method
But when I do a sprint event nothing happened
as i mentioned, I think the problem isn't the script?
There a also no error or warn entrys in the log file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the problem is not the script too. Try creating a web hook pointing to https://requestb.in/ and see if that works. If not you should contact Atlassian support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
like in the picture at my question I have done that and it is not working...
But it is really strange, because there is another webhook which is working
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not being funny, but to test this you are creating sprints right?
What JIRA version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Think you should contact Atlassian support. Works fine for me... and using requestbin is a good test.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dominik,
have you got the solution after contacting the support? Cause I got exactly the same problem as you did, also I couldn't find anything helpful elsewhere. If you already got the solution could you please share it? Thanks very much.
By the way, did you do that for a internship at a seat comfort apartment somewhere? If so that makes me the one going on with your job...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.