Skip to content

Commit

Permalink
for edit template add issue id as comment, also add "comments" as com…
Browse files Browse the repository at this point in the history
…ment

so you can review the comment details while editing
  • Loading branch information
Cory Bennett committed Sep 14, 2015
1 parent d664868 commit 968a9df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jira/cli/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ comments:
{{ or .body "" | indent 4}}
{{end}}
`
const default_edit_template = `update:
const default_edit_template = `# issue: {{ .key }}
update:
comment:
- add:
body: |
Expand All @@ -72,6 +73,10 @@ fields:
name: {{ or .overrides.priority .fields.priority.name }}
description: |
{{ or .overrides.description (or .fields.description "") | indent 4 }}
# comments:
# {{ range .fields.comment.comments }} - | # {{.author.name}} at {{.created}}
# {{ or .body "" | indent 4 | comment}}
# {{end}}
`
const default_transitions_template = `{{ range .transitions }}{{.id }}: {{.name}}
{{end}}`
Expand Down

0 comments on commit 968a9df

Please sign in to comment.