The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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