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
0
votes
1 answer

How to add a url with single quotes in jira description

We have an automated job that add’s a url in the description of a jira ticket but the url has single quotes which is breaking the link … Link as Text: http://localhost:5601/app/?_g=(refreshInterval:(pause:!t,value:0),time:(from:'2019-10-30…
user2359997
  • 561
  • 1
  • 16
  • 40
0
votes
1 answer

cx_Freeze while creating an executable not ecognizing JIRA

I am creating an executable using python 'cx_Freeze' module. Though I have jira packages installed, I am getting the following error: …
Ashwini
  • 393
  • 2
  • 9
0
votes
1 answer

How can I convert a result into a list of variables that I can use as an input?

I was able to come up with these two parts, but I'm having trouble linking them. Part 1 - This accepts a filter which is listed as 'project = status = blocked'. This will list all issue codes that match the filter and separate them line by line. Is…
razaclas
  • 35
  • 5
0
votes
1 answer

Synchronization using python code based on an excel file to JIRA

I am using python package 'jira' for establishing connection with the jira. I basically use the information from excel file and create tickets automatically in JIRA based on the excel information. Sometime there might be changes in the excel…
Ashwini
  • 393
  • 2
  • 9
0
votes
1 answer

Python: Get user's last login date time of jira

I use below code to fetch jira user details for the project: user_details_response = requests.request("GET", self.JIRA_URL + "rest/api/2/user/assignable/multiProjectSearch?projectKeys=" + jira_project_key, headers=headers, params=query,…
Karthick Raju
  • 757
  • 8
  • 29
0
votes
1 answer

Update Jira filter permission - jira python

I am using jira python to access Jira resource. I created a filter using the create_filter method, it sets the permission to Private by default. I want the filter to be accessible by others and I don't find an option to specify the permission. Is…
MukeshRKrish
  • 1,040
  • 5
  • 14
0
votes
1 answer

Comment not posting when using jira.add_comment

I am trying to write a simple interface with my Jira board, I have connection with basic_auth and am able to retrieve a issue using jira.issue('ISSUE NAME') however calling jira.add_comment(issue, "Hello World") results in no comment being posted to…
Astormooke
  • 71
  • 7
0
votes
1 answer

Error: Object of type User is not JSON serializable while creating issue with jira-python

I'm new to both jira and python and I'm trying to create an issue through jira-python and got this error: TypeError: Object of type User is not JSON serializable I've tried to remove some fields but still I got the same error and have no idea…
yannm
  • 491
  • 1
  • 4
  • 11
0
votes
1 answer

Jira - Get custom field's previous values

I would like to history of custom field values. Below code could give me raw data of the current field value: from jira import JIRA jira_options = {'server': 'url'} jira = JIRA(basic_auth=('user_name', 'password'), options = {'server':…
Karthick Raju
  • 757
  • 8
  • 29
0
votes
1 answer

JIRA API Python script create issue with related

I'm using the JIRA python library (https://jira.readthedocs.io/en/master/index.html) and I'd like to create a new issue with a "related to" inward link to an existing issue. #Existing issue... existing_issue_key = PROJ-123 issue_dict = { …
user791793
  • 413
  • 1
  • 6
  • 19
0
votes
1 answer

Atlassian account-id

Recently, due to the GDPR new regulations on privacy, Atlassian have deprecated their access method via API. As of about 1 week from today, accessing using username/email and password will no longer…
Gulzar
  • 23,452
  • 27
  • 113
  • 201
0
votes
1 answer

My python script can't see the attachments attached to an issue with jira-python

I've made a python script that creates Jira issues and attach a file to them. This part works fine and I can see the attachment directly in Jira. I can also see the attachment in my Python script if I reference directly the attachment ID (that I've…
Guillaume
  • 1,811
  • 2
  • 16
  • 22
0
votes
0 answers

How to read jira fields based on their name from CSV file

I'm trying to read and update some fields based on issue number and field name from csv file. Currently I've hard-coded the names and it looks like this from jira import JIRA import csv later i read csv file in which column 0 is issue number and…
0
votes
1 answer

Retrieve Jira ID after Creating A Jira

I wanted to check if there was a way to return a issue ID after sending a request for one. Below is my code issue_dict = { 'project': {'id': 123}, 'summary': 'New issue from jira-python', 'description': 'Look into this one', …
Navy Seal
  • 125
  • 1
  • 14
0
votes
0 answers

Detect when bug is accepted in a specific board

I'd like to know if it's possible detect when someone accept a bug ticket, is there any way to detect it? I mean I'm creating a bot for slack which should notify me when a jira bug is accepted so I can get the details from that like Assigned to : X…
StuartDTO
  • 783
  • 7
  • 26
  • 72