You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Does anyone know if there is full API documentation for the ScriptRunner class: com.onresolve.scriptrunner.db.DatabaseUtil?
The Adaptavist documentation links to groovy.sql.Sql , but it's not the same thing.
The Groovy documentation is somewhat better, but I don't think it's the same as the Adaptavist class.
I haven't found anything by googling or searching the Community, either.
Hi @WW
For your requirement, you could visit this ScriptRunner Documentation. It provides some examples of the usage of ScriptRunner's DatabaseUtil.
Do note; the DatabaseUtil is mainly for making queries to the Database. If you want to do any insertion or updates, using DatabaseUtil is not correct. For that, you would need to look into the Legacy Approach.
I hope this helps to answer your question. :)
Thank you and Kind Regards,
Ram
I've already seen the ScriptRunner documentation. I was wanting to see the Java API documentation for the class so that I know, for example, what object type "rows" is so that I can see what further methods are available.
It's almost never a good idea to update the database directly. So, no, I am not planning to do insertions, updates, or deletions.
I still would like the full Java API documentation on DatabaseUtil if it's available somewhere or could be made available.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @WW
We do not have any API documentation for this publicly available for that code.
Thank you and Kind Regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. That answers my question.
Secondary question: do you think the documentation will ever be made public?
Thanks again!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.