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

feat: Implement get remote links method

This commit is contained in:
Roman Volodin
2019-12-11 16:50:22 +03:00
committed by Wes McNamee
parent e37cc6c689
commit 1946cac0fe
3 changed files with 148 additions and 0 deletions

56
mocks/remote_links.json Normal file
View File

@ -0,0 +1,56 @@
[
{
"id": 10000,
"self": "http://www.example.com/jira/rest/api/issue/MKY-1/remotelink/10000",
"globalId": "system=http://www.mycompany.com/support&id=1",
"application": {
"type": "com.acme.tracker",
"name": "My Acme Tracker"
},
"relationship": "causes",
"object": {
"url": "http://www.mycompany.com/support?id=1",
"title": "TSTSUP-111",
"summary": "Crazy customer support issue",
"icon": {
"url16x16": "http://www.mycompany.com/support/ticket.png",
"title": "Support Ticket"
},
"status": {
"resolved": true,
"icon": {
"url16x16": "http://www.mycompany.com/support/resolved.png",
"title": "Case Closed",
"link": "http://www.mycompany.com/support?id=1&details=closed"
}
}
}
},
{
"id": 10001,
"self": "http://www.example.com/jira/rest/api/issue/MKY-1/remotelink/10001",
"globalId": "system=http://www.anothercompany.com/tester&id=1234",
"application": {
"type": "com.acme.tester",
"name": "My Acme Tester"
},
"relationship": "is tested by",
"object": {
"url": "http://www.anothercompany.com/tester/testcase/1234",
"title": "Test Case #1234",
"summary": "Test that the submit button saves the thing",
"icon": {
"url16x16": "http://www.anothercompany.com/tester/images/testcase.gif",
"title": "Test Case"
},
"status": {
"resolved": false,
"icon": {
"url16x16": "http://www.anothercompany.com/tester/images/person/fred.gif",
"title": "Tested by Fred Jones",
"link": "http://www.anothercompany.com/tester/person?username=fred"
}
}
}
}
]