How to set the Due Date during the Issue Creation Event Listener, without using the external plugin?

arunk August 28, 2017

I have a small issue while i use the below code.

     MutableIssue mutableIssue = (MutableIssue) issueEvent.getIssue();
     if(projKey.equals("its")){
       Timestamp currentTimestamp = new Timestamp(cal.getTime().getTime());
       mutableIssue.setDueDate(currentTimestamp); // This line is not setting the due date.
       issueManager.createIssueObject(issueEvent.getUser(), mutableIssue); // This line creates issue multiple times....

}

0 answers

Suggest an answer

Log in or Sign up to answer