Call external SOAP webservice from JIRA


We have a requirement to integrate JIRA with external application (this is NOT JIRA application).

External application has SOAP webservice. I need to call this webservice from JIRA on transition post function.

How do we achieve this? Is webhooks can be used for SOAP? Can we use Script Runner? If Yes, example code would be helpful.

Thanks in advance.

3 answers

JIRA doesn't support SOAP anymore starting from version 7.x.
You should resort to using REST. 

If you want to inform your web app regarding issue related even, then you can use Webhooks.  (shortcut: g+g --> Webhooks)
Depending on your needs, you can write JIRA listeners and make REST calls from the listener as well.

If you want to make to make Rest calls from your web app to JIRA.
Look for Application Links in your JIRA (shortcut: g+g --> Application Links) 
You can link application there, even authenticate it using OAuth and make rest calls on JIRA.

Jira doesn't have incoming SOAP calls any more, but that does not stop you configuring or writing code for outgoing SOAP calls to other applications that do use it.

Thank you for the reply.One of our JIRA instance still at 6.4.10 and soon planning to upgrade to latest JIRA version.

I am having trouble in creating webhook in JIRA 6.4.10 version, i am keep on getting "Selected WebHook has already been deleted. Please reload the page." error. Our JIRA instance does not have any webhooks and i am not sure why it is complaining.

webhooks in enabled and no errors in the logs.

I noticed following error in logs when restarting JIRA:

2017-10-28 20:10:29,040 localhost-startStop-1 ERROR      [sal.core.upgrade.PluginUpgrader] Upgrade failed: bundle [com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin]
com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin]

2017-10-28 20:11:29,470 localhost-startStop-1 ERROR      [atlassian.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.webhooks.plugin.WebHookEventsProcessor.onEvent(java.lang.Object), listener=com.atlassian.webhooks.plugin.WebHookEventsProcessor@e4725cd}]
java.lang.RuntimeException: bundle [com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin]

@Nic Brough [Adaptavist]@Tayyab Bashiryour answers are so very very bad , try to be helpful or don't' reply
damage there is no dislike option

@srilatha tamishettythanks for this question , could you share with me any solution?

Thanks in advance

Hmm.  We gave accurate and helpful answers within the scope of the question.

Not sure what is so "bad" about that?

I am sure you are better than me in english, so could you readf and explain else.

He asked about "invoking in Jira,  soap webservices of an other  external application which is not JIRA ". which is possible.

and you replied with it's not possible,  jira does not support soap webservices. Yes jira does not expose soap webservices , but Jira can consume soap webservices of  external applications

That is what I said, so I'm not sure if you were misreading or misunderstanding what I wrote.

@Nic Brough [Adaptavist]What do you think is the best way to implement a custom code for outgoing request in SOAP and the second question, How to control if the other server (not jira) does not respond, how to control the reintent? is there a way to use queue in services soap?

It's been a long long time since I write any code for access things over SOAP.

I would still take the same general approach - write code that pokes the remote server, waits for a response and then parses the results to check for errors.  If there's a failure or timeout, record it or fail gracefully (For example, if you're in a listener or post function, write a "process failed" comment or field.  If you're in a validator or condition, return an error, so that the "result" is a failure)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,124 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you