What type of scripts or what programming languages should I use in ScriptRunner and cPrime?
Welcome to the Atlassian Community!
Jira is mostly written in Java and Scala, and Scriptrunner, by it's very nature, exposes the Java underlying it.
But Jamie also wrote it to support Groovy, so you can use that in there as well.
Power Scripts has its own language (SIL), and you mostly have to learn and use that instead of a well known common language. (It is very easy to learn and use though, if you've got a bit of Jira admin experience)
A while ago, we added HAPI to Scriptrunner, as a helper API as well, it is very specific to Jira, and like Power Scripts' SIL, there's a bit more language to read about, but it works alongside your Java or Groovy, replacing some of their more complicated bits. For example, to update a custom field in Java or Groovy, you need a couple of imports and one of the issue or field manager calls before you can write "set custom field to X", whereas with HAPI, you can just use issue.setCustomField. You can think of HAPI as extending the Java and Groovy that Jira uses, rather than a new language.
Discover how Atlassian is revolutionizing service management with cutting-edge solutions for AI-powered support, HR Service Management, or DevOps connectivity.
Register here ⬇️Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.