Get asset link
Method | GET |
---|---|
URL | /rest/jip-api/1.0/linked-assets/[linkedAssetId].json |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"success": true,
"errorCode": null,
"errorMessage": null,
"data": {
"id": 32,
"from": {
"id": 3187,
"name": "Computer",
"sortOrder": 0,
"formId": 491,
"created": 1587726939487,
"creator": "admin",
"inventoryItems": [],
"systemFields": [
{
"fieldName": "asset.quantity",
"value": "1"
},
{
"fieldName": "asset.managedBy",
"value": "jevans-sd-demo"
},
{
"fieldName": "asset.substatus",
"value": ""
},
{
"fieldName": "asset.reservedFor",
"value": ""
},
{
"fieldName": "asset.costCurrency",
"value": "USD"
},
{
"fieldName": "asset.assignee",
"value": "JIRAUSER18100"
},
{
"fieldName": "asset.owner",
"value": ""
},
{
"fieldName": "asset.belongsToGroup",
"value": "[ \"jira-developers\" ]"
},
{
"fieldName": "asset.location",
"value": ""
},
{
"fieldName": "asset.cost",
"value": "1000"
},
{
"fieldName": "asset.serialNumber",
"value": ""
},
{
"fieldName": "asset.status",
"value": "2"
},
{
"fieldName": "asset.invoiceNumber",
"value": ""
}
]
},
"to": {
"id": 3277,
"name": "Monitor",
"sortOrder": 0,
"formId": 502,
"created": 1587726947836,
"creator": "admin",
"inventoryItems": [],
"systemFields": [
{
"fieldName": "asset.quantity",
"value": "1"
},
{
"fieldName": "asset.reservedFor"
},
{
"fieldName": "asset.substatus",
"value": "1"
},
{
"fieldName": "asset.costCurrency",
"value": "USD"
},
{
"fieldName": "asset.assignee",
"value": "JIRAUSER18000"
},
{
"fieldName": "asset.cost",
"value": "2000"
},
{
"fieldName": "asset.status",
"value": "1"
}
]
},
"assetLinkType": {
"id": 3,
"assetLinkName": "Connects",
"outwardDescription": "connects",
"inwardDescription": "connected by"
}
},
"pagingInfo": null
} |
Listing asset links by Asset ID
Method | GET |
---|---|
URL | /rest/jip-api/1.0/linked-assets/asset-id/[assetId].json |
...
Method | POST |
---|---|
URL | /rest/jip-api/1.0/linked-assets/multiple/asset-id/[assetId].json |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "from": { "id": 3 }, "to": { "id": 9 }, "assetLinkType": { "id": "3" } }, { "from": { "id": 3 }, "to": { "id": 23 }, "assetLinkType": { "id": "3" } } |
...
Method | POST |
---|---|
URL | /rest/jip-api/1.0/linked-assets/asset-id/[assetId].json |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "from": { "id": 3 }, "to": { "id": 7 }, "assetLinkType": { "id": "3" } } |
...
Method | DELETE |
---|---|
URL | /rest/jip-api/1.0/linked-assets/assetId/[assetId]/linkedAssetId/[linkedAssetId].json |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "success" : true, "errorCode" : null, "errorMessage" : null, "data" : true, "pagingInfo" : null } |
...