is it possible to use jira rest api with jira-python?

HI, 

Having stumbled on jira-python, how can I use jira-python to perform the following JIRA rest api?

# GET http://<Your_JIRA _Server>/rest/api/2/issue/<Issue_Key>

GET 'http://dev:8080/rest/api/2/issue/mgrapp-1106'

 

2 answers

1 accepted

1 vote

Yes that is extremely possible:

 

from jira import JIRA
 
jira = JIRA(basic_auth=(un, pwd), options={'server': server})
issue = jira.issue(issuekey, fields='summary,comment,attachment')

 

That will retrieve the same information (although you will want to customise the fields that come back I expect.

Jeff, 

Thank you! Your response is much appreciated

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

219 views 2 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you