Hi,
I'm trying to use an array in a custom calculated text field in JIRA.
In order to do define a 2 dimension array like this :
myArray = [
"priority1" => [1 => "val1", 2 => "val1", 3 => "val1", 4 => "val4"],
"priority2" => [1 => "val1", 2 => "val1", 3 => "val1", 4 => "val4"],
"priority3" => [1 => "val1", 2 => "val1", 3 => "val1", 4 => "val4"],
"priority4" => [1 => "val1", 2 => "val1", 3 => "val1", 4 => "val4"],
"priority5" => [1 => "val1", 2 => "val1", 3 => "val1", 4 => "val4"],
]
And using it like :
myArray[issue.get("priority").name][issue.get("customfield_12345")]
I found several example that I tried unsuccessfully :
def myArray = ["ABCD", "EFG", "HIJK"]
or
String[] list1 = [request_type1, request_type2, request_type3]
Does anyone has an example for me in this context ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.