You can't reference the values of a custom field this way. Try this script:
def cf = ComponentAccessor.getCustomFieldManager().getCustomFieldObject(10084)
issue.getCustomFieldValue(cf) == 'Value'
No success, follow the error:
[Static type checking] - Cannot find matching method sr.json.issue.fields#getAt(int). Please check if the declared type is right and if the method exists. @ line 1, column 1.
Static type checking errors are warning and do not necessarily mean that it won't run.
I don't use cloud so I can't comment if this will work or not, but you should give it a try,
One idea I'm getting from reading the documentation is to try
issue.fields?.value == 'Value'
Hi everyone, welcome to the kb articles for Opsgenie FAQs. I'm one of the Technical Support Engineers for Opsgenie who will be providing weekly posts on FAQs from customers. All alerts are ...
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