1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-06-16 23:47:50 +02:00
This commit is contained in:
Andy Grunwald
2016-03-27 14:18:31 +02:00
parent e3921e7773
commit ec697566b2
2 changed files with 4 additions and 4 deletions

View File

@ -171,7 +171,7 @@ type IssueLink struct {
Type IssueLinkType `json:"type"` Type IssueLinkType `json:"type"`
OutwardIssue Issue `json:"outwardIssue"` OutwardIssue Issue `json:"outwardIssue"`
InwardIssue Issue `json:"inwardIssue"` InwardIssue Issue `json:"inwardIssue"`
Comment Comment `json:"comment"` Comment Comment `json:"comment"`
} }
// IssueLinkType represents a type of a link between to issues in JIRA. // IssueLinkType represents a type of a link between to issues in JIRA.

View File

@ -64,7 +64,7 @@ func TestIssueAddComment(t *testing.T) {
c := &Comment{ c := &Comment{
Body: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.", Body: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
Visibility: CommentVisibility{ Visibility: CommentVisibility{
Type: "role", Type: "role",
Value: "Administrators", Value: "Administrators",
}, },
} }
@ -100,7 +100,7 @@ func TestIssueAddLink(t *testing.T) {
Comment: Comment{ Comment: Comment{
Body: "Linked related issue!", Body: "Linked related issue!",
Visibility: CommentVisibility{ Visibility: CommentVisibility{
Type: "group", Type: "group",
Value: "jira-software-users", Value: "jira-software-users",
}, },
}, },
@ -115,4 +115,4 @@ func TestIssueAddLink(t *testing.T) {
if err != nil { if err != nil {
t.Error("Error given: %s", err) t.Error("Error given: %s", err)
} }
} }