I would like to do the following.
1. Extract the issue value which will return a string like "Topic - Title[ID]"
2. Only use the ID from the string above in my query to the data returned by my elements connect JSON using something like. $.data[?(@.attributes.name == "ID")]
I have tried to write the code using split below but it isnt working.
#set($input = $issue.get("Topic"))
#set($part1 = $input.split("[")[1])
#set($part2 = $part1.split"[")[0]
Part1 is $part1 -> This is always empty.
Is there a way to split a string in the elements connect configuration? Is there a way to use regex?