Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Insight Cloud Rest API Import, User and Status Fields

Guido Neumann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 12, 2022

I am trying to import User-Data into Insight via Rest API (

Mapping and import is working fine, but I have two problems.

 

I have marked the two Areas in this Example Mapping:

{

    "$schema""https://api.stg.atlassian.com/jsm/insight/imports/external/schema/versions/2021_09_15",

    "schema": {

      "objectSchema": {

        "name""User",

        "description""User",

        "objectTypes": [

          {

            "name""User",

            "description""User",

            "attributes": [

              {

                "name""Name",

                "description""Name of User",

                "type""text",

                "label"true

              },

              {

                "name""Email",

                "description""Email of User",

                "type""text"

              },

              {

                "name""Jira-User",

                "description""Link to Jira User",

                "type": "text"

              },

              {

                "name""Status",

                "description""active/deleted",

                "type": "text"

              }

            ]

          }

        ]

      }

    },

    "mapping": {

      "objectTypeMappings": [

        {

          "objectTypeName""User",

          "selector""myUser",

          "description""Mapping for User",

          "attributesMapping": [

            {

              "attributeName""Name",

              "attributeLocators": [

                "Name"

              ],

              "externalIdPart"true

            },

            {

              "attributeName""Email",

              "attributeLocators": [

                "Email"

              ]

            },

            {

              "attributeName""Jira-User",

              "attributeLocators": [

                "Email"

              ],

              "objectMappingIQL": "User.Email Like ${Email}"

            }

          ]

        }

      ]

    }

  }

1 answer

0 votes
Guido Neumann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 12, 2022

It looks like external-import is very restricted :(

 

I dont see how we could make use of external-imports in its current state.

 

How do people solve these challenges?

Do you build your own imports through the Insight Rest-API? (an then have to handle all the update/delete/referencing yourself)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events