Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-9766

Public or Private parameter for Comments in JSON Importer

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Forge and Connect
    • None
    • 2
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Problem Definition

      We are using the JSON importer for transferring data from different systems to Jira Service Management and Jira Software.

      JSON import doesn't support a parameter that reflects if the comment is private or public.

      So, we update each comment to set the visibility.

      This operation decreases the speed of migration and causes the number of requests we use. As the result, Jira can't handle the pressure and falling down.

      The importer works great for JS because it doesn't have private or public comments.

      https://support.atlassian.com/jira-cloud-administration/docs/import-data-from-json/

      {
          "projects": [
              {
                  "name": "Sample data",
                  "key": "SAM",
                  "issues": [
                      {
                          "status" : "Open",
                          "reporter" : "abcde-12345-fedcba",
                          "summary" : "Parent case",
                          "externalId": "1",
                          "comments": [
                              {
                                  "body": "This is a comment from admin 5 days ago",
                                  "author": "abcde-12345-fedcba",
                                  "created": "2012-08-31T17:59:02.161+0100"
                              },
                              {
                                  "body": "This is a comment from admin 1 day ago",
                                  "author": "abcde-12345-fedcba",
                                  "created": "2012-08-31T17:59:02.161+0100"
                              }
                          ]
                      }
                  ]
              }
          ]
      }
      

      Suggested Solution

      Add this "jsdPublic" or "properties" to make it possible and set the visibility of the comment or type of the comment.

       

      {
          "projects": [
              {
                  "name": "Sample data",
                  "key": "SAM",
                  "issues": [
                      {
                          "status" : "Open",
                          "reporter" : "abcde-12345-fedcba",
                          "summary" : "Parent case",
                          "externalId": "1",
                          "comments": [
                              {
                                  "body": "This is a comment from admin 5 days ago",
                                  "jsdPublic":true,
                                  "author": "abcde-12345-fedcba",
                                  "created": "2012-08-31T17:59:02.161+0100"
                              },
                              {
                                  "body": "This is a comment from admin 1 day ago",
                                  "jsdPublic":false,
                                  "author": "abcde-12345-fedcba",
                                  "created": "2012-08-31T17:59:02.161+0100"
                              }
                          ]
                      }
                  ]
              }
          ]
      }
      

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              a6a47bc97512 Dima Lazarchuk
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: