Skip to content

Commit

Permalink
fixing portfolio epic issue (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennec authored Jun 28, 2018
1 parent 9d5a6f3 commit d954ef1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,13 @@ private void setJiraJSonFields(JSONObject fieldsObj, Map<String, String> fields,
String issueTypeId) throws JSONException {

// We need to know the types of the issue fields in order to parse them to number when needed.
Map<String, JIRAFieldInfo> fieldsInfo = getFields(projectKey, issueTypeId);
// But that's only valid if we have the issueTypeId, which we won't if creating portfolio Epic - and we don't care.

Map<String, JIRAFieldInfo> fieldsInfo = new HashMap<>();

if (!StringUtils.isBlank(issueTypeId)) {
fieldsInfo = getFields(projectKey, issueTypeId);
}


for (Map.Entry<String, String> fieldEntry : fields.entrySet()) {
Expand Down

0 comments on commit d954ef1

Please sign in to comment.