Forums

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

Making a REST call using script runner

Mike Whitlock
Contributor
July 10, 2014

Hi. I need to make a REST call to another application from JIRA. The call needs to do a post of json data. I have spent all day googling this and can't come up with anything. Does someone have an example of where they are posting json in a groovy script? I am trying to do this in script runner. Thanks in advance. Mike

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Lee Wonnacott
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 Champions.
March 3, 2021

Hi Karunakar,

I've added an example here that displays how you can perform a simple CQL search with ScriptRunner. 

Please let me know if this works for you! 

Kind regards, 
Lee

0 votes
ว_ว_ฒ ร__เร_อง
May 12, 2022

Tying to execute the following code in the Scriptrunner Console.

import com.onresolve.scriptrunner.canned.confluence.utils.CQLSearchUtils
import com.onresolve.scriptrunner.runner.ScriptRunnerImpl

TAGS
AUG Leaders

Atlassian Community Events