Skip to content

fix: Correct inward/outward direction for Jira 'Blocks' issue links#1285

Merged
JCMOSCON1976 merged 2 commits intomozilla:mainfrom
davehunt:fix-jira-blocks-link-direction
Mar 26, 2026
Merged

fix: Correct inward/outward direction for Jira 'Blocks' issue links#1285
JCMOSCON1976 merged 2 commits intomozilla:mainfrom
davehunt:fix-jira-blocks-link-direction

Conversation

@davehunt
Copy link
Member

Jira's REST API treats inwardIssue as the blocker (the issue that "blocks"), not outwardIssue as the documentation suggests. The original code had these reversed, causing Jira to display the link in the wrong direction (e.g. FXP-4414 blocking FXP-4820 instead of the other way around).

Swap inwardIssue and outwardIssue in create_issue_link_blocks so that the blocking issue is correctly set as inwardIssue, and update tests to match.

Jira's REST API treats inwardIssue as the blocker (the issue that
"blocks"), not outwardIssue as the documentation suggests. The original
code had these reversed, causing Jira to display the link in the wrong
direction (e.g. FXP-4414 blocking FXP-4820 instead of the other way
around).

Swap inwardIssue and outwardIssue in create_issue_link_blocks so that
the blocking issue is correctly set as inwardIssue, and update tests to
match.
@davehunt davehunt requested a review from a team as a code owner March 25, 2026 22:39
Copy link
Contributor

@JCMOSCON1976 JCMOSCON1976 left a comment

Choose a reason for hiding this comment

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

Approved

@JCMOSCON1976 JCMOSCON1976 merged commit eb2de1c into mozilla:main Mar 26, 2026
5 checks passed
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