- changed status to resolved
Do not create issues
I installed the jira-bulk-loader.py, and then try the first.
I created a file, its content as below:
h5. Clariones Test: First task summary *clarioneswang * =description line 1 =description line 2
h5. Clariones Test: Second task summary *clarioneswang * =description line 3 =description line 4
Then I run the command:
C:\Python27\Scripts>jira-bulk-loader.py -U clarioneswang -P ** -H solution.xxxx.net -D 2013-01-02 -W ACP --dr y jira.txt Parsing task list.. Validating tasks.. Creating tasks.. === The following structure will be created ===
Done.
Then I remove the --dry and run again:
C:\Python27\Scripts>jira-bulk-loader.py -U clarioneswang -P xxxxxxx -H solution.xxxx.net -D 2013-01-02 -W ACP jir a.txt Parsing task list.. Validating tasks.. Creating tasks.. === The following structure will be created ===
Done.
Then I load into my JIRA system, check for my issues, nothing new.
No error message.
Comments (6)
-
repo owner -
reporter Thanks Alexander, this resolved the "nothing happens" issue. And then, I got failed to upload the issue by script.
I ran this command:
C:\Python27\Scripts>jira-bulk-loader.py -U clarioneswang -P xxxx -H solution.xxxx.net/jira -D 2013-01-03 -W ACP --dry jira.txt Parsing task list.. Validating tasks.. Your username and password are not accepted by Jira.
I'm very sure the username and password is exactly my JIRA account.
Then I try to use 'curl' to do the authentication. I ran the command:
D:\work\curl>curl -D- -u clarioneswang:^xxxx https://solution.xxxxx.net/jira/rest/api/2/issue/ACP-1047 HTTP/1.1 401 Unauthorized Date: Thu, 03 Jan 2013 01:31:12 GMT X-AREQUESTID: 91x5264738x1 Set-Cookie: JSESSIONID=657009AEF9C37EE997CD05FA413035DB; Path=/jira; Secure; HttpOnly X-Seraph-LoginReason: AUTHENTICATION_DENIED WWW-Authenticate: OAuth realm="https%3A%2F%2Fsolution.xxxx.net%2Fjira" Content-Type: text/html;charset=utf-8 Content-Length: 1137 Vary: Accept-Encoding Connection: close
<html><head><title>Apache Tomcat/6.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:w hite;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525 D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:w hite;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {c olor : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - Basic Authentic ation Failure - Reason : AUTHENTICATION_DENIED</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b> message</b> <u>Basic Authentication Failure - Reason : AUTHENTICATION_DENIED</u></p><p><b>description</b> <u>This reques t requires HTTP authentication (Basic Authentication Failure - Reason : AUTHENTICATION_DENIED).</u></p><HR size="1" nosh ade="noshade"><h3>Apache Tomcat/6.0.32</h3></body></html>
There is a line in the response header: WWW-Authenticate: OAuth realm="https%3A%2F%2Fsolution.xxxx.net%2Fjira"
Does this means, My JIRA need OAuth but the script use Basic? My JIRA version is 4.4.1.
Thanks.
-
reporter - changed status to open
Failed when do authentication
-
repo owner Hi,
there are two issues actually.
- JIRA 4.4.1 has different API version - 2.0.alpha1 (http://docs.atlassian.com/jira/REST/4.4.1/). By default I only implemented API version 2 (JIRA 5.0 and above). Support of 4.4.1 (2.0.alpha1) will be added in the next version of jira-bul-loader.
- Because of different API version you should use different URL in your request: curl -D- -u clarioneswang:^xxxx https://solution.xxxxx.net/jira/rest/api/2.0.alpha1/issue/ACP-1047
-
reporter (Reply via clar...@aaxischina.com):
Hi:
Many thanks. I will try other ways to load issues to my JIRA 4.4.1.
-----Original Message----- From: Alexander Dudko [mailto:issues-reply@bitbucket.org] Sent: Wednesday, January 09, 2013 2:34 AM To: clarioneswang@aaxischina.com Subject: Re: [oktopuz/jira-bulk-loader] Do not create issues (issue
#4) -
repo owner - changed status to resolved
- Log in to comment
Hello!
*clarioneswang * <- please remove space here.
Then your command will produce the following output: