1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-01-10 00:28:02 +02:00

Make issue link direction visible

This commit is contained in:
Kenny Levinsen 2016-06-07 22:07:28 +02:00
parent ea78dc405d
commit f416dd0221
2 changed files with 6 additions and 6 deletions

View File

@ -231,9 +231,9 @@ type IssueLink struct {
ID string `json:"id"` ID string `json:"id"`
Self string `json:"self"` Self string `json:"self"`
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

@ -94,13 +94,13 @@ func TestIssueAddLink(t *testing.T) {
Type: IssueLinkType{ Type: IssueLinkType{
Name: "Duplicate", Name: "Duplicate",
}, },
InwardIssue: Issue{ InwardIssue: &Issue{
Key: "HSP-1", Key: "HSP-1",
}, },
OutwardIssue: Issue{ OutwardIssue: &Issue{
Key: "MKY-1", Key: "MKY-1",
}, },
Comment: Comment{ Comment: &Comment{
Body: "Linked related issue!", Body: "Linked related issue!",
Visibility: CommentVisibility{ Visibility: CommentVisibility{
Type: "group", Type: "group",