Issue linksField name : Linked Issues Key: issuelinks Description : Issue links is an array of objects. Each object represents one link. Structure :
"issue":
{
...
...
"fields":
{
...
...
"issuelinks":
[
{
"id": String, //ID of the issue
"self": String, //URL of the issue
"type": [object] //Type of the issue link.
{
"id": String, //Id of the issue link
"name": String, //Name of the issue link
"inward": String, //Inward description of the link
"outward": String, //Outward description of the link
"self": String //URL of the issueLinkType
},
"outwardIssue": [object] //Outward issue information.
{
"id": String, //ID of the outward issue.
"key": String, //Key of the outward issue.
"self": String, //URL of the outward issue.
"fields": [object] //Fields of the outward issue.
{
"summary": String, //Summary of the outward issue.
"status": [object] //Status of the outward issue.
{
"self": String, //URL of the status of the outward issue.
"description": String, //URL of the status of the outward issue.
"iconUrl": String, //URL of the status icon of the outward issue.
"name": String, //Name of the status of the outward issue.
"id": String, //ID of the status of the outward issue.
"statusCategory": [object] //Status category
{
"self": String, //URL of the status category
"id": Number, //ID of the status category
"key": String, //Key of the status category
"colorName": String, //Colour of the status category
"name": String //Name of the status
}
},
"priority": [object] //Priority of the outward issue.
{
"self":String, //URL of the priority of the issue
"iconUrl":String, //URL of the priority icon
"name":String, //Name of the priority
"id":String //ID of the priority
},
"issuetype": [object] //Issue type of the outward issue.
{
"self":String, //URL of the Issue type.
"id":String, //ID of the Issue type.
"description":String, //Description of the Issue type.
"iconUrl":String, //URL of the Issue type icon
"name":String, //Name of the Issue Type.
"subtask": "Boolean", //True when issue is a sub-task.
"avatarId": Number, //Number of the avatar ID of the issue.
}
}
},
"inwardIssue": [object] //Inward issue information.
{
"id": String, //ID of the outward issue.
"key": String, //Key of the outward issue.
"self": String, //URL of the outward issue.
"fields": [object] //Fields of the outward issue.
{
"summary": String, //Summary of the outward issue.
"status": [object] //Status of the outward issue.
{
"self": String, //URL of the status of the outward issue.
"description": String, //URL of the status of the outward issue.
"iconUrl": String, //URL of the status icon of the outward issue.
"name": String, //Name of the status of the outward issue.
"id": String, //ID of the status of the outward issue.
"statusCategory": [object] //Status category
{
"self": String, //URL of the status category
"id": Number, //ID of the status category
"key": String, //Key of the status category
"colorName": String, //Colour of the status category
"name": String //Name of the status
}
},
"priority": [object] //Priority of the outward issue.
{
"self":String, //URL of the priority of the issue
"iconUrl":String, //URL of the priority icon
"name":String, //Name of the priority
"id":String //ID of the priority
},
"issuetype": [object] //Issue type of the outward issue.
{
"self":String, //URL of the Issue type.
"id":String, //ID of the Issue type.
"description":String, //Description of the Issue type.
"iconUrl":String, //URL of the Issue type icon
"name":String, //Name of the Issue Type.
"subtask": "Boolean", //True when issue is a sub-task.
"avatarId": Number, //Number of the avatar ID of the issue.
}
}
}
},
{
//Second Issue link and so on.
}
...
],
...
}
...
} |
|
"issue":
{
...
...
"fields":
{
...
...
"issuelinks":
[
{
"id":"13618",
"self":"https://jmwe-test-2.atlassian.net/rest/api/2/issueLink/13618",
"type":
{
"id":"10200",
"name":"Problem/Incident",
"inward":"is caused by",
"outward":"causes",
"self":"https://jmwe-test-2.atlassian.net/rest/api/2/issueLinkType/10200"
},
"inwardIssue":
{
"id":"30104",
"key":"TEST-631",
"self":"https://jmwe-test-2.atlassian.net/rest/api/2/issue/30104",
"fields":
{
"summary":"test",
"status":
{
"self":"https://jmwe-test-2.atlassian.net/rest/api/2/status/10000",
"description":"",
"iconUrl":"https://jmwe-test-2.atlassian.net/images/icons/status_generic.gif",
"name":"To Do",
"id":"10000",
"statusCategory":
{
"self":"https://jmwe-test-2.atlassian.net/rest/api/2/statuscategory/2",
"id":2,
"key":"new",
"colorName":"blue-gray",
"name":"To Do"
}
},
"priority":
{
"self":"https://jmwe-test-2.atlassian.net/rest/api/2/priority/3",
"iconUrl":"https://jmwe-test-2.atlassian.net/images/icons/priorities/medium.svg",
"name":"Medium",
"id":"3"
},
"issuetype":
{
"self":"https://jmwe-test-2.atlassian.net/rest/api/2/issuetype/10002",
"id":"10002",
"description":"A task that needs to be done.",
"iconUrl":"https://jmwe-test-2.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10318&avatarType=issuetype",
"name":"Task",
"subtask":false,
"avatarId":10318
}
}
}
}
{
//Second link and so on..
}
],
...
}
...
} |
|
|
|
Note that only one of inwardIssue or outwardIssue will be present in each issue link. Also, note that only a small subset of the linked issues' fields will be present. A much easier way to access linked issues is through the use of the linkedIssues, epic, stories, parentIssue and subtasks filters.
|