Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing custom field input using script runner

Pradeep A
Contributor
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-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 16, 2021 edited

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