1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-03-19 20:57:47 +02:00

Merge pull request from guywithnose/optionType

Add option type to custom fields
This commit is contained in:
Andy Grunwald 2017-10-28 20:17:14 +02:00 committed by GitHub
commit 5f3c0596be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -827,6 +827,8 @@ func InitIssueWithMetaAndFields(metaProject *MetaProject, metaIssuetype *MetaIss
switch elemType {
case "component":
issueFields.Unknowns[jiraKey] = []Component{{Name: value}}
case "option":
issueFields.Unknowns[jiraKey] = []map[string]string{{"value": value}}
default:
issueFields.Unknowns[jiraKey] = []string{value}
}