Accessing custom field input using script runner

Pradeep A July 16, 2021

Hi is there any means to access the information we enter in to the custom field we enter. Say a text box or a drop down. Can we read the value entered into a custom field using script runner.

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 16, 2021

SR lets you use the whole of the internal java API directly, which, of course, has to be able to read custom fields.

Depending on where your script is running, you may use different methods, but in most cases you will be using something like

issue.getCustomFieldValue( <custom field object> )

You may find it useful to spend a few minutes looking at https://library.adaptavist.com - it's got loads of examples of scripts for all sorts of things, certainly including working with fields

Suggest an answer

Log in or Sign up to answer