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.

296 questions
1
vote
1 answer

How to create Jira listener?

I created a filter in Jira, which displays a list of issues. I am in process of writing a programm in Python, which could send me new issues from this filter. I suppose that I need something like Jira listener in order to get this issue in real…
LenushK
  • 141
  • 1
  • 1
  • 10
1
vote
0 answers

Jira authentication struggle

I'm using jira-python library to gain API access to our company account on Jira. This is the block of code that should work according to the docs: from jira.client import JIRA jira = JIRA(options={'server': 'https://jira.xyz.co.uk'}, …
Mark
  • 1,385
  • 3
  • 16
  • 29
1
vote
4 answers

Custom field - unable to read value - []

We have a custom field within jira service desk which holds the organization. Currently I'm trying to return the organization from the issue object returned by my jira search. However when i try to do this, I just get a class, and i'm unable to see…
Ruben Bob
  • 91
  • 1
  • 9
1
vote
2 answers

Python JIRA Non-Mandatory fields being forced on create issue

When using the jira python library and creating issues, non mandatory fields are being enforced on create_issue call. Response on create issue attempt: text: No issue link type with name 'Automated' found. Response on create meta call to check…
Pablo Velasquez
  • 111
  • 1
  • 1
  • 5
1
vote
0 answers

Importing Excel data into Jira with a Python script

I'm currently stuck with a simple script that reads data from an Excel file and then turns that data into tasks on Jira. from openpyxl import load_workbook from jira import JIRA print("Imports Work") jira = JIRA('http://jira-mycompany:8080/',…
1
vote
2 answers

When I try to call a Jira project from Python I get a JSON error

When I ran the portion of code below I get a JSON error message. I am trying to access a Jira project from Python but it keeps failing. File "C:\FAST\anaconda\python36\win64\431\Lib\json\decoder.py", line 357, in raw_decode raise…
Mario
  • 11
  • 2
1
vote
1 answer

Need to get issuelinks types with Jira python

I am writing a script with Jira python and I have encountered a big obstacle here. I need to access to one of the issuelinks under "is duplicated by" but I don't have any idea about the attributes I can use. I can get to the issuelinks field but I…
stew john
  • 11
  • 1
  • 2
1
vote
1 answer

Get worklogs info from issues of project

Hi to all and sorry for my English! I need your help in this question: I have a list of the issues (among them are epics, tasks, stories, subtasks, etc.) In a certain way, I filtered IDs of such information and placed them in the list: listOfKeys =…
1
vote
1 answer

Does Jira uses token based authentication?

I used jira python api to login and change the state of jira issue, or do other things. I want to know is there a token based approach that user will not have to enter password again and again !
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
1
vote
1 answer

Create New Issue in JIRA with Assignee,Watchers and Attachment Using Python

I'm trying to add create a new issue in JIRA using python with below code which is working but somehow can't able to figure out, how can I add the attachment here along with assignee and Watchers. Also in the description how can I add a formatted…
DKM
  • 1,761
  • 2
  • 19
  • 34
1
vote
1 answer

get all the Issues under a Version in JIRA

I have a few issues under a Version ID: "12345" and Version Name:"ABCD". I need the list of all Issues under this version or list of Unresolved Issues ID. My code to get all the version: jira = JIRA(options={'server': 'address',…
gowtham
  • 27
  • 7
1
vote
4 answers

Assigning a jira issue while its creation in a python script

I am working on a program that creates a bunch of jira issues with the following function style: def issue_create(): url = "jira_url" username = auth_name password = auth_pwd jira_inst = jira.JIRA(url,…
DSP8
  • 11
  • 1
  • 6
1
vote
0 answers

Got 500 error while creating issue in jira using python

I am creating an issue in JIRA as a part of CI/CD using Python 2.1. Code from jira.client import JIRA import requests import jira.exceptions import re jira_options={'server':…
1
vote
1 answer

Close JIRA ticket on Git Commit

I am trying close all the JIRA tickets on post-receive hook. My python script is executing on post-receive, from commit message I am able to get JIRA ticket number and found the ticket in JIRA also. All it is working fine but when I want to change…
Pavan
  • 21
  • 4
1
vote
3 answers

python-jira login without password? Any possible way to create encrypted token and use in lieu password?

Below is python test code to login jira using username and password and it works fine. from jira import JIRA jira = JIRA('http://xxx') jira = JIRA(basic_auth=('username','password'),options={'server': 'http://xxx'}) issue =…
Ashwini
  • 19
  • 4