Your SlideShare is downloading. ×
0
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
JIRA REST Client for Python - Atlassian Summit 2012
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
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

JIRA REST Client for Python - Atlassian Summit 2012

3,390

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,390
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
25
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
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
  • Transcript

    • 1. JIRA REST Client for PythonBreaking free of Java’s velvet chainsBen SpeakmonDeveloper Relations, Atlassian
    • 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. 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. Installation
    • 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. Examples
    • 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. # 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. jirashell
    • 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. Want to play along?• http://readthedocs.org/docs/jira-python/• BSD licensed• Pull requests already accepted
    • 12. Use Python to turn your JIRA server into a powerfulweb service! http://atlss.in/jira-python #atlassiansummit
    • 13. Thank you!

    ×