Bulk upload 'Services objects' in Jira Insight/Assets

Ian Balas
Contributor
November 14, 2022

Hello All!

I'm looking to see if it's possible to bulk upload "Services objects" to the "Services" object schema in JSM Insight (now called Assets).

The reason I want to be able to bulk upload Services is so I don't have to manually create all of them if I could help it, since I've procured data on 100+ services to be accounted for in Assets. I know it's doable if you were to import objects to a custom object schema, but the same doesn't seem to be possible for the Services schema provided by JSM.

Is there anything I'm missing, or is there an add-on in marketplace or a method through Jira's API that'll allow me to do this?

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2022

Because the services object schema is locked you cannot do a bulk import to it unfortunately. 

Ian Balas
Contributor
November 14, 2022

Dang really? That's unfortunate. So if I had a 1000+ service objects to bulk import (or even update after the fact), then it'd have to be all manual.

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2022

I looked a bit more into this and it looks like you can access services via the Opsgenie API, so you should be able to do bulk import via it.

Ian Balas
Contributor
November 16, 2022

Thanks for the tip @Mikael Sandberg !

I was able to get the ball rolling by creating one test service object thru Postman:

Screenshot 2022-11-16 at 1.41.52 PM.png

A couple follow-up questions if you don't mind:

  1. I don't see it anywhere in the Service API doc, but do you know if other attributes of the service object (like Tier level) are possible to set through API?
  2. What would you have to do to create multiple service objects within the same script? Not sure off the  top of my head how I'd structure this to allow that to happen, if even possible.
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 16, 2022

It doesn't look like you can set the Tier level via the API, but hopefully that is something that is coming in the future.

For your second question, I would do similar to how I import data from our Endpoint Security tool to get our devices into Assets. We use an iPaaS tool for that and it iterates over each asset and then sends an create/update request to the Assets API when needed. So it is basically a big loop that sends a request for each device.

Ian Balas
Contributor
November 16, 2022

@Mikael Sandberg Agh, double-bummer on not being able to access Tier level. Hopefully there's another alternative outside of OpsGenie API (maybe Graph QL?). Anyway, that'll probably be a follow-up post.

On the upside, I was able to make use of a Postman collection online that allows you to loop through a request with different data, then added the values I needed for the service name and description in the pre-req script:

Screenshot 2022-11-16 at 6.49.14 PM.png

It does the initial job of bulk-uploading services, so this'll do :)

(I also found this article on bulk imports which is another alternative, but still no Tier parameters accessible.)

Once again, appreciate the feedback!

Like Mikael Sandberg likes this

Suggest an answer

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

Atlassian Community Events