I'm running Jira Service Desk Server with Scriptrunner 6.9.1.
I have a Scriptrunner database picker in my request form and I want to validate its content before the issue is created. However in the custom validator I am not able to get its content with the usual
def cField = customFieldManager.getCustomFieldObjectsByName("field name")
def cFieldValue = issue.getCustomFieldValue(cField)
because cFieldValue is always null. I'm sure the code works because I can get other field values. I can also retrieve options when the issue is already created.
Is this a bug? If not, how can I achieve my goal?
By the way:
[com.onresolve.scriptrunner.runner.field.IssueParametersCapturingImmutableCustomField@72617c4c, Approvals, Approvers, Customer Request Type, Linked major incidents, Organizations, com.onresolve.scriptrunner.runner.field.IssueParametersCapturingImmutableCustomField@7d3bc00e, Request participants, Satisfaction, Satisfaction date, System, Time to first response, Time to resolution, Type, issueFunction]
These bolded fields are the ones I can't print.
Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...
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