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:
parent
ea78dc405d
commit
f416dd0221
6
issue.go
6
issue.go
@ -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.
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user