Wanted a script to generate report of Jira ticket linked with Github Pull Request, owner, repo, status and reviewer details.
An Example is attached for reference.
HI @satish_1_badiger ,
To generate a report listing Jira tickets linked with GitHub Pull Requests, including the PR owner, repository, status, reviewer, aging, and sprint information, follow this approach:
Query Jira for issues with linked Pull Requests using a suitable JQL:
issueFunction in hasPullRequest()
Use Jira REST API to fetch details for each issue:
Endpoint:
GET /rest/api/2/issue/{issueIdOrKey}?expand=renderedFields,names,fields
Extract fields such as:
Use GitHub REST API to fetch PR metadata:
GET /repos/{owner}/{repo}/pulls/{pull_number}
Add sprint and status details
Export the results into an HTML table or CSV format for easy sharing.
Reference:
This method helps in tracking engineering progress and identifying review bottlenecks across sprints.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.