Forums

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

How to get value from SQL and display on jira cusotm field

Devendar Gangapuram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 10, 2022

Hi Team,

 

I need to get a value form SQL DB and display it on JIRA custom filed. SQL simple select query to get a single value. 

 

Thank you

1 answer

0 votes
Tom Lister
Community Champion
November 10, 2022

HI @Devendar Gangapuram 

There are notes from Adaptavist on accessing a database here

https://scriptrunner.adaptavist.com/latest/jira/recipes/misc/connecting-to-databases.html

You are also able to set up a database connection as a resource
Screenshot 2022-11-10 at 11.26.51.png

The exact mechanism as to how you get results into your field will depend on where you are planning to make the update e.g. in a post-function, in a behaviour?

Devendar Gangapuram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 10, 2022

Thank you @Tom Lister for the quick reply. I will do this and let you know in case of any furhter info if I needed.

Suggest an answer

Log in or Sign up to answer