Need to merge 3 groovy scripts into one


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. 


1 answer

0 votes
Vasiliy Zverev Community Champion Apr 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
Community showcase
Posted Tuesday in Statuspage

How do your teams prepare for really high (planned) traffic days like Cyber Monday?

Hi there! Shannon from Statuspage here.  👋  With Cyber Monday quickly approaching, we're looking to hear from Atlassian customers – specifically from teams who touch incident response li...

54 views 0 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you