File tree Expand file tree Collapse file tree 3 files changed +107
-0
lines changed
main/java/org/gitlab4j/api/models
test/resources/org/gitlab4j/api Expand file tree Collapse file tree 3 files changed +107
-0
lines changed Original file line number Diff line number Diff line change 1+ package org .gitlab4j .api .models ;
2+
3+ import org .gitlab4j .api .utils .JacksonJson ;
4+
5+ public class IssueLink {
6+
7+ private Issue sourceIssue ;
8+ private Issue targetIssue ;
9+
10+ public Issue getSourceIssue () {
11+ return sourceIssue ;
12+ }
13+
14+ public void setSourceIssue (Issue sourceIssue ) {
15+ this .sourceIssue = sourceIssue ;
16+ }
17+
18+ public Issue getTargetIssue () {
19+ return targetIssue ;
20+ }
21+
22+ public void setTargetIssue (Issue targetIssue ) {
23+ this .targetIssue = targetIssue ;
24+ }
25+
26+ @ Override
27+ public String toString () {
28+ return (JacksonJson .toJsonString (this ));
29+ }
30+ }
Original file line number Diff line number Diff line change 1+ {
2+ "source_issue" : {
3+ "id" : 83 ,
4+ "iid" : 11 ,
5+ "project_id" : 4 ,
6+ "created_at" : " 2016-01-07T12:44:33.959Z" ,
7+ "title" : " Issues with auth" ,
8+ "state" : " opened" ,
9+ "assignees" : [],
10+ "labels" : [
11+ " bug"
12+ ],
13+ "author" : {
14+ "name" : " Alexandra Bashirian" ,
15+ "state" : " active" ,
16+ "web_url" : " https://gitlab.example.com/eileen.lowe" ,
17+ "id" : 18 ,
18+ "username" : " eileen.lowe"
19+ },
20+ "updated_at" : " 2016-01-07T12:44:33.959Z" ,
21+ "subscribed" : true ,
22+ "user_notes_count" : 0 ,
23+ "web_url" : " http://example.com/example/example/issues/11" ,
24+ "confidential" : false
25+ },
26+ "target_issue" : {
27+ "id" : 84 ,
28+ "iid" : 14 ,
29+ "project_id" : 4 ,
30+ "created_at" : " 2016-01-07T12:44:33.959Z" ,
31+ "title" : " Issues with auth" ,
32+ "state" : " opened" ,
33+ "assignees" : [],
34+ "labels" : [
35+ " bug"
36+ ],
37+ "author" : {
38+ "name" : " Alexandra Bashirian" ,
39+ "state" : " active" ,
40+ "web_url" : " https://gitlab.example.com/eileen.lowe" ,
41+ "id" : 18 ,
42+ "username" : " eileen.lowe"
43+ },
44+ "updated_at" : " 2016-01-07T12:44:33.959Z" ,
45+ "subscribed" : true ,
46+ "user_notes_count" : 0 ,
47+ "web_url" : " http://example.com/example/example/issues/14" ,
48+ "confidential" : false
49+ }
50+ }
Original file line number Diff line number Diff line change 1+ [
2+ {
3+ "id" : 84 ,
4+ "iid" : 14 ,
5+ "issue_link_id" : 1 ,
6+ "project_id" : 4 ,
7+ "created_at" : " 2016-01-07T12:44:33.959Z" ,
8+ "title" : " Issues with auth" ,
9+ "state" : " opened" ,
10+ "assignees" : [],
11+ "labels" : [
12+ " bug"
13+ ],
14+ "author" : {
15+ "name" : " Alexandra Bashirian" ,
16+ "state" : " active" ,
17+ "web_url" : " https://gitlab.example.com/eileen.lowe" ,
18+ "id" : 18 ,
19+ "username" : " eileen.lowe"
20+ },
21+ "updated_at" : " 2016-01-07T12:44:33.959Z" ,
22+ "subscribed" : true ,
23+ "user_notes_count" : 0 ,
24+ "web_url" : " http://example.com/example/example/issues/14" ,
25+ "confidential" : false
26+ }
27+ ]
You can’t perform that action at this time.
0 commit comments