Hello everyone,
I'm trying to install the Jira Python API in my machine, i tried to download the package from https://pypi.org/project/jira/, however when i try to install it with pip in python, it says some files are missing.
Could anyone recently installed it, please help me to fix the issue. Also, is it necessary to do any other tools installation before?
PS: PIP is properly configured & its installing, i tried to deploy another package & it installed without any error.
When I installed it, I used the easy_install jira command and didn't have any trouble.
Hey thanks for the answer. Actually i figured that issue.
But now when i try to retrieve jira details, i have certificate failure issue. Any idea how to fix it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had to save a local copy of the cert (exported via a browser), and then reference it in my script, e.g.
server = 'https://<JIRA_INSTANCE>'
root_cert_file = 'c:/users/rseale/Documents/MYCERT.crt'
username = 'bob'
password = 'abc123'
jira_options = {
'server': server,
'verify': root_cert_file
}
jira = JIRA(options=jira_options, basic_auth=(username,password))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used this directly on the code. When i executed it, i got certificate validation failure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And you exported your site's certificate, saved it to your file system, and point to it in your code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know where that certificate exists! Any clue for that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can export it by visiting your instance in a browser. Search for "export certificate from browser" for guidance, depending upon your browser.
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.
i fail to do that, what do you mean by "your instance" in your message? also, i would like to understand if the certificate issue is about user authentication or something specific to JIRA itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
By "your instance" I mean the URL you go to in your browser when you access Jira, e.g. https://jira.mycompany.com, etc. The certificate has nothing to do with user authentication; that is a separate step, shown in my code snippet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah okay. Yes i know the url of my company's jira portal. But am not sure about the certificate part.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Finally i got the SSL certificate from my admin team. and it works perfectly! Thanks for your help.
However, i need your help on another topic, how to resolve the maxresults issue to retrieve more than 50 tickets? i came across some threads where they just ask to use jsql, but is it the only solution? because for my case, am not using jsql in python. however with jira.search_issues i tried to used maxresults which didn't work.
any suggestions or thoughts on this?
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.
Cool; glad you're good to go. Since your Python API installation and SSL issues are wrapped up, I'd ask that you accept this answer to help others down the road that have similar issues, and if you have more questions related to your Python adventures, post them as new questions.
Thanks!
Payne
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.