Hello,
I have an asset type in my schema with custom field called "dependencies". This field is an object field and links to other items in the schema. It is not set to unique and cardinality is maximum.
I am trying to bulk update this field via CSV. Each Asset will have multiple dependency objects. However when I run the import it only relates the first object in the csv not the subsequent objects.
The CSV looks like this now after ROVO suggested using the || separator..
NAME,one
Security incident detection and monitoring,SCD-27911,SCD-26436||SCD-26437
Hi @James Malone ,
I've worked with Jira Assets for quite a while, and in my experience CSV imports, especially for object reference fields with multiple values, can be tricky and sometimes produce unexpected results. I haven't tested this specific scenario recently, but it's possible the newer Assets Data Manager has improved support for these kinds of imports.
If your data follows a predictable pattern and you're mainly looking for an efficient way to populate object reference fields across a large set of Assets, there is another option.
We recently released Asset Manager for Jira, an app that lets you edit Jira Assets in a spreadsheet-like interface. You can filter down to the Assets you want, enter the dependencies on one row, and then copy, paste, or fill down across many Assets, similar to Excel. It works well for one-time or occasional bulk updates where many Assets share similar values.
It won't replace CSV imports in every situation, but for certain bulk-editing scenarios it's often much faster and easier.
Feel free to reach out if you'd like to see whether it would fit your use case.
Best regards,
Martin
Welcome to the community.
You need to provide the workspace id and the id of the object, as follows workspace_id:object_id
As example: c31785fc-7034-4281-814c-47e16553bce7:213
See this KB for more information; bulk-update-assets-object-custom-fields-via-external-system-import
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, CSV now looks like this..
NAME,one
Security incident detection and monitoring,8e79e1ec-032d-45e0-92ba-fef72254a81a:26437
Security incident detection and monitoring,8e79e1ec-032d-45e0-92ba-fef72254a81a:27036
However it still only relates the first object in the list. Added a couple of screenshots..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try it as follows, as this is behaviour that is normal for multi-select fields.
Name,one,one
Security incident detection and monitoring,8e79e1ec-032d-45e0-92ba-fef72254a81a:27036,8e79e1ec-032d-45e0-92ba-fef72254a81a:26437
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm afraid that still only relates the first object. BTW I'm removing the current linked object from the asset before I run the imports so I know the import is sorta working.
Thanks for trying to help btw, its much appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The || option on importing is on importing multiple options in an asset object, but not in a custom asset field in a Jira work item.
What happens if you use, see semi colon (;) between the asset objects:
Name,one
Security incident detection and monitoring,8e79e1ec-032d-45e0-92ba-fef72254a81a:27036;8e79e1ec-032d-45e0-92ba-fef72254a81a:26437
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No dice I'm afraid.
I've found this question which is the same as what I'm trying to achieve. I've followed their solution and updated the import to use the AQL and the CSV to use the || separator but it still only imports the first object in the list. I'm starting to think there's a bug here.
Solved: How to import CSV on JSM ASSET with multiple Asse...
here's my current import using the AQL suggested..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think there has been a misunderstanding.
You want to import assets objects into a schema and use these assets in Jira work items.
You can use || then, but don't use spaces, use value1||value2
See this KB, how-to-import-assets-object-types-with-attributes-referencing-existing-objects
You need to use the name of the reference not One, as this is the attribute that show the depended options.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct, I already have the schema and it is populated with assets. I want to bulk update the "dependencies" of one asset type so that they relate to another. Basically I want to bulk link what we call "Business Services" to "Applications" in my schema. There will be a 1 to many relationship.
There are no spaces in my CSV and my AQL now looks like the insructions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I raised a ticket with support and they suggested adding || to the Concatenator field in the advanced mapping option but that hasn't helped either. Still only relates the first asset in the list within the CSV.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you are using the reference in the import wrong.
I think the advanced clause needs to be Label IN (${one${0}}), if one is the name of you column in the csv containing the names of the objects you want to reference.
You can't use the keys of these objects.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the continued suggestions. Changing Key to Label results in no objects being related rather than the first as before. I presume because I don't have a label field on my Assets. I even replaced the keys with the object names in the CSV as I thought label might relate to that but that didn't work either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Label is by default set to the Name attribute of the object you want to reference, so the objects you want to see in attribute one. you.
See the explanation in https://community.atlassian.com/forums/Jira-Service-Management/How-to-import-CSV-on-JSM-ASSET-with-multiple-Asset-on-one/qaq-p/2921492
You have created attribute "one" in a schema, this is a object attribute, so it references another attribute in another or the same schema.
The column in the CSV "one" is the reference, but check the objects you are referencing, what attribute has the label icon?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. As I said I replaced the keys with the names in the CSV and used Label in the AQL but still not working correctly. Atlassian support have escalated to their engineering team as they cannot see why this isn't working either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.