I am not able to understand how to fetch the status of the pull request via Python jira API. I have gone through https://jira.readthedocs.io/en/latest/examples.html, and searched the internet for it. But I was not able to link the jira issue with the pull request, I saw that the pull request is linked to jira issue id, but was not able to understand how to implement it.
I am using python 3.7
from jira import JIRA
issue = auth_jira.issue('XYZ-000')
pull_request = issue.id.pullrequest
I am getting this error:
AttributeError:
str
object has no attributepullrequest
I am not sure how to access pullrequest data in jira. Any leads would help.