I'm working on migrating some fields from DC to Cloud. One of the fields has this script for Calculated (scripted) Number Field.
issue.get("customfield_21408")==null ? null : (issue.get("customfield_21408").getTime() - issue.get("created").getTime()) / 1000 / 60
Can someone teach me the api equivalent of it? I tried looking into the documentations but couldn't really see a good guide.