Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(abr-testing): Link relevant JIRA tickets #15849

Merged
merged 9 commits into from
Jul 31, 2024
Merged

Conversation

nbshiland
Copy link
Contributor

@nbshiland nbshiland commented Jul 31, 2024

Overview

The create jira script will now link relevant tickets to a newly created ticket.

Test Plan and Hands on Testing

It was run multiple times on multiple accounts.

Changelog

Fixed issues_on_board to grab recent issues, created match issues that matches relevant issues, and created link tickets that links tickets. Called all three functions in the Create Jira script.

Review requests

Risk assessment

@nbshiland nbshiland requested review from rclarke0 and a team July 31, 2024 15:15
@nbshiland nbshiland requested a review from a team as a code owner July 31, 2024 15:15
auth=self.auth,
data=link_data,
)
print(response)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to print response every time.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and lets add error handling around the requests.post()
try: response = requests.post( f"{self.url}/rest/api/3/issueLink", headers=self.headers, auth=self.auth, data=link_data, ) response_str = str(response.content) except requests.exceptions.HTTPError: print(f"HTTP error occurred. Response content: {response_str}")

@nbshiland nbshiland changed the title Link relevant JIRA tickets Feat(ABR): Link relevant JIRA tickets Jul 31, 2024
@nbshiland nbshiland changed the title Feat(ABR): Link relevant JIRA tickets feat(ABR): Link relevant JIRA tickets Jul 31, 2024
@rclarke0 rclarke0 changed the title feat(ABR): Link relevant JIRA tickets feat(abr-testing): Link relevant JIRA tickets Jul 31, 2024
@rclarke0
Copy link
Contributor

great looks good to merge!

@rclarke0 rclarke0 self-requested a review July 31, 2024 19:18
Copy link
Contributor

@rclarke0 rclarke0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rclarke0 rclarke0 merged commit 39297bb into edge Jul 31, 2024
5 checks passed
@rclarke0 rclarke0 deleted the link_jira_tickets branch July 31, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants