Hi,
It seems when we use a customfield name which is duplicated then the script is only checking the customfield with the lowest customfield ID. Previously it used to check any customfiled which was available to the context of the project. We noticed the problem since we upgraded to JIRA 6.4.9 on the Script runner 3.1.4.
I know one option is obviously to rename and merge the customfields but what or our other options. Can we use a customfield ID to get the value?
We currently use the below to check the value of a select list.
cfValues['Severity']?.value == 'Sev 1'
this also works:
cfValues['Severity'].toString().contains('Sev 1')
But this doesn't work:
cfValues['customfield_11760']?.value == 'Sev 1'
Thanks,
Gaj