Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*import java.time.LocalDate
- import java.sql.Timestamp
- import com.atlassian.jira.component.ComponentAccessor;
- if(issue.getIssueType().getId() == '11624'){ //HD SAR: 10.1.1 Выпуск отчётов по запросам
- def customFieldManager = ComponentAccessor.getCustomFieldManager();
- def field = issue.getCustomFieldValue(customFieldManager.getCustomFieldObject(11855L as Long)) as Timestamp//Дата начала периода
- def fieldEnd = issue.getCustomFieldValue(customFieldManager.getCustomFieldObject(11856L as Long)) as Timestamp//Дата окончания периода
- long timestamp = field.getTime();
- Calendar cal = Calendar.getInstance();
- cal.setTimeInMillis(timestamp);
- def duedateYear = cal.get(Calendar.YEAR);
- long timestampEnd = fieldEnd.getTime();
- Calendar calEnd = Calendar.getInstance();
- calEnd.setTimeInMillis(timestampEnd);
- def duedateYearEnd = calEnd.get(Calendar.YEAR);
- if(duedateYear > 2017 && duedateYearEnd > 2017){
- return true
- }
- }
- return false*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement