We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When i call the ticket i get SocOptionImpl{label='some-label', value='some-value'}
SocOptionImpl{label='some-label', value='some-value'}
How can i parse it?
The text was updated successfully, but these errors were encountered:
@ItamarShDev Can you provide a full but minimal code example?
And please provide basic information like
go version
Thank you
Sorry, something went wrong.
@ItamarShDev Did you find a solution for your problem? I think this would help others in the community as well.
@andygrunwald Thank you for making sure i will write my solution. I have meant to write a comment but forgot!
What i did (and it might be a bad solution) is this:
func (s *service) getFieldSocOptionImplValue(ticketFields *jira.IssueFields, fieldID string) string { var fieldValue string field, exist := ticketFields.Unknowns.Value(fieldID) if exist { fieldMap, ok := field.([]interface{}) if ok { re := regexp.MustCompile(`value='(.*)'`) for _, v := range fieldMap { matches := re.FindStringSubmatch(v.(string)) fieldValue = matches[1] } } } return fieldValue }
No branches or pull requests
When i call the ticket i get
SocOptionImpl{label='some-label', value='some-value'}
How can i parse it?
The text was updated successfully, but these errors were encountered: