I am trying to set the datetime field for an issue by picking the value from another issue.
Problem I am facing is that I am able to set the value but with different timezone. Is there any way I can set the time zone to the loggedin user.
I am trying with below code
import com.atlassian.jira.timezone.TimeZoneManager;
import java.util.TimeZone
TimeZone timeZone = timeZoneManager.getLoggedInUserTimeZone();
simpleDateFormat.setTimeZone(timeZone);
I am getting groovy.lang.MissingPropertyException: No such property: timeZoneManager for class
Can anyone help in resolving this