1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-07-03 00:27:05 +02:00

Merge pull request #85 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

View File

@ -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}
}