sprintr icon indicating copy to clipboard operation
sprintr copied to clipboard

JIRA authentication credentials issue

Open fm555 opened this issue 5 years ago • 8 comments

I have added the following variables to my .Renviron file:

JIRA_USER="my_username" JIRA_TOKEN="my_password" JIRA_SESSION_COOKIE="my_JSESSIONID_cookie" JIRA_API_URL="https://jira.host/jira/rest/api/2/search?jql=long_name"

If I type in the console the name of the variables, it gives the correct value, except for JIRA_SESSION_COOKIE, which gives error object JIRA_SESSION_COOKIE not found. Is there any mistake in the JIRA_SESSION_COOKIE variable in the .Renviron file? The readme says that the "=" and the ";" should be omitted, right? I got the JSESSIONID cookie value from Postman, I guess I am using the correct cookie.

After defining these variables, I am trying to run the example provided in the Usage section:

get_boards() %>% head(1) %>% pull(id) -> my_board

Error: Could not find Jira authenticaiton credentials.

I guess the line above should also work with my JIRA url? In Postman, I can access the JIRA API with basic authentication, using my username and password, and the cookies (JSESSIONID).

Is it possible to access the JIRA API with sprintr and basic authentication? Could you please provide an example?

fm555 avatar Apr 15 '19 14:04 fm555