I am trying to unpick something that has been working but seemingly broke a little while back.
We have a Jira project for Contract Management and are using Scriptrunner with a Post Transition Function to add an object to Insight.
We are seeing an error when the Post Function runs:
ViewWorkflowTransition.jspa?workflowMode=live&workflowName=Create+Contract&descriptorTab=postfunctions&workflowTransition=1&highlight=4
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
file:/Path/InsightManagerForScriptrunner.groovy: 750: you tried to assign a value to the class 'java.util.Map'
@ line 750, column 21.
Map.value = Map.value.collect { it.toString() }
^
1 error
Am a bit stumped having not used Scriptrunner previously, what can I check in the script to see what might be causing this?
I would expect the word "Map" to be in lower case. But that depends on whether you have an actual variable called "map".
But if you could share a larger snippet of the script I can help further debug.
Thanks @PD Sheehan @Joshua Sneed Contegix for your uber quick responses.
Would you believe it was a typo, changed upper case on the Map.value for map.value and that fixed it !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Simon,
What is on line 750 in the 21st position? It may also help to place a few logging lines in your script so that you can check variable values after it runs, this may allow you to see a data type mismatch or the value you tried to assign to the class. Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.