jira-rest-api

Using Python to automate creation of JIRA tickets

Using Python to automate creation of JIRA tickets Question: I have been trying to write a python script to automatically raise Jira tickets, and have been running into some trouble. To be more specific, I tried to use both the issue_create and create_issue methods as outlined in the atlassian-python API reference. In the code provided …

Total answers: 1

UnicodeEncodeError: 'charmap' codec can't encode character 'u03a3' in position 409: character maps to <undefined>

UnicodeEncodeError: 'charmap' codec can't encode character 'u03a3' in position 409: character maps to <undefined> Question: I am running Python code to pull the issues from JIRA. This code is provided by Atlassian and they are using JiraOne Library. In the Config.Json file we have the following information. { "user": "[email protected]", "password": "<APITOKEN_HERE>", "url": "https://nexusfive.atlassian.net" } …

Total answers: 1

Folder as python String wit _

Folder as python String wit _ Question: i want to print a foldername as a python 3.9 string. It looks like C:ABCDEF_GHI When i use print(r’C:ABCDEF_GHI’) it works generally. BUT: I need to print it in Jira as a issue comment. There it unfortunately looks like this: C:ABCDEF_GHI I use the default JIRA API for …

Total answers: 1

Python 3 – Pycharm – Jira REST API – Error: module 'http' has no attribute 'client'

Python 3 – Pycharm – Jira REST API – Error: module 'http' has no attribute 'client' Question: hope you’re all fine You’ll see, I’m using PyCharm 2022.3 (Community Edition) with Python 3.9.7, and I’m trying to execute the following code: #!/usr/bin/env python3 # Required libraries for the program. import requests as req from requests.auth import …

Total answers: 1

Excel cell list showing as string in Python

Excel cell list showing as string in Python Question: I have a excel table, in which I have a column as below. Which is label list from JIRA I would like to take each cell value as a list by running a for loop. For example: List=[‘[Engineering]’,'[Non-Engineering]’] Then I will use it to update my …

Total answers: 1

how can one create a link between two issues using python jira api

how can one create a link between two issues using python jira api Question: I am trying to automate some issue creation tasks that I need to perform.. Well, I don’t like to click too much. I have managed to create issues by import jira jira_conn = jira.JIRA(‘url_to_server’) issue_dict_a = dict( project={‘key’: ‘ABC’}, summary=’summed up’, …

Total answers: 2

How to access the next page using JIRA -REST-API for python

How to access the next page using JIRA -REST-API for python Question: I am trying to fetch all issues related to a project. When I execute the below code, I get only 50 results. I need to navigate all pages and get all the bugs.Please help all_issues = jira.search_issues(‘project=ProjectName’) each_issue = sorted([issue.key for issue in …

Total answers: 3

Get fields from a specific Jira issue

Get fields from a specific Jira issue Question: 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 issue.fields() Instead of returning the list of fields it returns: <jira.resources.PropertyHolder object at 0x108431390> Asked By: Kobi K || Source Answers: Found …

Total answers: 5

How can I post an attachment to jira via python

How can I post an attachment to jira via python Question: I want to use python to post an attachment to jira via jira rest api and without any other packages which are needed to install. I noticed that “This resource expects a multipart post.”, and I tried it,but maybe my method was wrong,I failed …

Total answers: 4