Need to merge 3 groovy scripts into one

Nishant Kansal March 31, 2016

Hi,

I have 3 groovy scripts- A, B and C 

1. "A" calculates certain values and puts them into an array
2. "B" takes those values as inputs from A and connect to an external database and returns a value
3. "C" takes that return value from "B"  

As of now, I have hard coded the values in each of the script to develop and test. However, in real time, I want them to be one script with the above dependency in place. 

How I can combing them under one script? This script then will be added as a post function in JIRA.

Please help. 

Thanks, 
Nishant

1 answer

0 votes
Vasiliy Zverev
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 Leaders.
April 10, 2016

You can create a function for each script and then call this function into requared order. For example:

function_C( function_B (function_A() ) )

Suggest an answer

Log in or Sign up to answer