Forums

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

What type of scripts or what programming languages ​​should I use in ScriptRunner and cPrime?

Tony Montana
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.
January 26, 2024

What type of scripts or what programming languages ​​should I use in ScriptRunner and cPrime?

1 answer

2 votes
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.
January 26, 2024

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.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira service management, jsm webinar, ai in jsm, opsgenie integration, incident management, virtual agent, atlassian intelligence, ai-powered service desk, it operations, atlassian learning, service management webinar, team '25 recap

What’s new in Jira Service Management 🤔

Discover how Atlassian is revolutionizing service management with cutting-edge solutions for AI-powered support, HR Service Management, or DevOps connectivity.

Register here ⬇️
AUG Leaders

Atlassian Community Events