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

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

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

0 votes

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.

Suggest an answer

Log in or Sign up to answer
TAGS

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