From 027a407109c041a41be8b14ed3d6a513e2073b8a Mon Sep 17 00:00:00 2001 From: "jay.guidos" Date: Wed, 25 May 2016 09:27:41 -0400 Subject: [PATCH] Add support for JIRA custom field type "option" --- src/main/java/net/rcarz/jiraclient/Field.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/rcarz/jiraclient/Field.java b/src/main/java/net/rcarz/jiraclient/Field.java index 87c0bdc..b89be72 100644 --- a/src/main/java/net/rcarz/jiraclient/Field.java +++ b/src/main/java/net/rcarz/jiraclient/Field.java @@ -550,9 +550,11 @@ public final class Field { itemMap.put(ValueType.NAME.toString(), realValue.toString()); realResult = itemMap; - } else if (type.equals("string") && custom != null + } else if ( type.equals("option") || + ( + type.equals("string") && custom != null && (custom.equals("com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes") || - custom.equals("com.atlassian.jira.plugin.system.customfieldtypes:multiselect"))) { + custom.equals("com.atlassian.jira.plugin.system.customfieldtypes:multiselect")))) { realResult = new JSONObject(); ((JSONObject)realResult).put(ValueType.VALUE.toString(), realValue.toString());