I'm trying to update a timestamp field "end date" with the value of another timestamp field "deployment" + a duration "minutes" field. I can do this in the workflow with a groovy script in JMWE, but I want it to trigger on any issue creation/update if those two fields are actually populated, not just as part of the workflow.
Below is the groovy expression for the update value in a workflow which seems to work.
new java.sql.Timestamp(issue.get("customfield_14025").getTime() + java.util.concurrent.TimeUnit.MINUTES.toMillis(issue.get("customfield_14032").toInteger()))