You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to recreate scripts for ScriptRunner (post functions used in Jira Workflows).
The script is throwing the error at "Import com.atlassian.jira.component.ComponentAccessor".
It is giving the error: "Invalid Imports".
I do have the following reference document here: https://community.atlassian.com/t5/Jira-questions/Getting-import-error-in-Script-runner/qaq-p/1218966
I would like to know the way out for the post-functions used in Jira workflows in Server to work in cloud. If recreating the scripts in cloud is not the option what is the workaround?
Hi @Sourav Mallick ,
The TL;DR is: You'll have to put in some work to adapt or rewrite your scripts. Adaptavist have a nice guide here: https://www.scriptrunnerhq.com/inspiration/blog/rewriting-scriptrunner-scripts-for-migration
Although ScriptRunner Cloud still uses Groovy, the actual Jira APIs that can be used are quite different between Server/DC and Cloud. On Cloud, you can only use the REST and GraphQL APIs, while you had virtually all internal APIs at your disposal on Server/DC. Neither is better or worse, just different with different tradeoffs.
Hope that helps,
Oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.