Bulk import comments into Assets via CSV

Sam Thornton
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2024

Hey all,

One of our teams wants to import devices into Assets to use as their main asset management system, but one of their requests was whether they can import comments as well through the CSV import.

I've given it a go using the same theory as with normal issues (Adding a header 'Comment' and then using the correct formatting), but I haven't had much success.

Is there any way I can do this import natively through Assets or through Scriptrunner, perhaps?

If not, the other way might be to create a text field and have free text notes (comments) be added there from the import, but this doesn't feel particularly clean to do.

I'm using Jira Service Management Data Center, currently on version 5.4.14 (and upgrading to the latest version later in the year).

Any help or advise is appreciated.

Thanks!

2 answers

0 votes
Alonzo Kennedy August 15, 2024

Hello @Marc - Devoteam 

 

Would you be able to help with this questions?

Asset Management Import 

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2024

Hi @Sam Thornton 

Assets don't contain Jira field related options.

Assets exist of object types, objects and attributes.

You would need a text area attribute and store the information in there.

Also note that there is no formatting availabe.

Sam Thornton
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2024

Thanks for your reply @Marc - Devoteam :)

Yeah, I knew about the make-up of Assets, but thought I'd give it a go anyway just on the off chance that it would recognise Comments as a heading within the CSV.

I think an attribute as an initial note will be fine, as long as the team doesn't care about formatting. 

Do you know whether anything is possible in Scriptrunner? I've looked through the Adaptavist library.

Like John Funk likes this
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2024

Hi @Sam Thornton 

Not that I'm aware and due to the fact Assets doesn't support formatting, I don't see how scriptrunner would be able to make this work

Sam Thornton
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2024

No problem, worth an ask!

Thank you for your help! You confirmed my suspicions.

Have a good afternoon.

 

Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
5.4.14
TAGS
AUG Leaders

Atlassian Community Events