import com.atlassian.jira.component.ComponentAccessor
import java.sql.Timestamp
if (issue.getIssueType().getId() == "193") {
if (issue.getWorkflowId == "<to check the workflow step id... what to insert here? and where to get it?>") {
issue.setDueDate(new Timestamp((issue.dueDate + 3).time)) // set due date
}
if (issue.getWorkflowId == "<to check the workflow step id... what to insert here? and where to get it?>") {
issue.setDueDate(new Timestamp((issue.dueDate + 7).time)) // set due date
}
}
This groovy script will check for conditions by the workflow step id. How can I do so? Can anyone show me the code? Urgent. Need help ASAP. Thanks in advance.