Calling the Rest APIS from jira scriptrunner

farhan_shaik97 May 9, 2023

I want to call the external systems(any other App) API from Jira ScriptRunner using a groovy script.

i ran the script but its throwing errors because of these libraries

import groovy.json.JsonOutput



org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 4: unable to resolve class @ line 4, column 1. import ^ Script1.groovy: 2: unable to resolve class @ line 2, column 1. import ^ Script1.groovy: 3: unable to resolve class @ line 3, column 1. import


can any one help me on how to get this working is there any way we can upload libraries in script runner which are popping this errors.


Thank you.


1 answer

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2023

ScriptRunner have built-in tools for REST API calls, you don't need to rely on the "groovyx" packages.


farhan_shaik97 May 9, 2023

Thanks for the quick reply @Aron Gombas _Midori_

But if I want to connect Jira with workday by using the script runner and calling workday from Jira scriptrunner via APIs. How can i achieve this? can u please help me out with this.


Thank you

Pavel Kratky February 29, 2024

Hello, don't know if it is still valid and if you are on Cloud/Datacenter - but this might help you - there are also examples included: REST API FAQs (

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events