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"`
|
||||
Self string `json:"self"`
|
||||
Type IssueLinkType `json:"type"`
|
||||
OutwardIssue Issue `json:"outwardIssue"`
|
||||
InwardIssue Issue `json:"inwardIssue"`
|
||||
Comment Comment `json:"comment"`
|
||||
OutwardIssue *Issue `json:"outwardIssue"`
|
||||
InwardIssue *Issue `json:"inwardIssue"`
|
||||
Comment *Comment `json:"comment"`
|
||||
}
|
||||
|
||||
// IssueLinkType represents a type of a link between to issues in JIRA.
|
||||
|
@ -94,13 +94,13 @@ func TestIssueAddLink(t *testing.T) {
|
||||
Type: IssueLinkType{
|
||||
Name: "Duplicate",
|
||||
},
|
||||
InwardIssue: Issue{
|
||||
InwardIssue: &Issue{
|
||||
Key: "HSP-1",
|
||||
},
|
||||
OutwardIssue: Issue{
|
||||
OutwardIssue: &Issue{
|
||||
Key: "MKY-1",
|
||||
},
|
||||
Comment: Comment{
|
||||
Comment: &Comment{
|
||||
Body: "Linked related issue!",
|
||||
Visibility: CommentVisibility{
|
||||
Type: "group",
|
||||
|
Loading…
Reference in New Issue
Block a user