Reference docs for classes/objects available to Groovy/script runner?

Daz July 19, 2021

Just learning Jira and came across scripting using Groovy. I take it this is part of the ScriptRunner addon from Adaptavist? Anyway, when in the editor, how do I know what classes and objects are available in-scope. Is there a set of docs , a Reference manual that provides the classes, objects, methods, attributes and so on. Hard to code if one does not know what artefacts are available.

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 19, 2021

There's no real "reference model", as Scriptrunner mostly works by getting your scripts access to Jira's API - that's almost all of the classes, objects etc you'll be working with and those are documented at https://developer.atlassian.com/server/jira/platform/java-apis/

https://docs.adaptavist.com/sr4js/latest have some useful guides and getting started things, and https://library.adaptavist.com has lots of simple do-one-thing scripts that you can use as examples to build upon.

Daz July 30, 2021

Thanks for that @Nic Brough -Adaptavist- 

Suggest an answer

Log in or Sign up to answer