Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Cant set value for FormField from scriptrunner v4.1.3.24

After upgrading from v 3.1.3 to script gives error:

 /rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.behaviours.BehaviourManagerImpl] Script function failed on issue: issue: PYR-63667, user: viktork, fieldId: components, file: com/amayasoftware/scriptrunner/project/pyr/behaviours/PyrAllIssueTypesSetTeamsBehaviour.groovy
groovy.lang.MissingMethodException: No signature of method: static java.lang.Long.parseLong() is applicable for argument types: (java.lang.Long) values: [10710]
Possible solutions: parseLong(java.lang.String), parseLong(java.lang.String, int)
at com.onresolve.jira.groovy.user.FormField$_getValue_closure3.doCall(FormField.groovy:223)
at com.onresolve.jira.groovy.user.FormField.getValue(FormField.groovy:221)
at com.amayasoftware.scriptrunner.project.pyr.behaviours.PyrAllIssueTypesSetTeamsBehaviour$_SetEstimateWarning_closure3.doCall(PyrAllIssueTypesSetTeamsBehaviour.groovy:72)
at com.amayasoftware.scriptrunner.project.pyr.behaviours.PyrAllIssueTypesSetTeamsBehaviour.SetEstimateWarning(PyrAllIssueTypesSetTeamsBehaviour.groovy:70)
at com.amayasoftware.scriptrunner.project.pyr.behaviours.PyrAllIssueTypesSetTeamsBehaviour$SetEstimateWarning.callCurrent(Unknown Source)
at com.amayasoftware.scriptrunner.project.pyr.behaviours.PyrAllIssueTypesSetTeamsBehaviour.Behave(PyrAllIssueTypesSetTeamsBehaviour.groovy:149)

 I do it like this:

def componentsIds = newComponentsFormFieldValues.collect{component ->}
log.debug " Value " + componentsIds (output is  Value2 [12632, 12639, 10710])


1 answer

Anyone? Any ideas? 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

222 views 0 6
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you