expose url for ticket
This commit is contained in:
parent
5927b657f9
commit
9ef56fd692
3 changed files with 9 additions and 0 deletions
5
issue.go
5
issue.go
|
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
"text/template"
|
||||
"os"
|
||||
)
|
||||
|
||||
type Search struct {
|
||||
|
|
@ -76,6 +77,10 @@ type Issue struct {
|
|||
Fields *Fields `json:"fields"`
|
||||
}
|
||||
|
||||
func (i *Issue) URL() string {
|
||||
return os.Getenv("JIRA_ROOT") + "browse/"+ i.Key
|
||||
}
|
||||
|
||||
func (i *Issue) String() string {
|
||||
var b = bytes.NewBuffer(nil)
|
||||
err := issueTmpl.Execute(b, i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue