Hello,
I use the Python module Jira (https://pypi.org/project/jira/) to write Python scripts in command-line mode (token-based authentication). I have noticed that in some cases, these scripts do not work because Jira commands sent to the server are denied. However, if I connect to the Jira server using my web browser, the scripts start working. This suggests a link between the Jira module and the browser, or possibly the browser cache.
Have you encountered this issue? If so, do you know of a solution?
Hello @LaBulle22
Don't trust the old PyPi library, it's know to have a range of little problems.
You are much better off using Python's native requests library (http://docs.python-requests.org
) and interact directly with the API endpoints. Yes, it takes more effort to build your requests, but the end result is a more 'pure' result and you break the dependency on a third party library to 'shortcut' your work.
Supplement your coding with an API test tool like Postman to confirm whether a problem is due making a mistake with the request versus a coding mistake.
Have fun.
I conducted the investigation in my company as well. It finally appears that we are using this feature (User Management - License & User Deactivator for Jira | Atlassian Marketplace) and it is this feature that is the cause of my problem.
All Jira user accounts are impacted, in reality our configuration is such that you need a functional Jira account to avoid the obligation to log in to the browser before launching your script (functional accounts have a permanent licence).
Thanks again to have spent some time to help me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using this library with python code without any issues.
Can you share what error you are getting (for jira command denied)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.