add jira ticket template

This commit is contained in:
Stanislav Seletskiy
2019-08-06 18:07:40 +03:00
parent 07a8e3f9d7
commit 58f4a55100
3 changed files with 13 additions and 7 deletions

View File

@@ -130,6 +130,12 @@ func templates(api *confluence.API) (*template.Template, error) {
`{{ end }}`,
),
`ac:jira:ticket`: text(
`<ac:structured-macro ac:name="jira">`,
`<ac:parameter ac:name="key">{{ .Ticket }}</ac:parameter>`,
`</ac:structured-macro>`,
),
// TODO(seletskiy): more templates here
} {
templates, err = templates.New(name).Parse(body)