Open gargle opened 4 years ago
Hi gargle,
Thanks for your input.
Is it possible to share your Jira Environment for quick testing? I would require also a dummy user and password through which I can login into your JIRA instance through browser (not programatically)
The current implementation with Apache JIRA which I assume is also hosted on cloud and it works fine -
jira.login(jira.env = "https://issues.apache.org/jira", jira.user = "jiraTestUser", jira.pwd = "jiraTestPwd")
sorry, that jira belongs to my employer, I cannot share the data.
Did you try with your own credentials which you use in the browser for login? and the same url e.g. jira.env = "https://yourjirawebsite.com" jira.user = "your.email@comany.com" jira.pwd = "yourLoginPwd"
Can you share the logs created in your project-directory/Logs folder (from where you called the jira.login function)
oh, I used to work with the jira server software without any problem at all, it's just that the jira in the cloud instance now uses the api token, it doesn't allow any userid/password combination anymore. You version works fine with the server version of jira.
Ok got it.
I will change this request to an enhancement to allow cloud instance login with API token.
I can not give you a timeline as of now as I don't have a test instance to develop it - If you can find any test cloud instance, please feel free to share.
I will try to find one to and close it soon.
Don't worry, I use my own code for now. I'll get by :)
Did you check https://www.atlassian.com/try/cloud/signup?bundle=jira-software&edition=free?
Jira Software Cloud Free
Access to Free features
2 GB storage
For up to 10 users
Community Support
I cannot query jira with your code. The login mechanism might be the culprit. Jira uses an email address together with an api token.
See https://confluence.atlassian.com/cloud/api-tokens-938839638.html
What I use:
jiraUrl <- "https://jira-instance-in-the-cloud/rest/api/latest/" jiraCredentials <- base64_enc("my-email-address:api-token") jiraHeader <- paste0("Basic ",jiraCredentials)
jsonResponse <- GET(paste0(jiraUrl,jiraQuery), add_headers(Authorization = jiraHeader), add_headers(Accept = "application/json"), add_headers('X-Atlassian-Token' = "nocheck"), content_type("application/json; charset=UTF-8"))