Search code examples
pythonjira-rest-apipython-jira

Get fields from a specific Jira issue


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>

Solution

  • Found using:

    print self.issue_object.raw
    

    which returns the raw json dictionary which can be iterate and manipulate.