Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Documentation for DatabaseUtil?

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.

1 answer

1 accepted

0 votes
Answer accepted

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.

Hi @WW

We do not have any API documentation for this publicly available for that code.

Thank you and Kind Regards,

Ram

Thank you.  That answers my question.

Secondary question: do you think the documentation will ever be made public?

Thanks again!

Hi @WW

At the moment, I don't think so.

Thank you and Kind Regards,

Ram

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

408 views 2 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you