Is there a way to execute a stored procedure from JIRA to an external database?

We want to create a record in the external (not JIRA) database based off of a field in a JIRA issue. It is a simple SQL statement that would take user information and add it to the external database when an issue is submitted for new user/employee setup. We currently use the Database Custom Field add-on to pull a dropdown list populated by data from the external database but we cannot identify a way to write data back to the database.

1 answer

In a workflow post  function, we need the ability to run an SQL execute statement to execute a stored procedure on a database other than the JIRA DB. 


Example:  on the transition of a UA – New User item from ‘Open’ to ‘Account Creation’ we need a post function that will execute a script similar to this EXEC MyServer.MyDB.dbo.MyStoredProc @Param1, @Param2

hello I have the same problem,

i need to run an oracle store procedure from JIRA, but i dont understand your post, please, can you tell me where exactly i must put the sentece that you describe above, and please explain me all the parameters that you use

XEC MyServer.MyDB.dbo.MyStoredProc @Param1, @Param2

even de reserved words

thank you so much

We do have the same requirement, is there any documented approach or process as how a Jira application(anything  core app, sd, software) talks to database stored procedures of external database server. 

We have lot many procedures to be called upon and take results and make the appropriate changes to the Jira workflow process. 

we do have script runner from adaptivist.  we do not want to split the code base into different post functions, some generic way?? 

any documented way  ? really appreciate it. 

Thanks advance..

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 16 hours ago in Jira

How you can achieve compact and easy-to-maintain workflows in your JIRA( Server)

This approach requires you to have the JIRA administrative rights. The main aim of this article is to help you achieve an organized, easy-to-maintain workflows in your JIRA instance thereby, reducin...

154 views 0 0
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