Questions tagged [python-jira]

Actually called jira-python, this is a python library created to use with REST APIs provided by JIRA.

JIRA provides a number of REST APIs to capture or push information to JIRA. These APIs, being REST, can be used with many programming languages. JIRA-Python library makes it easier to use these APIs using Python applications.

The library was created by Ben Speakmon and can be downloaded from bitbucket.

231 questions
19
votes
4 answers

Is it possible to change jira issue status with python-jira?

I want to change jira issue status with python-jira.The python-jira API is http://jira-python.readthedocs.org/en/latest/ .I can't find any way to do this. I was trying to use issue.update(status="Closed").But it didn't work.I found Issue status and…
wind
  • 203
  • 1
  • 2
  • 6
10
votes
3 answers

python : cannot import name JIRA

I have already done pip install jira but when I run the following it fails with ImportError: cannot import name JIRA import re from jira import JIRA jira = JIRA('https://issues.net') # all values are samples and won't work in your…
Scooby
  • 2,809
  • 6
  • 33
  • 75
10
votes
3 answers

Get fields from a specific Jira issue

I'm trying to get all the fields and values from a specific issue my code: authenticated_jira = JIRA(options={'server': self.jira_server}, basic_auth=(self.jira_username, self.jira_password)) issue = authenticated_jira.issue(self.id) print…
Kobi K
  • 6,689
  • 5
  • 36
  • 75
7
votes
1 answer

Authenticate to JIRA with gmail in python

I am trying to authenticate to jira by google sign-in using a python script . I am using jira python library. I tried using basic_auth but it failed with error as my account is registered through…
user3351750
  • 887
  • 12
  • 23
7
votes
1 answer

python jira return the content of a filter

I'm new in jira python and I want to have a list with tickets obtained with an existing filter. I tried jira.filter(id) but instead receiving the list with issue, I received only the name of the filter. Using jira.search_issue is working, but…
Nicu Staff
  • 71
  • 1
  • 2
5
votes
1 answer

AttributeError: 'Magic' object has no attribute 'cookie' while using python-jira

I've run into this issue while using the jira library for python. Despite setting the appropriate parameters for basic auth, I get the following: Exception ignored in: > Traceback…
Jack Keck
  • 111
  • 3
5
votes
1 answer

Python JIRA client returning 401 error

I tried using Python JIRA client with following code: #!/usr/bin/env python # -*- coding: utf-8 -*- from jira.client import JIRA jira = JIRA(options={'server': 'http://server.atlassian.net'}, basic_auth=('email@example.com',…
metalcamp
  • 446
  • 1
  • 5
  • 13
5
votes
4 answers

Jira search all issues in a project with status Done or Closed

I am trying to list all isues in a project with status Done or Closed. When I run a JQL-query with advanced search I get: 3096 issues in the project. However when I run it with python I get around 50 issues. #/usr/bin/python import jira.client from…
user3580316
5
votes
2 answers

Jira python set custom field

I have a problem when I'm trying to set a value on a custom field in JIRA it returns me this error: File "c:\python27\lib\site-packages\jira\resilientsession.py", line 45, in raise_on_error r.status_code, error, r.url, request=request, response=r,…
J.C Julien
  • 153
  • 1
  • 10
5
votes
3 answers

jira-python - how do you update the fixVersions field?

I'm not sure what I'm doing wrong here, and am hoping someone else has the same problem. I don't get any error, and my json matches what should be correct both on Jira's docs and jira-python questions online. My versions are valid Jira versions. I…
user797963
  • 2,378
  • 5
  • 36
  • 68
5
votes
1 answer

Access specific information within worklogs in jira-python

How can I get the minutes spent from a worklog from an issue using the jira-python library? Using the jirashell I see that the issue has the attribute issue.fields.worklog, however when I try to access that in my python code I get the error:…
davzaman
  • 682
  • 2
  • 8
  • 17
5
votes
1 answer

Using Jira's Python API, how can I set the epic link for an issue?

I am trying to assign issues to epics using Jira's python API. From the documentation, I found there is an add_issues_to_epic method in the GreenHopper class, but it doesn't seem to work for me. I have the following so far from jira.client import…
PS376
  • 509
  • 7
  • 12
4
votes
1 answer

How to get jira project issues total count faster using jira-python?

The following code returning all jira's and taking more time. i want to get the total jira count faster, without jira details jira.search_issues('project=PROJ and assignee != currentUser()') From the following link we can get total count using JQL,…
Lava Sangeetham
  • 2,204
  • 2
  • 26
  • 42
4
votes
2 answers

add worklog to JIRA (with user and activity metadata) using the API

I am using jira-python and request API to log work to JIRA tickets with the user and activity info but can't figure out a way to do it . I have the following code : jira.add_worklog("issue number", timeSpent="2h", user="username") but it seems to…
Scooby
  • 2,809
  • 6
  • 33
  • 75
4
votes
2 answers

read certificate(.crt) and key(.key) file in python

So i'm using the JIRA-Python module to connect to my company's instance on JIRA and it requires me to pass the certificate and key for this. However using the OpenSSL module,i'm unable to read my local certificate and key to pass it along the…
Ashish Padakannaya
  • 343
  • 1
  • 5
  • 15
1
2 3
15 16