Skip to content

Instantly share code, notes, and snippets.

@rytsh
Created March 22, 2022 15:00
Show Gist options
  • Select an option

  • Save rytsh/942a360755ebc852f5fcd342380e416a to your computer and use it in GitHub Desktop.

Select an option

Save rytsh/942a360755ebc852f5fcd342380e416a to your computer and use it in GitHub Desktop.
for with go template
{
"update":{
"issuelinks":[
{{range $i, $value := .issuelinks }}
{{- if $i}},{{ end }}
{
"add":{
"type":{
"name":"Relates"
},
"outwardIssue": {
"key": "{{$value}}"
}
}
}
{{- end}}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment