Hi to All,
in order to manipulate the Value of the the custom fileds using Groovy script, I would need to use the following features (function) that they are present in Java :
It would be possible?
Thanks 4 the answer.
Groovy is a JVM based scripting languages with it's own set of idiosyncracies , here's the code snippet with requested methods -
println 'ABCDEF'.length() // output: 6
println 'ABCDEF'.substring(1) // output: BCDEF
println 'ABCDEF'.indexOf('C') // output: 2
println 'ABCDEF'.replace('CD', 'XX') // output: ABXXEF
Math class is available from the JVM itself at run-time thus groovy can use it as well. "Math.min (1,2)" will return smaller of the two numbers.
Yes, it is possible. Groovy is based on Java that is why you can just use pure Java there. That would be a simple script which you can try in Script Console
def str = "String"
Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot