Understand the difference between Resource objects and properties objects
mainThe library distinguishes between two types of data returned from the Jira REST API:
Resource objects: These represent REST entities that represent the current state of a server-owned concept (e.g., an Issue, a User, or a Project).
- They are instances of the
Resourceclass or its subclasses. - They always contain a
selfproperty (a root-level link to the resource's URL). - They can be connected to other resources. The client automatically converts nested resource data into proper
Resourcesubclasses (e.g.,issue.fields.assigneewill be a UserResourceobject, not just a dictionary). - They are typically obtained using the
find()method.
- They are instances of the
Properties objects: These are freeform collections of values returned by Jira for queries that do not represent a specific entity state.
- They are modeled as standard Python
dictobjects. - They are used for metadata or configuration-driven data, such as the output of
createmeta, which informs you which fields are required to create an issue.
- They are modeled as standard Python