Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to import Services and service-related info into the Insight field in Jira Service Management

Hi everyone! Today we want to share the way we imported services and service-related info.

When Atlassian announced Opsgenie’s Service and Mindville Insight integrations into JSM, it transformed how one of our clients manages 1000+ services. Before they stored the information about each service in the custom Business Service field. For additional information about the service, they created project properties that also had a sequence of 10+ interdependent properties. Now the general information about the service (name, description, owner, tier, change approver, etc.) is stored in Service, and all the other service-related information (vendors scheme, assignee, technology stack, etc.) is in Insight.

To help the client take full advantage of the new JSM features, we needed to import services and service-related information. If you do not have many services, you can import them manually both in JSM and Opsgenie. In our case, such a method would take at least a week. So as to automate the process and reduce the time for importing, we have found other ways we want to share with you.

Import Services

To import services, we took as a basis the Create Service request in Opsgenie API. We created a simple script and following the algorithm imported services:

  1. Create Team in Opsgenie and add teamId. 

  2. Add the list of services to ArrayList names.

  3. Run

Here is our script:

public class setServices {
    public static void main(String[] args) {
        String teamId;
        teamId = "12345678-1234-1234-1234-1234567890ab";
        ArrayList<String> names = new ArrayList<>(List.of("Service1",
        for (String name : names) {
            Unirest.setTimeouts(0, 0);
            try {
                HttpResponse<String> response ="")
                        .header("Authorization", "GenieKey 12345678-1111-2222-1111-123456789012")
                        .header("Content-Type", "application/json")
                        .body("{\n    \"teamId\": \"" + teamId + "\",\n    \"name\": \"" + name + "\"\n}")
            } catch (UnirestException e) {


Repeating these steps allowed us to import services within 2 hours.

This method has several cons that we consider insignificant:

  1. All imported services get Tier 1 value in Tier, as Opsgenie does not have this parameter. If your services also have equal tiers, it will not be a problem.

  2. You will need to set Change Approvers manually if you have this parameter.

  3. The method is inadvisable if you have many teams but few services (up to 3 services for each team), as we create Team manually. It will be faster and easier for you to import services manually.

Import into the Insight field

To import other service-related information into Insight Objects, we:

  1. Created ​​Object Schema and Object Type 

  2. Added all the necessary Attributes (Owner, Status, Description, Assignee, etc.), configured their types, following the Manage Attributes support article.

  3. Set the number of attribute values (if necessary for your project, do that in the attribute settings: Configure – Cardinality – Set checkbox Unlimited or change Maximum). 

When importing data into Insight, we also used Atlassian documentation but faced some problems and found the workarounds we want to share with you.

When preparing a .csv file for import:

  1. Use “||” (2 pipe characters) in Object values to divide multiple values, as Atlassian recommends. The default symbol for dividing is a “-” , but the information may not be imported if this symbol is already used somewhere in the object name or attributes.

  2. Check the names and all Attributes for empty characters (spaces, line breaks, etc.), otherwise, later the search in Insight may work incorrectly.

When importing:

  1. Do not use “+” characters in Group and Object names, as Atlassian will work with errors, and Group or Object will not be created. Try to avoid such symbols  “&”, “+”, “)”, “(“ too because of bugs.  Add comments to these bugs (bug1, bug2) to increase their priority and probability of their fix.

  2. Select “Create predefined configuration” instead of “Create a predefined structure”, as Object Schema and structure (Object Type) have been created manually. Screenshot from 2022-04-01 14-40-40.png

  3. Сreate an import configuration. Enter the predefined configuration “Name = ${Name of Column}” in Object mapping (IQL), if there are objects of other schemes among Object Attributes. Click on the name of the newly created import, and then on the selected Object TypeScreenshot from 2022-04-01 14-49-09.pngScreenshot from 2022-04-01 14-49-20.png


Nevertheless, Services and Insight can facilitate service management since all information on objects can be stored in one place and be successfully imported. Feel free to roast us in the comments :)


Gemma July 15, 2022

I have a question regarding your 'when importing' step. Since the "improved" update, there is no longer a visible option to upload to a predefined structure.

Am I missing something or has it just been taken away? I cannot find any information regarding this.

Natalya Ozhigova November 2, 2022

Hi Gemma,

Sorry if it is not actual anymore.

Yes, Atlassian changed the import process and some steps were optimized. I found the documentation:


Log in or Sign up to comment
AUG Leaders

Atlassian Community Events