mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-06-27 00:21:07 +02:00
Add option type to custom fields
This commit is contained in:
2
issue.go
2
issue.go
@ -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}
|
||||
}
|
||||
|
Reference in New Issue
Block a user