Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <!-- @@Format: DATE -->
  2. <!-- @@Formula:
  3. import com.atlassian.jira.component.ComponentAccessor;
  4. import com.atlassian.jira.issue.Issue;
  5. import com.atlassian.jira.issue.link.IssueLink;
  6. import com.atlassian.jira.issue.link.IssueLinkManager;
  7. import com.atlassian.jira.project.version.Version;
  8.  
  9. Long timestamp = 0;
  10. if (issueObject.getFixVersions() != null) {
  11. for (Version version : issueObject.getFixVersions()) {
  12. if (version.getReleaseDate() != null && version.getReleaseDate().getTime() > timestamp)
  13. timestamp = version.getReleaseDate().getTime();
  14. }
  15. }
  16. if (timestamp>0)
  17.  
  18. return new Date(timestamp);
  19. return null;
  20. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement