We have some workflows from our Jira server using the JMWE app that have some groovy expressions in them written by someone who has since left.
After migrating to the cloud we now need to convert these to Nunjucks or Jira expression - would anyone have an idea how this would look in Jira - its a simple number generator
//Target End
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import java.util.Date;
import java.sql.Timestamp
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy");
def dt = LocalDateTime.now().format(formatter)
def date = Date.parse("dd/MM/yyyy", dt)
Timestamp ts = new Timestamp(date.getTime());
(unless the field already has a value).
I'm having a hard time understanding what this is supposed to do. It looks like the value is a Timestamp representing the current date. Can you share the full configuration of the Server post-function? And also the custom field type of the field the post function is setting?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.