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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Joshua Yamdogo @ Adaptavist
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.
October 24, 2018

Hi Mariana,

We have example scripts on our new website that detail how to set custom field values. Take a look here: https://library.adaptavist.com/entity/update-the-value-of-a-custom-field-in-jira

Have you actually tried running the script? The static type checker may tell you there's an error, but it'll probably work anyway.

Thanks,

Josh

TAGS
AUG Leaders

Atlassian Community Events