JIRA REST Client for PythonBreaking free of Java’s velvet chainsBen SpeakmonDeveloper Relations, Atlassian
How can I then return in happy plight,That am debarr’d the benefit of REST?                                   Shakespeare ...
Why use a REST library?• Turn JIRA into a service • Integrate it with your other services or script against it• Handles bu...
Installation
# Installing from source# Like all good things, it lives on bitbucket$ git clone https://bitbucket.org/         bspeakmon_...
Examples
from jira.client import JIRAoptions = {   server: https://jira.atlassian.com}jira = JIRA(options)# Get an issue.issue = ji...
# Update the assignee on an issue...jira.assign_issue(issue, connie)# ...or by editing the issue directlyissue.update(assi...
jirashell
An interactive JIRA shell (!)• Treat your JIRA server like any other Python object• Explore your issues, comments, workflow...
Want to play along?• http://readthedocs.org/docs/jira-python/• BSD licensed• Pull requests already accepted
Use Python to turn your JIRA server into a powerfulweb service! http://atlss.in/jira-python  #atlassiansummit
Thank you!
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
Upcoming SlideShare
Loading in …5
×

JIRA REST Client for Python - Atlassian Summit 2012

5,530 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
5,530
On SlideShare
0
From Embeds
0
Number of Embeds
1,350
Actions
Shares
0
Downloads
30
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide
  • \n
  • This slide should begin your presentation\n
  • This can be used for quotations / testimonials\n
  • \n
  • \n
  • \n
  • This slide can be used to break up the chapters of your talk - this would be the start to a new chapter\n- OR -\nThis could be used for making a single statement of a few words or a sentence.\n\nYou should choose one or the other, so that there’s a consistent system.\n
  • \n
  • \n
  • This slide can be used to break up the chapters of your talk - this would be the start to a new chapter\n- OR -\nThis could be used for making a single statement of a few words or a sentence.\n\nYou should choose one or the other, so that there’s a consistent system.\n
  • \n
  • \n
  • \n
  • \n
  • this can be used for key ideas that you want people to tweet\n
  • fin\n
  • JIRA REST Client for Python - Atlassian Summit 2012

    1. 1. JIRA REST Client for PythonBreaking free of Java’s velvet chainsBen SpeakmonDeveloper Relations, Atlassian
    2. 2. How can I then return in happy plight,That am debarr’d the benefit of REST? Shakespeare (28.1-2) (Updated for modern developers)
    3. 3. Why use a REST library?• Turn JIRA into a service • Integrate it with your other services or script against it• Handles busywork for you • Autotranslate from JSON to native objects and back • Authentication, error handling, resource linking• Support for Python, Java and Ruby
    4. 4. Installation
    5. 5. # Installing from source# Like all good things, it lives on bitbucket$ git clone https://bitbucket.org/ bspeakmon_atlassian/jira-python.git# Manages dependencies and script installation# for you$ pip install jira-python
    6. 6. Examples
    7. 7. from jira.client import JIRAoptions = { server: https://jira.atlassian.com}jira = JIRA(options)# Get an issue.issue = jira.issue(JRA-1330)# Find all comments made by Atlassians on this issue.import reatl_comments = [comment for comment in issue.fields.comment.comments if re.search( r@atlassian.com$, comment.author.emailAddress)]
    8. 8. # Update the assignee on an issue...jira.assign_issue(issue, connie)# ...or by editing the issue directlyissue.update(assignee=connie)# Add a comment to an issuejira.add_comment(issue, New comment body)# Delete an issueissue.delete()
    9. 9. jirashell
    10. 10. An interactive JIRA shell (!)• Treat your JIRA server like any other Python object• Explore your issues, comments, workflows, components as first-class resources• Develop and test your scripts against your actual server • Test in production against real data • Test bugfixes on staging
    11. 11. Want to play along?• http://readthedocs.org/docs/jira-python/• BSD licensed• Pull requests already accepted
    12. 12. Use Python to turn your JIRA server into a powerfulweb service! http://atlss.in/jira-python #atlassiansummit
    13. 13. Thank you!

    ×