Clean Code: Improve JIRA API

What does this MR do?

Small merge request improving the naming of one variable and extracting duplicated code into one method.

This is a previous step clarifying things before we do #34882 (closed).

Merge request reports

Loading