Advertisement
Guest User

Untitled

a guest
May 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. public void setCreatedFolders(ApplicationUser user, Issue issue) throws SearchException {
  2.     if (issue == null) {
  3.         return;
  4.     }
  5.  
  6.     Issue originalBid = getOriginalBid(issue);
  7.     var created = REALIZATION_CREATED;
  8.     var name = issue.getIssueTypeObject().getName();
  9.  
  10.     // tu daj if name != JiraConstants.ISSUE_TYPE_BID || name != ... tak return
  11.  
  12.     if (name == JiraConstants.ISSUE_TYPE_BID)
  13.     {
  14.         CustomField cfAttributes = customFieldManager.getCustomFieldObjectByName(JiraConstants.FIELD_ATTRIBUTES);
  15.         Object attributes = issue.getCustomFieldValue(cfAttributes);
  16.  
  17.         if (attributes == null || isBidDuplicate(issue)) {
  18.             created = OFFER_CREATED;
  19.         }
  20.     }
  21.     issuePropertyService.saveSambaStatusProperty(user, originalBid, created, true);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement