Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

using graphql with script runner

Michael Shechter February 17, 2020

Hello,

i'm using script runner for jira cloud and  i would like to know is it possible to execute graphql  queries with script runner.

do i need external libraries?

Thanks.

 

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 18, 2020

Hi Michael_S,

Thank you for your question.

I can confirm that you cannot import external libraries with ScriptRunner for Jira Cloud as we do not support this and you can only import the standard JAVA 8 SE classes and the libraries described in the documentation page located here.

I can however confirm that it is possible to write a script that would interact with an external application as long as the application contains a rest API which can be called to interact with it.

In order to do this,you should review the Rest API documentation for the external application in order to see what Rest API's you will need to use to achieve this and we would advise contacting the external applications support team, if you have any questions on how their third party API works.

We have a documentation example located here which shows how you can post a message to HipChat and this example may prove a useful reference in helping you to create the script that you require, as it shows an example of making an API call to an external rest API.

I hope this information helps.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer