Forums

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

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-
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.
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