Skip to content
New issue

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

replace " with ' in template #465

Open
atsalolikhin-spokeo opened this issue Jul 21, 2022 · 0 comments
Open

replace " with ' in template #465

atsalolikhin-spokeo opened this issue Jul 21, 2022 · 0 comments

Comments

@atsalolikhin-spokeo
Copy link

Hello,

I am trying to feed the output of go-jira to tv

I am including the Jira summary field in my output and some of the summary values have commas in them; so I added double quotes to my go template like so:

{{ range .issues }}{{ .key | append ","}}"{{ .fields.summary }}",{{ .fields.customfield_10004 }},{{ range .fields.customfield_10006}}{{ .name }}{{ end }},{{ .fields.labels }}
{{ end }}

Another issue is that some summary values have double quotes in them -- I'd like to do a find and replace to change them to single quotes, so it doesn't mess up the CSV parsing.

I am not fluent in Go. A little help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant