how to add issue link via json

Jonathan Kim February 16, 2015
 

2 answers

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 17, 2015

Use this REST (/rest/api/2/issue/{issueIdOrKey}/remotelink) along with this body:

{
  "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"
      }
    }
  }
}
0 votes
Kevin Poole
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 16, 2015

Hi Hyun, Could you expand on your question a little bit?

Suggest an answer

Log in or Sign up to answer