Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
MethodGET
URL/rest/jip-api/1.0/linked-assets/[linkedAssetId].json


Code Block
titleSample Response
collapsetrue
{
  "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
}

...

Code Block
titleRequest Body
collapsetrue
[
  {
    "from": {
      "id": 3
    },
    "to": {
      "id": 9
    },
    "assetLinkType": {
      "id": "3"
    }
  },
  {
    "from": {
      "id": 3
    },
    "to": {
      "id": 23
    },
    "assetLinkType": {
      "id": "3"
    }
  }
]


Code Block
titleSample Response
collapsetrue
{
  "success" : true,
  "errorCode" : null,
  "errorMessage" : null,
  "data" : null,
  "pagingInfo" : null
}

...