How to import inactive users

Benjamin Marty August 27, 2014

I have a JSON import file that has a bunch of content, but the content I'm concerned with is basically structured like this:

{

   "users" : [

      {

         "name" : "OldSystem_johndoe",

         "fullname" : "John Doe",

         "active" : false

      }

   ]

}

But after the JSON import completes, the user is active and is a member of the jira-users group. Why? How can I import inactive users?

2 answers

1 accepted

1 vote
Answer accepted
pborkowski
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.
August 28, 2014

Hello Benjamin,

the code that you have pasted should work. However we had a bug connected to this functionality ( https://ecosystem.atlassian.net/browse/JIM-1080) - it was fixed in JIM 6.1.0. We are using very similar code piece in our tests. As far as I know it's working correctly. Please make sure that you are using the newest JIM version: https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugins.jira-importers-plugin

In case it's still not working please let me know by commenting this answer or creating a new issue under JIM project.

Cheers,

Przemek

Benjamin Marty August 28, 2014

Our JIRA installation is on version 6.0.7 and JIM 6.1 apparently doesn't support JIRA 6.0. Are we stuck until our JIRA installation is upgraded? Do we have to use some other import mechanism if we want this to work for now?

0 votes
James Mason November 12, 2019

To the best of my current knowledge - this remains an issue.  I understand it to have been filed as "jiracloud-72606".  See "Import Hierarchical Data to JIRA w/JSON", see my comment of 25 Jul 2019, edited 29 Jul 2019, beginning with "Further discovery - the JSON user load process contains critical bugs...".

Suggest an answer

Log in or Sign up to answer