For those using Script Runner for Jira please see Adaptavist Script Runner Documentation
We do not endorse or support the Adaptavist Applications and they are used here as a demonstration for one of the most widely used coding plugins in Jira
If you are utilising our public interface you can utilise the below
public interface ICfDataMapper {
/**
*
* Look up customfield based on ID
*
* @param id Id of customfield typically 10000 and above
* @return
*/
CustomField locateCustomField(long id);
/**
*
* Get the custom field associated with map
*
* @param name
* @return
*/
CustomField getMappedCustomField(String name) throws Exception;
}