pawelrychlik / jira-dependency-graph

Graph visualizer for JIRA tickets' dependencies
MIT License
281 stars 85 forks source link

HttpError 401 when using JIRA Cloud #46

Open jfrantzius opened 3 years ago

jfrantzius commented 3 years ago

Hi, as already mentioned in #30 , when using jira-dependency-graph with JIRA cloud, unfortunately an HttpError 401 is received:

Traceback (most recent call last):
  File "/jira/jira-dependency-graph.py", line 302, in <module>
    main()
  File "/jira/jira-dependency-graph.py", line 291, in main
    graph = graph + build_graph_data(issue, jira, options.excludes, options.show_directions, options.directions,
  File "/jira/jira-dependency-graph.py", line 207, in build_graph_data
    return walk(start_issue_key, [])
  File "/jira/jira-dependency-graph.py", line 157, in walk
    issue = jira.get_issue(issue_key)
  File "/jira/jira-dependency-graph.py", line 49, in get_issue
    response.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: [..]

That's really a pity, I was so looking forward to see that dependency graph :)

mpavlikWandera commented 2 years ago

@jfrantzius it works for me .... can you send full command that you use? of course with credentials redacted

Regenhardt commented 1 year ago

I didn't get a 401 (used --cookie= for auth), but the rest api is different so the call for issues fails with 404.

Regenhardt commented 10 months ago

I updated my web version to use Jira Cloud, but only for api token auth for now, I broke cookie auth in the process: https://jiragraph.regenhardt.dev

Andrwe commented 3 months ago

@jfrantzius For me it worked with Jira Cloud by following these steps:

  1. generate api token for my user via https://id.atlassian.com/manage-profile/security/api-tokens
  2. run jira-dependency-graph.py -u "jira-user-email-address" -p 'generated-api-token' --jira="https://prisma.atlassian.net"