Forums

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

Insight - How to skip Mandatory object type attribute mapping during importing.

Mark Lin
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!
February 28, 2023

I am trying to update Jira insight records by importing CSV file. During importing, I got the following error "Mandatory object type attribute are not mapped in the configuration", because I did not map the mandatory attribute, but I did not want to update the mandatory attribute. Is there a way to skip or not updated the mandatory attribute? 

1 answer

1 accepted

0 votes
Answer accepted
Dave Mathijs
Community Champion
February 28, 2023

Hi @Mark Lin welcome to the Atlassian Community!

You're kind of defeating the purpose of a mandatory attribute then. 😉

So you'll either need to make the attribute optional or map it with a default value.

Mark Lin
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!
March 8, 2023

Thanks for thinking about this.  I see the point about defeating the purpose of mandatory attributes, but we're not.  The context is host records, and we have the mandatory attributes for fields we require at manual record creation.  The automated import job will then later back-fill other fields with data collected from the node via Ansible "facts," keyed on hostname.  The nodes don't know about the mandatory attributes, nor does they contain them, so the "facts" import file can't contain them either.

 

So:

  1. We manually create host records, and require mandatory fields at key-enter time.
  2. We later collect facts, and want to import those fields, keyed on hostname, to keep Insight up-to-date.
  3. Records to be updated are guaranteed to exist and already have the mandatory fields,  since they are mandatory at key-enter time, and we do not want to change those mandatory fields.
  4. The facts to import do not and cannot contain the mandatory fields (they are metadata the host doesn't know), but we still need to import the facts.

 

Clues?  Thanks again.

 

Guys, corrections or thoughts on my proposed reply?

Like • Remo Siegwart likes this

Suggest an answer

Log in or Sign up to answer