Skip to end of banner
Go to start of banner

Asset REST Services

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

This page is about Assets & Inventory Plugin for Jira DC. Using Cloud? Click here.

This document describes the REST Services for managing assets in the system. Authentication is required for all calls.

Contents

System Fields and Attributes on Create or Update

System Fields

Display Name

Field Name

Field Type

Description

Example

Status

asset.status

STRING

The value must be the key of Status or display the name of the Status.

(Please see {{link}} for Status keys)

"1" or "In stock"

Substatus

asset.substatus

STRING

The value must be the key of Substatus or display the name of the Substatus.

(Please see {{link}} for Substatus keys)

"1" or "Available"

Assignee

asset.assignee

JIRA_USER

The value must be a username or user key.

"tdurden" or "JIRAUSER10000"

Reserved for

asset.reservedFor

JIRA_USER

The value must be a username or user key.

"tdurden" or "JIRAUSER10000"

Owner

asset.owner

JIRA_USER

The value must be a username or user key.

"tdurden" or "JIRAUSER10000"

Managed by

asset.managedBy

JIRA_USER

The value must be a username or user key.

"tdurden" or "JIRAUSER10000"

Quantity

asset.quantity

LONG

The value must be a number (without decimals).

14

Asset tag

asset.assetTag

STRING

The value must be a text.

"tag1"

Serial Number

asset.serialNumber

STRING

The value must be a text.

"AB12309712947"

Location

asset.location

LONG

The value must be the ID of the location or the name of the location.

"3" or "Istanbul Office"

Belongs to group

asset.belongsToGroup

STRING

The value must be a List of Jira Group in JSON format.

"["jira-administrators"]" or "["jira-developers","jira-users"]"

Install Date

asset.installDate

DATE

The value must be Date (without time) in ISO format.

"2020-05-22"

Cost

asset.cost

DOUBLE

The value must be a number float(with decimals).

34.12

Currency

asset.costCurrency

STRING

The value must be one of the currencies.

"USD" or "EUR"

Invoice Number

asset.invoiceNumber

STRING

The value must be a text.

"IN12093821907049712409"

Attributes

Type

Description

Example

Asset List

The value must be ID of asset or name of asset. If there are multiple values, you must add "," between values.
Note: If there is multiple asset with same name, first match will be saved to asset. So, using ID will be better for this field.

"145"
"145,456,189"
"Laptop 1,Laptop 2"

Asset List by Asset Types

The value must be ID of asset or name of asset. Asset must be in given Asset Type. If there is multiple value, you must add "," between values. 
Note: If there is multiple asset with same name, first match will be saved to asset. So, using ID will be better for this field.

"145"
"145,456,189"
"Laptop 1,Laptop 2"

Cascading Dropdown

The value must be cascading dropdown option ids. Add "-" between options. 

"1-2"
"1-2-3-4"

Checkbox

The value must be one of checkbox values. If there are multiple values, you must add "@@@@@@" between them.

"Ada"
"Ada@@@@@@Bal"

Date Picker

The value must be Date(without time) in ISO format.

"2020-05-22"

Date Time Picker

The value must be Date-time(with time) in ISO format.

"2020-05-22T13:18"

Dropdown List

The value must be one of Dropdown List values. 

"Ada"
"Bal"

Encrypted

The value must be text.

"password123"

IP

The value must be text.

"192.168.1.1"

IPv6

The value must be text.

"2607:f0d0:1002:0051:0000:0000:0000:0004"

Jira Organizations

The value must be one of Jira Organization IDs. If there are multiple values, you must add "@@@@@@" between them. Refer to this documentation to figure out how to get Jira Organization IDs.

"1"

"1@@@@@@2"

Jira Project

The value must be one of Jira Project IDs. If there are multiple values, you must add "@@@@@@" between them. Refer to this documentation to figure out how to get Jira Organization IDs.

"10000"

"10000@@@@@@10001"

Jira Project Components

The value must be one of "Jira Project Id - Jira Project Component Id". If there are multiple values, you must add "@@@@@@" between them. Refer to this documentation to figure out how to get Jira Organization IDs.

"10000-1"

"10000-1@@@@@@100001-2"

Jira Project Versions

The value must be one of "Jira Project Id - Jira Project Version Id". If there are multiple values, you must add "@@@@@@" between them. Refer to this documentation to figure out how to get Jira Organization IDs.

"10000-1"

"10000-1@@@@@@100001-2"

Jira User Picker

The value must be a username. It doesn't need to be a Jira User.

"tyler-durden"

List Box

The value must be one of List Box values. 

"Mer"

List Box - Multiple

The value must be one of List Box values. If there are multiple values, you must add "@@@@@@" between them.

"Izm"
"Izm@@@@@@Ist@@@@@@Mug"

Number Float(with decimals)

The value must be number float(with decimals).

14.2

Number Long(without decimals)

The value must be number long(without decimals).

98

Radio Button

The value must be one of Radio Button values.

"Can"

Text

The value must be text.

"Lorem ipsum dolor sit amet, consectetur adipiscing elit."

Text Area

The value must be text.

"Lorem ipsum dolor sit amet, consectetur adipiscing elit."

URL

The value must be text.

"https://appfire.com/"

Listing all assets

Only Jira Admins can use this Rest Service. Please use the Search service, which is better in performance, and no Jira Admin user is required.

Method

GET

URL

/rest/jip-api/1.0/inventory/list.json

Sample Response

[
  {
    "id": 12,
    "name": "Alpha Database Server",
    "formId": 2,
    "sortOrder": 0,
    "attributes": [
      {
        "id": 120,
        "attribute": {
          "attributeName": "Serial Number",
          "attributeType": "Text",
          "id": 7
        },
        "attributeValue": "3243-34343-434-2344"
      },
      {
        "id": 121,
        "attribute": {
          "attributeName": "IP",
          "attributeType": "Text",
          "id": 6
        },
        "attributeValue": "10.10.13.24"
      },
      {
        "id": 122,
        "attribute": {
          "attributeName": "Server Name",
          "attributeType": "Text",
          "id": 5
        },
        "attributeValue": "gollum"
      }
    ]
  },
  {
    ...
  }
]

List single asset

Method

GET

URL

/rest/jip-api/1.0/inventory/[assetID].json

Sample Response

{
  "id": 1,
  "name": "Alpha Tomcat Server",
  "formId": 2,
  "sortOrder": 0,
  "attributes": [
    {
      "id": 1,
      "attribute": {
        "attributeName": "Server Name",
        "attributeType": "Text",
        "id": 5
      },
      "attributeValue": "cyrus"
    },
    {
      "id": 2,
      "attribute": {
        "attributeName": "IP",
        "attributeType": "Text",
        "id": 6
      },
      "attributeValue": "10.10.13.21"
    },
    {
      "id": 3,
      "attribute": {
        "attributeName": "Serial Number",
        "attributeType": "Text",
        "id": 7
      },
      "attributeValue": "1254-4432-3455-6642"
    }
  ]
}

Failure Message

{
  "success": false,
  "message": "Could not find inventory with id:[id]
}

Filtering assets

Only Jira Admins can use this Rest Service. Please use the Search service, which is better in performance, and no Jira Admin user is required.

Method

POST

URL

/rest/jip-api/1.0/inventory/filter.json

Request Body(Filtering by only attribute)

{
  "attributeId": 2,
  "attributeValue": "Value to filter"
}

Request Body(Filtering by only asset type)

{
  "formId": 3
}

Request Body(Filtering by asset name)

{
  "name": "Kevin's computer"
}

Request Body(Filtering by asset type and attribute)

{
  "formId": 3,
  "attributeId": 15,
  "attributeValue": "Optical Mouse"
}

Possible Failure Messages

{
  "success": false,
  "message": "[formId] or [attributeId] should be specified"
}

Create a new asset

Method

POST

URL

/rest/jip-api/1.0/inventory/asset.json

Request Body

{
    "name": "Asset with all type of field 1",
    "attributes": [
        {
            "attributeId": "1233",
            "attributeValue": "3320,3318"
        },
        {
            "attributeId": "1234",
            "attributeValue": "3187"
        },
        {
            "attributeId": "1242",
            "attributeValue": "Ada@@@@@@Bal"
        },
        {
            "attributeId": "1244",
            "attributeValue": "2020-05-05"
        },
        {
            "attributeId": "1245",
            "attributeValue": "2020-05-15T13:18"
        },
        {
            "attributeId": "1253",
            "attributeValue": "Ada"
        },
        {
            "attributeId": "1264",
            "attributeValue": "192.168.1.1"
        },
        {
            "attributeId": "1265",
            "attributeValue": "2607:f0d0:1002:0051:0000:0000:0000:0004"
        },
        {
            "attributeId": "1269",
            "attributeValue": "tyler-durden"
        },
        {
            "attributeId": "1277",
            "attributeValue": "Mer"
        },
        {
            "attributeId": "1278",
            "attributeValue": "Izm@@@@@@Ist@@@@@@Mug"
        },
        {
            "attributeId": "1291",
            "attributeValue": 14.2
        },
        {
            "attributeId": "1292",
            "attributeValue": 98
        },
        {
            "attributeId": "1299",
            "attributeValue": "Can"
        },
        {
            "attributeId": "1312",
            "attributeValue": "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
        },
        {
            "attributeId": "1313",
            "attributeValue": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tristique lacus diam, faucibus pulvinar ipsum porta nec. Donec auctor semper ante, quis mollis nisi tristique a. Cras ac feugiat erat. Mauris consequat, nisl nec lacinia lacinia, erat ligula maximus velit, quis dignissim ex ex eu nunc. Donec viverra sapien in arcu elementum mattis. Maecenas ornare, turpis quis rutrum hendrerit, erat mi mattis lorem, interdum malesuada lorem eros at odio. Aliquam erat volutpat."
        },
        {
            "attributeId": "1315",
            "attributeValue": "https://snapbytes.com/"
        }
    ],
    "systemFields": [
        {
            "fieldName": "asset.status",
            "value": "1"
        },
        {
            "fieldName": "asset.substatus",
            "value": "1"
        },
        {
            "fieldName": "asset.costCurrency",
            "value": "USD"
        },
        {
            "fieldName": "asset.assignee",
            "value": "JIRAUSER18000"
        },
        {
            "fieldName": "asset.owner",
            "value": "admin"
        },
        {
            "fieldName": "asset.managedBy",
            "value": "agrant-sd-demo"
        },
        {
            "fieldName": "asset.belongsToGroup",
            "value": "[\"jira-administrators\"]"
        },
        {
            "fieldName": "asset.quantity",
            "value": 1
        },
        {
            "fieldName": "asset.assetTag",
            "value": "Tag 1"
        },
        {
            "fieldName": "asset.serialNumber",
            "value": "AS123A9812947"
        },
        {
            "fieldName": "asset.installDate",
            "value": "2020-05-01"
        },
        {
            "fieldName": "asset.location",
            "value": 3
        },
        {
            "fieldName": "asset.cost",
            "value": 1999.99
        },
        {
            "fieldName": "asset.invoiceNumber",
            "value": "AS12037129370AF012937129037"
        }
    ],
    "formId": 490
}

Success Response

{
    "success": true,
    "message": "Inventory[Asset with all type of field 1] created successfully",
    "id": 3378,
    "name": "Asset with all type of field 1"
}

Possible Failure Messages

{
  success: false,
  message: "[name] should not be empty"
}
{
  success: false,
  message: "[formId] should not be empty"
}
{
  success: false,
  message: "Form[formId] could not be found"
}
{
  success: false,
  message: "Form[formName] does not have an attribute with id:[attributeId]"
}
{
  "success": false,
  "message": "Attribute[attributeName] does not have a defined value[attributeValue]"
}
{
  "success": false,
  "message": "You may define at least one inventory attribute"
}


Update asset

Method

PUT

URL

/rest/jip-api/1.0/inventory/asset/[assetID].json

"Name" is required. If you don't send it, the asset name will be cleared. Attributes are optional. You can send only the system fields and attributes you need to update.

Request Body

{
    "name": "Asset with all type of field 2",
    "attributes": [
        {
            "attributeId": "1233",
            "attributeValue": "3320"
        },
        {
            "attributeId": "1234",
            "attributeValue": "3187,3200"
        },
        {
            "attributeId": "1242",
            "attributeValue": "Izm"
        },
        {
            "attributeId": "1244",
            "attributeValue": "2020-05-25"
        },
        {
            "attributeId": "1245",
            "attributeValue": "2020-06-12T14:08"
        },
        {
            "attributeId": "1253",
            "attributeValue": "Bal"
        },
        {
            "attributeId": "1264",
            "attributeValue": "192.168.1.2"
        },
        {
            "attributeId": "1265",
            "attributeValue": "2607:f0d0:1002:0051:0000:0000:0000:0005"
        },
        {
            "attributeId": "1269",
            "attributeValue": "agrant-sd-demo"
        },
        {
            "attributeId": "1277",
            "attributeValue": "Bal"
        },
        {
            "attributeId": "1278",
            "attributeValue": "Mug"
        },
        {
            "attributeId": "1291",
            "attributeValue": 9.3
        },
        {
            "attributeId": "1292",
            "attributeValue": 42
        },
        {
            "attributeId": "1299",
            "attributeValue": "Izm"
        },
        {
            "attributeId": "1312",
            "attributeValue": "Lorem ipsum dolor sit amet"
        },
        {
            "attributeId": "1313",
            "attributeValue": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tristique lacus diam, faucibus pulvinar ipsum porta nec. Donec auctor semper ante, quis mollis nisi tristique a. Cras ac feugiat erat. Mauris consequat, nisl nec lacinia lacinia, erat ligula maximus velit, quis dignissim ex ex eu nunc. Donec viverra sapien in arcu elementum mattis."
        },
        {
            "attributeId": "1315",
            "attributeValue": "https://snapbytes.com/#home"
        }
    ],
    "systemFields": [
        {
            "fieldName": "asset.assignee",
            "value": "agrant-sd-demo"
        },
        {
            "fieldName": "asset.owner",
            "value": "jevans-sd-demo"
        },
        {
            "fieldName": "asset.managedBy",
            "value": "admin"
        },
        {
            "fieldName": "asset.status",
            "value": "2"
        },
        {
            "fieldName": "asset.substatus",
            "value": null
        },
        {
            "fieldName": "asset.reservedFor",
            "value": null
        },
        {
            "fieldName": "asset.quantity",
            "value": 2
        },
        {
            "fieldName": "asset.assetTag",
            "value": "Tag 2"
        },
        {
            "fieldName": "asset.serialNumber",
            "value": "AS123A9812948"
        },
        {
            "fieldName": "asset.installDate",
            "value": "2020-05-14"
        },
        {
            "fieldName": "asset.location",
            "value": 4
        },
        {
            "fieldName": "asset.cost",
            "value": 2999.99
        },
        {
            "fieldName": "asset.costCurrency",
            "value": "EUR"
        },
        {
            "fieldName": "asset.invoiceNumber",
            "value": "AS12037129370AF012937129038"
        }
    ],
    "id": 3377,
    "formId": 490
}

Success Message

{
    "success": true,
    "message": "Inventory[3377] updated successfully",
    "id": 3377,
    "name": "Asset with all type of field 2"
}

Possible Failure Messages

{
  "success": false,
  "message": "Could not find inventory with id:[id]"
}
{
  "success": false,
  "message": "Form[formName] does not have an attribute with id:[attributeId]"
}

Delete asset

Method

DELETE

URL

/rest/jip-api/1.0/inventory/[assetID].json

Success Message

{
  "success": false
  "message": "Inventory[inventoryId] deleted successfully"
}

Possible Failure Messages

{
  "success": false
  "message": "Inventory[id] could not be found"
}

{
  "success":false,
  "message":"Could not find form with id:[formId]"
}

Add attachment to an asset

Method

POST

URL

rest/jip-api/1.0/inventory/attachment/0/[assetID].json

Headers

Content-Type: multipart/form-data

  Notes:

  • It is not possible to create an asset with attachments; first, the asset needs to be created, and then attachments can be uploaded after that.

  • Zero in URL is a fixed value.

Request Form Data

filexAssetAttachment: (binary)

Success Message

{
"success" : true,
"errorCode" : null,
"errorMessage" : null,
"data" : "[ {\n \"originalFileName\" : \"macbook.jpg\",\n \"serverFileName\" : \"86772_74092_1620986587358.jpg\",\n \"fileSize\" : \"93 KB\",\n \"created\" : \"14/05/2021 1:03 PM\",\n \"creator\" : \"assetadmin\"\n}, {\n \"originalFileName\" : \"macbook.jpg\",\n \"serverFileName\" : \"91697_10383_1620986690368.jpg\",\n \"fileSize\" : \"93 KB\",\n \"created\" : \"14/05/2021 1:04 PM\",\n \"creator\" : \"assetadmin\"\n} ]",
"pagingInfo" : null
}

The data attribute holds metadata of all asset attachments.

Simplified interface of the backend server (Helpful for development)

...
import com.atlassian.plugins.rest.common.multipart.FilePart;
import com.atlassian.plugins.rest.common.multipart.MultipartFormParam;
import javax.ws.rs.POST; 
import javax.ws.rs.PathParam;
import javax.ws.rs.core.MediaType;

...

@POST
@Consumes(MediaType.MULTIPART_FORM_DATA)
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
@Path("inventory/attachment/0/{assetId}")
Response attachment(@PathParam("assetId") Integer assetId,
                    @MultipartFormParam("filexAssetAttachment") FilePart filePart);

You can inspect the browser to see it in action. Open the app, inspect the browser, and then upload an attachment. Here are some example screenshots from Chrome:

Request:

Response:

Delete attachment from an asset

Method

DELETE

URL

/rest/jip-api/1.0/inventory/detachFile/0/[assetID]/[serverFileName].json

       Example: /rest/jip-api/1.0/inventory/detachFile/0/20711/75144_11677_1620987178043.png.json

Get attachment of an asset

Method

GET

URL

/rest/jip-api/1.0/inventory/getFile/0/[assetID]/[serverFileName].json

       Example: [JIRA_BASE]/rest/jip-api/1.0/inventory/getFile/0/20711/91697_10383_1620986690368.jpg.json

Attachments is an asset JSON attribute. It is encoded as a String; you need to decode it to JSON back, and serverFileName can be obtained from there.

The following response example of Get Asset API ([JIRA_BASE]/rest/jip-api/1.0/inventory/transformed/[assetID].json) has an attachments attribute.

Example JSON

{
"form" : {
"id" : 29,
"formName" : "Computer",
"sortOrder" : 0,
"objectSchemaId" : 1,
"objectSchemaName" : "IT Assets Scheme",
"cloneFromId" : null
},
"formAttributes" : [ {
"id" : 908,
"sortOrder" : 1,
"required" : false,
"attributeName" : "External System Id",
"attributeId" : 134
}, {
"id" : 287,
"sortOrder" : 2,
"required" : false,
"attributeName" : "JIRA User",
"attributeId" : 23
}, {
"id" : 286,
"sortOrder" : 3,
"required" : false,
"attributeName" : "wrkStald",
"attributeId" : 66
}, {
"id" : 284,
"sortOrder" : 4,
"required" : false,
"attributeName" : "Asset Tag Number",
"attributeId" : 65
}, {
"id" : 314,
"sortOrder" : 5,
"required" : false,
"attributeName" : "Related Inventory",
"attributeId" : 47
}, {
"id" : 326,
"sortOrder" : 6,
"required" : false,
"attributeName" : "Model",
"attributeId" : 35
}, {
"id" : 328,
"sortOrder" : 7,
"required" : false,
"attributeName" : "Color",
"attributeId" : 62
}, {
"id" : 504,
"sortOrder" : 8,
"required" : false,
"attributeName" : "Warranty Expiration Date",
"attributeId" : 61
}, {
"id" : 1165,
"sortOrder" : 9,
"required" : false,
"attributeName" : "Site",
"attributeId" : 138
} ],
"inventories" : [ {
"id" : 20711,
"name" : "New PC",
"sortOrder" : 0,
"objectSchemaId" : 1,
"objectSchemaName" : "IT Assets Scheme",
"formId" : 29,
"formName" : "Computer",
"created" : 1618598030315,
"createdFormatted" : "16/04/2021 9:33 PM",
"creator" : "JIRAUSER10303",
"updated" : 1620987178139,
"updatedFormatted" : "14/05/2021 1:12 PM",
"updatedBy" : "JIRAUSER10303",
"attachments" : "[ {\n \"originalFileName\" : \"macbook.jpg\",\n \"serverFileName\" : \"86772_74092_1620986587358.jpg\",\n \"fileSize\" : \"93 KB\",\n \"created\" : \"14/05/2021 1:03 PM\",\n \"creator\" : \"assetadmin\"\n}, {\n \"originalFileName\" : \"macbook.jpg\",\n \"serverFileName\" : \"91697_10383_1620986690368.jpg\",\n \"fileSize\" : \"93 KB\",\n \"created\" : \"14/05/2021 1:04 PM\",\n \"creator\" : \"assetadmin\"\n}, {\n \"originalFileName\" : \"xps13.png\",\n \"serverFileName\" : \"75144_11677_1620987178043.png\",\n \"fileSize\" : \"469 KB\",\n \"created\" : \"14/05/2021 1:12 PM\",\n \"creator\" : \"assetadmin\"\n} ]",
"creatorUser" : {
"key" : "JIRAUSER10303",
"username" : "assetadmin",
"name" : "assetadmin",
"directoryId" : 1,
"emailAddress" : "asset-admin@example.com",
"displayName" : "Asset Admin 1",
"avatarUrl" : "https://jira-test.snapbytes.com/secure/useravatar?avatarId=10350",
"active" : true
},
"updatedByUser" : {
"key" : "JIRAUSER10303",
"username" : "assetadmin",
"name" : "assetadmin",
"directoryId" : 1,
"emailAddress" : "asset-admin@example.com",
"displayName" : "Asset Admin 1",
"avatarUrl" : "https://jira-test.snapbytes.com/secure/useravatar?avatarId=10350",
"active" : true
},
"inventoryItems" : [ {
"value" : "122",
"attributeName" : "External System Id",
"attributeType" : "Text",
"inventoryRefs" : [ ],
"multiListValues" : [ ],
"multiListValueObjectList" : [ ],
"attributeId" : 134,
"id" : 136535,
"formAttributeId" : 908,
"displayValue" : "122",
"textValues" : "122"
}, {
"value" : "agrant-sd-demo",
"attributeName" : "JIRA User",
"attributeType" : "UserPicker",
"inventoryRefs" : [ ],
"multiListValues" : [ ],
"multiListValueObjectList" : [ ],
"attributeId" : 23,
"id" : 136530,
"formAttributeId" : 287,
"displayValue" : "Alana Grant (agrant-sd-demo)",
"user" : {
"key" : "agrant-sd-demo",
"username" : "agrant-sd-demo",
"name" : "agrant-sd-demo",
"directoryId" : 1,
"emailAddress" : "agrant-sd-demo@example.com",
"displayName" : "Alana Grant",
"avatarUrl" : "https://jira-test.snapbytes.com/secure/useravatar?avatarId=10602",
"active" : true
},
"textValues" : "agrant-sd-demo"
}, {
"value" : "101",
"attributeName" : "wrkStald",
"attributeType" : "Text",
"inventoryRefs" : [ ],
"multiListValues" : [ ],
"multiListValueObjectList" : [ ],
"attributeId" : 66,
"id" : 136534,
"formAttributeId" : 286,
"displayValue" : "101",
"textValues" : "101"
}, {
"value" : "122",
"attributeName" : "Asset Tag Number",
"attributeType" : "NumberLong",
"inventoryRefs" : [ ],
"multiListValues" : [ ],
"multiListValueObjectList" : [ ],
"attributeId" : 65,
"id" : 136533,
"formAttributeId" : 284,
"displayValue" : "122",
"textValues" : "122"
}, {
"value" : "",
"attributeName" : "Related Inventory",
"attributeType" : "InventoryList",
"inventoryRefs" : [ {
"id" : 10444,
"name" : "Alana Grant"
} ],
"multiListValues" : [ ],
"multiListValueObjectList" : [ ],
"attributeId" : 47,
"id" : 136532,
"formAttributeId" : 314,
"displayValue" : "<a style=\"font-size: 100%\" href=\"https://jira-test.snapbytes.com/secure/DashboardAIPAction!default.jspa#/browse/10444\">Alana Grant</a>",
"textValues" : "Alana Grant"
}, {
"value" : "a",
"attributeName" : "Model",
"attributeType" : "Text",
"inventoryRefs" : [ ],
"multiListValues" : [ ],
"multiListValueObjectList" : [ ],
"attributeId" : 35,
"id" : 136531,
"formAttributeId" : 326,
"displayValue" : "a",
"textValues" : "a"
}, {
"attributeName" : "Color",
"attributeType" : "ListBox",
"inventoryRefs" : [ ],
"multiListValues" : [ ],
"multiListValueObjectList" : [ ],
"attributeId" : 62,
"id" : 0,
"formAttributeId" : 0,
"displayValue" : ""
}, {
"value" : "1/05/2021",
"attributeName" : "Warranty Expiration Date",
"attributeType" : "DatePicker",
"inventoryRefs" : [ ],
"multiListValues" : [ ],
"multiListValueObjectList" : [ ],
"attributeId" : 61,
"id" : 136536,
"formAttributeId" : 504,
"displayValue" : "1/05/2021",
"textValues" : "1/05/2021",
"isoDateValue" : "2021-05-01"
}, {
"attributeName" : "Site",
"attributeType" : "InventoryListByForm",
"inventoryRefs" : [ ],
"multiListValues" : [ ],
"multiListValueObjectList" : [ ],
"attributeId" : 138,
"id" : 0,
"formAttributeId" : 0,
"displayValue" : ""
} ],
"systemFields" : [ {
"fieldName" : "asset.quantity",
"value" : ""
}, {
"fieldName" : "asset.managedBy",
"value" : "agrant-sd-demo",
"applicationUser" : {
"key" : "agrant-sd-demo",
"username" : "agrant-sd-demo",
"name" : "agrant-sd-demo",
"directoryId" : 1,
"emailAddress" : "agrant-sd-demo@example.com",
"displayName" : "Alana Grant",
"avatarUrl" : "https://jira-test.snapbytes.com/secure/useravatar?avatarId=10602",
"active" : true
},
"displayValue" : "Alana Grant [agrant-sd-demo]"
}, {
"fieldName" : "asset.substatus",
"value" : "1"
}, {
"fieldName" : "asset.costCurrency",
"value" : ""
}, {
"fieldName" : "asset.assignee",
"value" : "rlee-sd-demo",
"applicationUser" : {
"key" : "rlee-sd-demo",
"username" : "rlee-sd-demo",
"name" : "rlee-sd-demo",
"directoryId" : 1,
"emailAddress" : "rlee-sd-demo@example.com",
"displayName" : "Ryan Lee",
"avatarUrl" : "https://jira-test.snapbytes.com/secure/useravatar?ownerId=rlee-sd-demo&avatarId=10800",
"active" : true
},
"displayValue" : "Ryan Lee [rlee-sd-demo]"
}, {
"fieldName" : "asset.assetTag",
"value" : "12"
}, {
"fieldName" : "asset.owner",
"value" : "jevans-sd-demo",
"applicationUser" : {
"key" : "jevans-sd-demo",
"username" : "jevans-sd-demo",
"name" : "jevans-sd-demo",
"directoryId" : 1,
"emailAddress" : "jevans-sd-demo@example.com",
"displayName" : "Jennifer Evans",
"avatarUrl" : "https://www.gravatar.com/avatar/019353b5fd6b245699e8c8b9013bef16?d=mm&s=48",
"active" : true
},
"displayValue" : "Jennifer Evans [jevans-sd-demo]"
}, {
"fieldName" : "asset.belongsToGroup",
"value" : "[ \"Assets\" ]",
"displayValue" : "Assets"
}, {
"fieldName" : "asset.serialNumber",
"value" : "111"
}, {
"fieldName" : "asset.status",
"value" : "1"
} ],
"inventoryItemListSize" : 9
} ],
"formAttributesListSize" : 9,
"inventoriesListSize" : 1
}
  • No labels