JiraIssue#getOtherUpdateContext
might use wrong update and transition
#729
Labels
JiraIssue#getOtherUpdateContext
might use wrong update and transition
#729
The Bug
Not completely sure, but
Mappers.kt
JiraIssue#getOtherUpdateContext
might use the wrong update and transition objects:arisa-kt/src/main/kotlin/io/github/mojira/arisa/infrastructure/jira/Mappers.kt
Lines 322 to 334 in e6c0902
Notice how the issue it uses for the
IssueUpdateContext
isjiraClient.getIssue(key)
, butupdate()
andtransition()
are from the (different) issue on which the extension function was invoked.Expected behavior
update()
andtransition()
should be called on the issue obtained fromkey
?Might also be good to check whether this can be refactored to reuse
JiraIssue.getUpdateContext()
(or add a common function for both) to prevent code duplication.The text was updated successfully, but these errors were encountered: