The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get issue id from Jira in Python?

John Paco
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 2, 2022

https://confluence.atlassian.com/jirakb/how-to-get-issue-id-from-the-jira-user-interface-827341428.html

This Link describes how to get issue id from the Jira User Interface.

Is it possible to get This id in Python with using Jira-Rest-Api?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
svegesna
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 20, 2023

I'm using JIRA python library

from jira import JIRA, JIRAError

You can use search_issues and try ti get the key using issue.key. 

def getIssues(self):
query = "project='Your Project'"
issues = self.jira.search_issues(query, maxResults=False, fields=['key'])
for issue in issues:
keys = {issue.id: issue.key}
return keys
0 votes
Pramodh M
Community Champion
February 2, 2022

Hi @John Paco 

Welcome to the community 🙂

Here's the python wrapper you can play around to get the data

https://atlassian-python-api.readthedocs.io/

Let me know if you have any queries

Thanks,

Pramodh

TAGS
AUG Leaders

Atlassian Community Events