Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JSONやCSV取込による、ユーザーの一括作成方法について

MIDORIKAWA Shota[Ricksoft]
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 1, 2024

現在、別システムからJiraへの移行を検討しています。
この際に、ユーザー情報をCSVまたはJSONを使って一括インポートすることは可能でしょうか?

 

【試したこと】

以下のようなJSONを試作し、 設定 > システム > 外部システムインポート からJSONを選択して取込を試しました。

{
    "users": [
        {
            "name": "user-a",
            "email": "user-a@example.com"
        }
    ]
}

しかし以下のようなエラーで失敗してしまいます。

Cannot create user user-a: IdentityException from Identity V1 client:

Web検索し、こちらのQAを見たことから、上記のnameをGUIDに書き換えて再取り込みを実施してみました。エラー表示はされなくなりましたが、実際にはユーザーは作成されておらず、該当ユーザーへの招待メールなども届いていなさそうでした。

インポートログには以下のような出力が出ていました。

2024-03-01 08:56:02,111 INFO - ------------------------------
2024-03-01 08:56:02,111 INFO - Importing: Users
2024-03-01 08:56:02,111 INFO - ------------------------------
2024-03-01 08:56:02,111 INFO - Only new items will be imported
2024-03-01 08:56:02,125 INFO - 1 users associated with import. All of them imported as inactive, this can be changed after import in User Access step.
2024-03-01 08:56:02,125 INFO - ------------------------------
2024-03-01 08:56:02,125 INFO - Finished Importing : Users
2024-03-01 08:56:02,125 INFO - ------------------------------
2024-03-01 08:56:02,125 INFO - 0 users successfully created.
2024-03-01 08:56:02,128 INFO - Retrieving projects...
2024-03-01 08:56:02,142 INFO - ------------------------------

試しにnameをusernameに変更しても同様の結果でした。

次に、JSONではなくCSVインポートのほうを試しました。
要約と報告者だけのCSVを作成し、報告者の列にはメールアドレスを記載して取込を実施。しかし、こちらでも同様にユーザーは作成されませんでした。

JSONやCSVのインポートでのユーザー一括作成は出来ないのでしょうか?(別のQAを見ると少なくともCSV取込でユーザー作成は出来そうに見えたのですが・・・)

どなたか、ご存知の方がいらっしゃればご教示いただけると幸いです。

1 answer

0 votes
Dan Breyen
Community Champion
March 1, 2024

Hi @MIDORIKAWA Shota[Ricksoft] welcome to the community!  I found this article from Atlassian that talks about importing migrated data to Atlassian.  I would try those instructions for your migration.

Hope that helps.

MIDORIKAWA Shota[Ricksoft]
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2024

Hi, Dan Breyen.

Thank you for answer.

I had found the website you presented and used it as a reference to create the JSON at the beginning. But it didn't work.

I also added and imported the Issue part as well as the user part as shown below. I also specified GUIDs for username, assignee, etc.

{
"users": [
{
"username": "712020:ABCDEFGH-IJKL-MNOP-QRST-UVWXYZ123456",
"email": "user-a2example.com"
}
],
"projects": [
{
"name": "JSON Import Test",
"key": "TEST",
"issues": [
{
"summary": "JSON IMPORT TEST",
"description": "TEST",
"assignee": "712020:ABCDEFGH-IJKL-MNOP-QRST-UVWXYZ123456",
"reporter": "712020:ABCDEFGH-IJKL-MNOP-QRST-UVWXYZ123456"
}
]
}
]
}

Then, the person in charge of the imported issue became the specified user, however, the specified user was not added to the user list screen. Also, there were no invitation e-mails, etc.

Thank you.

Suggest an answer

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

Atlassian Community Events