I'm a vibe programmer with Python accessing Jira. Once I have the framework of the code I need I'm sure I'll be fine to refine it. Getting started is proving a barrier to me with the new API.
I can form the URL to make an initial JQL query to return issues but I don't think I'm authenticating correctly prior to the query. Is there somewhere I can look to see an up to date example of authentication and query using Python?
I think my query is correctly formed because when I paste it in the browser I get data back. however I get not data in my Python code.
My authentication code snippet:
def auth_session(email, token):
s = requests.Session()
s.auth = (email, token)
s.headers.update({'Accept': 'application/json'})
return s
session = auth_session(args.user, token)
My query code snippet:
url = base_url.rstrip('/') + '/rest/api/3/search/jql?jql=project=WD01&fields=*all'