mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-03-17 20:47:57 +02:00
Add option type to custom fields
This commit is contained in:
parent
820eaa18f8
commit
9ec4d0491e
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}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user