Forums

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

How to identify groovy script in scriptrunner that submit button is clicked & call POST service ?

Akshay Jain
December 27, 2021

I have written a post script which I want to call and get all the fields value in the Jira incident and send that post request.

Questions:

 1. How get the values of all the fields in groovy script in script runner.

 2. How to find out submit has been clicked because on click on that event we want to trigger this script to run.

3. How to call POST service from script runner.

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Kristian Walker _Adaptavist_
Community Champion
November 5, 2018

Hi Andrew,

Thank you for your question.

 

I have created an example Script Console script which can be ran from the Script Console and shows how to link two issues together. 

You can view the example script here and can use this example code as a reference to see the syntax that must be specified to link issues together so that you can use this approach inside of your script. 

If this response has answered your question can you please mark it  as accepted so that other users searching for a similar question can see that this is a correct answer.

Regards,
Kristian

TAGS
AUG Leaders

Atlassian Community Events