Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-2923

Import : Users : Empty companyId does not set value to NULL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • None
    • 10.87, 10.88
    • Import|Export
    • 2
    • Severity 3 - Minor
    • No

    Description

      Issue Summary

      When importing a user from the template, if companyId is left blank, the value that will be passed on will be blank, instead of null. The same applies to company.

       This causes an issue when using the API to alter a user, as an error message will inform us that companyId and company cannot be empty.

      The behavior is correct when creating the user from the UI, by setting the value to null

      Steps to Reproduce

      1. Create a user from the import template
      2. Leave companyId empty
      3. Optionally, leave company empty as well
      4. Verify the user from a GET call and check companyId field
      5. Create another user from UI and check the same

      Expected Results

      • Per UI behavior, the values should be:
        "companyId": null,
        "company": null,

      Actual Results

      • The value when using import is:
        "company": "",
        "companyId": "",

      Workaround

      • Manually patch the value:
        [
        	{
        	"op": "replace",
                "path": "/companyId",
                "value": null
        	}
        ]
        

      Attachments

        Issue Links

          Activity

            People

              kforeman@atlassian.com Kyle Foreman
              fd18f17e9ccb align-connector-bot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync